Skip to content

Instantly share code, notes, and snippets.

View unlobito's full-sized avatar
๐Ÿ’š
today is a new chance to be excellent to each other, what will you do with it?

Harley Watson unlobito

๐Ÿ’š
today is a new chance to be excellent to each other, what will you do with it?
View GitHub Profile
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@cdzombak
cdzombak / .last-uls-search-hash
Last active September 15, 2021 00:22
watching for my amateur radio license to appear in the FCC's database!
6be5d57c4d0c622216b38c5ea62195a5
@olih
olih / jq-cheetsheet.md
Last active July 11, 2025 09:15
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

What the BookCorpus?

So in the midst of all these Sesame Streets characters and robots transforming automobile era of "contextualize" language models, there is this "Toronto Book Corpus" that points to this kinda recently influential paper:

Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. 2015. "Aligning books and movies: Towards story-like visual explanations by watching movies and reading books." In Proceedings of the IEEE international conference on computer vision, pp. 19-27.

Why do I even care, there's no translations there?

Some might know my personal pet peeve on collecting translation datasets but this BookCorpus has no translations, so why do I even care about it?

@ndfred
ndfred / glowmqtt.py
Last active July 23, 2023 07:21
Fetch data from a Hildebrand Glow device over MQTT
import datetime
import logging
import json
import paho.mqtt.client as mqtt # pip3 install paho-mqtt
GLOW_LOGIN = "GLOW_LOGIN"
GLOW_PASSWORD = "GLOW_PASSWORD"
GLOW_DEVICE_ID = "GLOW_DEVICE_ID"
# Fields gathered from the ZigBee Smart Energy Standard document
@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active July 2, 2025 17:01
"What the heck is a Yubikey and why did I buy one?": A user guide

"What the heck is a Yubikey and why did I buy one?": A user guide

(EDIT: Besides Reddit, I've also put this up on Github Gist)

So while looking for information on security keys before getting one myself, I got very confused reading about all the different modes and advertised features of Yubikeys and other similar dongles. The official documentation tends to be surprisingly convoluted at times, weirdly organized and oddly shy about a few of the limitations of these keys (which I'm making a point of putting front and center). Now that I have one, I decided to write down everything I figured out in order to help myself (and hopefully some other people reading this) make sense of all this.

Since I'm partly writing these notes for myself, there might be some back and forth between "exp

// ==UserScript==
// @name @chaoticvibing Twitter Blue Nerd - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @match *://*.x.com/*
// @grant none
// @version 1.9.2
// @author @chaoticvibing - GH @busybox11
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw
resource "hcloud_placement_group" "runner" {
name = "runner-placement-group"
type = "spread"
}
locals {
fsn_datacenter = "fsn1-dc14"
nbg_datacenter = "nbg1-dc3"
runners = [
{
@adrienne
adrienne / mullenweg-wpe.md
Last active June 7, 2025 11:23
The Mullenweg/WPE Thing
@aveao
aveao / getrotatedidiot.py
Last active November 30, 2024 17:49
script to add your own rotation key on bluesky so you're "billionaire takeover safe" or something
# usage: BSKY_USERNAME=whatever.example BSKY_PASSWORD=passwordgoeshere BSKY_SUFFIX=lol python3 getrotatedidiot.py
# written whilst "intoxicated" (pretty intense covid) so may have bugs
# pip install secp256k1 atproto==0.0.55 base58
import os
import secp256k1
import base58
from atproto import Client, models