Skip to content

Instantly share code, notes, and snippets.

Shawn McElroy autoferrit

Block or report user

Report or block autoferrit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
autoferrit / cloudSettings
Last active Aug 4, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
autoferrit /
Created Jun 2, 2017 — forked from pascalpoitras/
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

# !/usr/bin/env python
from distutils.core import setup
author='Audrey Roy Greenfeld',
autoferrit / cloudSettings
Last active May 16, 2017
Visual Studio Code Sync Settings GIST
View cloudSettings
View archify v2
# use:
# $ ./archify image.jpg [blurring] [logowidth]
# blurring is an integer from 0 (no) to 8 (thick greasy lens)
# logowidth is in pixels
autoferrit / .spacemacs
Last active Oct 12, 2016
spacemacs config
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
;; Base distribution to use. This is a layer contained in the directory
autoferrit / test.php
Created Apr 27, 2016
testing php regex vs builtin
View test.php
function test1( $string )
return strtoupper( $string[0] ) === $string[0];
function test2( $string )
return preg_match( '/^[A-Z]/', $string );

High level style in javascript.

Opinions are like assholes, every one has got one.

This one is mine.

Punctuation: who cares?

Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.

autoferrit /
Created Mar 14, 2012 — forked from nigelbabu/
Generate random password
import string
from random import choice
print ''.join([choice(string.letters + string.digits + string.punctuation) for i
in range(15)])
You can’t perform that action at this time.