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
autoferrit / cloudSettings
Last active Aug 4, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-08-04T08:51:04.682Z","extensionVersion":"v3.4.1"}
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

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

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

View setup.py
# !/usr/bin/env python
from distutils.core import setup
setup(
name='package_name',
packages=['package_name'],
author='Audrey Roy Greenfeld',
author_email='aroy@alum.mit.edu',
url='https://github.com/audreyr/cookiecutter-pypackage',
)
@autoferrit
autoferrit / cloudSettings
Last active May 16, 2017
Visual Studio Code Sync Settings GIST
View cloudSettings
{"lastUpload":"2017-05-16T23:18:05.477Z","extensionVersion":"v2.7.0"}
View archify v2
#|/bin/bash
#
# use:
# $ ./archify image.jpg [blurring] [logowidth]
# blurring is an integer from 0 (no) to 8 (thick greasy lens)
# logowidth is in pixels
#
bg=$1
blur=${2:-0}
logowidth=${3:-350}
@autoferrit
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
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@autoferrit
autoferrit / test.php
Created Apr 27, 2016
testing php regex vs builtin
View test.php
<?php
function test1( $string )
{
return strtoupper( $string[0] ) === $string[0];
}
function test2( $string )
{
return preg_match( '/^[A-Z]/', $string );
View style_guide.md

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
autoferrit / password.py
Created Mar 14, 2012 — forked from nigelbabu/password.py
Generate random password
View password.py
#!/usr/bin/python
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.