Skip to content

Instantly share code, notes, and snippets.

@jwebcat
jwebcat / gist:5122366
Last active March 25, 2024 18:25 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@qmacro
qmacro / gist:6199968
Created August 10, 2013 10:39
#YRS2013 Hacks On Github - code to retrieve commit counts from Github API and store in a Google spreadsheet
// 0-indexed columns
COMMITS = 3;
GITHUBREPO = 2;
TOKEN = "";
function main() {
TOKEN = ScriptProperties.getProperty("githubtoken");
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sh = ss.getSheetByName("Hacks");
@masterdje
masterdje / HomePass2.sh
Created October 17, 2013 19:55
HomePass2.sh : Transform your OpenWrt router into an NintendoZone, to get a big load of Streetpasses... Script from reddit User : http://www.reddit.com/user/alexatkinuk on the topic : http://www.reddit.com/r/3DS/comments/1k0g58/setting_up_a_streetpass_relay_at_home/cbl3onj ... He truly deserves all the glory, as we use also his custom Mac list (…
#/bin/sh
# HomePass
DATE=$(date)
# Put a filename and path in here if you wish to log each profile change
LOG="HomePass.log"
# The WiFi network number we need to toggle the MAC address of
# You must have already added a WiFi network with the ssid "attwifi" and clicked "save & apply"
WIFI=$(uci show wireless | grep "ssid=attwifi" | awk 'NR>1{print $1}' RS=[ FS=])
# MAC address list is missing or empty, reload it from the server
if [ ! -s HomePass.list ]; then
@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet
@Domon
Domon / nintendo-mou1pon-titles.md
Created January 13, 2014 02:22
ニンテンドー3DSソフト2本買うと“もれなく”もう1本プレゼントキャンペーン 応募対象ソフト一覧

ニンテンドー3DSソフト2本買うと“もれなく”もう1本プレゼントキャンペーン 応募対象ソフト一覧

  • 星のカービィ トリプルデラックス
  • 星のカービィ トリプルデラックス
  • ビーストサーガ 最強激突コロシアム!
  • ピカピカナース物語2
  • わんニャンどうぶつ病院2
  • ゼルダの伝説 神々のトライフォース2
  • ゼルダの伝説 神々のトライフォース2
  • おしゃべりうさぎ おしゃれコレクション
@IntelOrca
IntelOrca / Lockable.cs
Last active November 25, 2016 13:58
C# Lockable class to keep the object to lock and its sync object that is actually locked together.
/// <summary>
/// Class to keep an object to lock and its sync object that is actually locked together.
/// </summary>
/// <example>
/// Lockable<List<int>> someList = new Lockable<List<int>>(new List<int>());
/// lock (someList.Sync) {
/// List<int> list = someList;
/// list.Add(2);
/// list.Add(5);
/// list.Add(9);
@IntelOrca
IntelOrca / new_window.cpp
Created August 13, 2014 12:56
New window classes for OpenRCT2.
class TabWindow : Window {
public:
void AddTab(WindowTab tab);
}
class ParkInformationWindow : TabWindow {
public:
ParkInformationWindow()
{
this->allowMany = false;
@landaire
landaire / controller_disconnect.md
Last active November 23, 2020 22:12
Xbox 360 Dev Kit Controller Disconnect

Why controllers get disconnected, and why am I making this note?

Controllers get disconnected because they fail an authentication check that Microsoft broke at some point in time. Some people are unable to obtain newer recoveries because they simply do not have contacts or access to a GDN account, and are stuck on one of these broken recoveries

What do to fix making

Patch RgcSecAuthenticateDeviceAsyncStateMachine + 0x704 (should be a bge instruction, where if cr6 -- the result of r11 >= r10 -- then the authentication succeeds) so that this always branches to the "successful" block of code leaving the auth fail code as simply dead, unreachable code.

RgcSecAuthenticateDeviceAsyncStateMachine target

Keybase proof

I hereby claim:

  • I am yifanlu on github.
  • I am yifanlu (https://keybase.io/yifanlu) on keybase.
  • I have a public key whose fingerprint is 26F4 BFC6 F86D D87C E5B4 2E2C 14ED BDB7 8106 7076

To claim this, I am signing this object:

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule