Skip to content

Instantly share code, notes, and snippets.

@srcspider
srcspider / .emacs
Last active Nov 13, 2018
emacs config
View .emacs
;; Startup Options
;; ===============
(defun insert-tab-char ()
(interactive)
(insert "\t"))
(define-key global-map "`" 'insert-tab-char)
;; autocomplete backend
@srcspider
srcspider / ubuntu.conf.md
Last active Oct 20, 2018
Basic Ubuntu Web Dev Essentials
View ubuntu.conf.md

Editor

Recommended Editor:

From here on we'll use edit to denote the command that's meant to open the file in the editor. Replace edit with subl or atom as needed.

@srcspider
srcspider / golang_community_dependency_management.spec
Created Jun 9, 2014
Draft Spec for Community Dependency Management for the Go Language
View golang_community_dependency_management.spec
Specifically written for the Go team. Feel free to fork.
It's unproductive to have preconcieved notions so the following assumes
"any language" and ignores "current language limitations" though Go and node
among others are references quite a bit in some examples where real world
situations are relevant to the point made. Also, the most unideal circumstances
are taken as the "default working circumstances," since that's what serves the
community best.
Community Dependency Management
@srcspider
srcspider / sublime_text_workflow.md
Last active Jun 13, 2019
Sublime Text Cheatsheet
View sublime_text_workflow.md

Sublime Text Cheatsheet

Command Line

Sublime executable: (recomended name: edit)

#!/bin/sh
@srcspider
srcspider / enter passphrase helper script
Created Jul 2, 2012
Remove annoying and stupidly coded "enter passphrase" prompt in git bash
View enter passphrase helper script
# Place this in git_root/etc/profile to have your passphrase only required once per session.
# This used to be part of the help.github docs; for whatever reason it was removed when their new app come out. =/
SSH_ENV="$HOME/.ssh/environment"
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent