Skip to content

Instantly share code, notes, and snippets.

@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@Ajwah
Ajwah / git_fatal_pathspec
Created June 29, 2015 05:30
Git: fatal: Pathspec is in submodule
https://stackoverflow.com/questions/24472596/git-fatal-pathspec-is-in-submodule/24473037#24473037
Problem:
I was unable to commit changes to a repository I cloned as a subdirectory to my existing project directory.
✘ ☪  ~/Documents/Python   master±  git add fullstack/vagrant/forum/*.*
fatal: Pathspec 'fullstack/vagrant/forum/forum.py' is in submodule 'Python/fullstack'
In this case, Python is the main project directory I would commit to github.
fullstack is a repo I cloned from udacity as a subdirectory.
@nonamelive
nonamelive / DMNavigationController.m
Last active April 21, 2023 06:56
Prevent UINavigationController from pushing two view controllers at the same time in case of stack inconsistency and crashes
@interface UINavigationController (DMNavigationController)
- (void)didShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
@end
@interface DMNavigationController ()
@property (nonatomic, assign) BOOL shouldIgnorePushingViewControllers;
@ChimeraCoder
ChimeraCoder / gist:7495794
Last active December 28, 2015 11:49
Block all Gawker Media websites
127.0.0.1 gawker.com
127.0.0.1 gizmodo.com
127.0.0.1 kotaku.com
127.0.0.1 deadspin.com
127.0.0.1 lifehacker.com
127.0.0.1 jalopnik.com
127.0.0.1 io9.com
127.0.0.1 jezebel.com
127.0.0.1 gawkerassets.com
127.0.0.1 img.gawkerassets.com
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.052 0.489 0.482 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.432 0.325 0.276 1</string>