Skip to content

Instantly share code, notes, and snippets.

View binki's full-sized avatar

Nathan Phillip Brink binki

View GitHub Profile
@binki
binki / discord-refocus-binki.user.js
Last active November 12, 2020 15:14
Discord Refocus Binki
// ==UserScript==
// @name discord-refocus-binki
// @namespace https://gist.github.com/binki/4dcbb7e47f18d17fcc4fc898af46e871
// @version 1
// @grant none
// @match https://discordapp.com/*
// @description Make Discord blink the input textbox upon being refocused (it seems unsafe to type at a window without a blinking cursor).
// ==/UserScript==
// Discord does this weird thing where it stops the cursor from blinking in the input textbox if
@binki
binki / marbled-pound-cake.md
Last active November 12, 2020 15:11
Marbled Pound Cake Recipe (Americanized from Rasa Malaysia)
@binki
binki / output.txt
Created October 23, 2017 15:48
mongo error when passing connection URL to connect()
sam ~ # mongo --nodb ~/.mongo-do-auth.js ~/s2.js
MongoDB shell version: 2.6.12
loading file: /root/.mongo-do-auth.js
2017-10-23T15:47:53.636+0000 Error: Invalid port number "asdf123@localhost" in connection string "mongodb://root:asdf123@localhost/admin" at src/mongo/shell/mongo.js:135
failed to load: /root/.mongo-do-auth.js
@binki
binki / pork-cutlet-tonkatsu.md
Last active October 1, 2020 14:37
Pork Cutlet (tonkatsu 豚カツ)

Source: unknown, posted by 김예본 in the cooking party Kakaotalk channel.

Ingredients

  • 450g (1lb) thin cut pork chops
  • salt
  • ground black pepper
  • small amount of red wine (rice wine/mirin would work)
  • 1 tbsp minced ginger
  • 2 eggs

Binki’s Top Ten Waifus

I am not sure about this list. I just had to get started and get something out there, so here it is.

  1. Kagura-chan from Gintama Kagura-chan
  2. Sakura Mamiya from RIN-NE Mamiya Sakura
  3. Haruhi Suzumiya
  4. Rukia from Bleach
  5. Hitagi Senjougahara-san from Monogatari series
@binki
binki / szechuan-chicken-recipe.md
Last active March 22, 2020 08:33
Szechuan Chicken Recipe
@binki
binki / FuncUtil.cs
Last active December 12, 2019 18:55
AsyncEx-3.0.1 AsyncConditionVariable deadlock repro
using System;
namespace AsyncExAsyncProducerConsumerQueueDeadlock
{
class FuncUtil
{
public static T Invoke<T>(Func<T> func) => func();
}
}
@binki
binki / zebra-symbol-rs507-hid-keyboard-wedge-pairing-guide.md
Last active November 21, 2019 16:24
Zebra Symbol RS507 HID Keyboard Wedge Pairing Guide

Zebra Symbol RS507 HID keyboard wedge pairing

In the reference manual (via support page), find the instructions for HID (Human Interface Device Mode) under “RS507 Bluetooth Connection Using HID and SPP Profiles”. There are instructions to:

  1. Remove battery.
  2. Hold down “Restore” key.
  3. Replace battery.
  4. Wait 5 seconds until chirps and tritone.
  5. Release the “Restore” key.
  6. Scan the HID bar code from the manual and wait for chirps.
@binki
binki / README.md
Created November 5, 2019 15:12
Fun with TimeZoneInfo
@binki
binki / SimpleCsvQuoteString.cs
Last active October 22, 2019 15:50
Example of quoting CSV in C#
using System;
public static class Program {
public static void Main() {
var num = 23;
var value = "This is some text, but it is free-form and might have double quotes (\") in it";
var value2 = "Text with a\r\nnewline";
Console.WriteLine(QuoteCsvString(value) + "," + QuoteCsvString(value2) + "," + num);
}
public static string QuoteCsvString(string value) {
return "\"" + value.Replace("\"", "\"\"") + "\"";