Nothing Special   »   [go: up one dir, main page]

Skip to content

Instantly share code, notes, and snippets.

@inchoate
inchoate / readme.md
Last active November 21, 2024 07:49
Open clicked URLs into a particular Google Chrome profile

Problem

When I click on links from Slack or Outlook on MacOS they open in seemingly random browser windows/profiles. This is annoying.

Solution

Open links in a particular google chrome profile window. Be less annoyed.

  1. In Chrome, visit chrome://version and find the desired profile name. Mine was Default. Copy that profile's directory name, like Profile 2 or Default, not the profile's vanity name you see when you click on your profile icon in the browser.
  2. Install Finicky: brew install finicky. After install it should be running and you should see the icon in the upper toolbar.
  3. From the Finicky Toolbar Item, click > Config > Create New
  4. Edit the new file ~/.finicky and make it look something like this, filling in your profile name:
@whitead
whitead / self_cite.py
Last active November 21, 2024 07:44
Compute number of self citations with Semantic Scholar
# License CC0
import httpx
async def analyze_self_citations(doi):
async with httpx.AsyncClient() as client:
response = await client.get(
f"https://api.semanticscholar.org/graph/v1/paper/DOI:{doi}",
params={"fields": "title,authors,references.authors"}
)
@abir-taheer
abir-taheer / instagram-follower-following.js
Last active November 21, 2024 07:44
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@Matt54
Matt54 / FlamesTextAnimationView.swift
Created November 21, 2024 00:15
RealityView with centered and spaced out extruded text that sequentially fades in/out and has flames for it's material texture
import SwiftUI
import RealityKit
struct FlamesTextAnimationView: View {
var textLines: [String] = ["WELCOME", "TO", "APP NAME"]
let commandQueue: MTLCommandQueue
let computePipeline: MTLComputePipelineState
@State private var texture: LowLevelTexture?
let timer = Timer.publish(every: 1.0 / 120.0, on: .main, in: .common).autoconnect()
@State private var time: Float = 0
@cmalven
cmalven / index.html
Last active November 21, 2024 07:32
Shortest (useful) HTML5 Document
<!-- http://www.brucelawson.co.uk/2010/a-minimal-html5-document/ -->
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>blah</title>
</head>
<body>
<p>I'm the content</p>
@voluntas
voluntas / webrtc.rst
Last active November 21, 2024 07:32
WebRTC の未来
@sebble
sebble / stars.sh
Last active November 21, 2024 07:27
List all starred repositories of a GitHub user.
#!/bin/bash
USER=${1:-sebble}
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-)
PAGES=$((658/100+1))
echo You have $STARS starred repositories.
echo
@raycalvodev
raycalvodev / Seriales.txt
Last active November 21, 2024 07:25
All-Product-Keys Sql/VS/OSWindows
# All-Product-Keys
[Please Star this gist]
Follow My Account --> https://github.com/raycalvodev
Visual Studio Product Keys
Visual Studio 2022
Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Enterprise&channel=Release&version=VS2022
Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Professional&channel=Release&version=VS2022
Visual Studio 2019
@gtallen1187
gtallen1187 / scar_tissue.md
Created November 1, 2015 23:53
talk given by John Ousterhout about sustaining relationships

"Scar Tissues Make Relationships Wear Out"

04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.

This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.

[Laughter]

> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation

@JonCole
JonCole / Redis-BestPractices-General.md
Last active November 21, 2024 07:23
Redis Best Practices

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.