Skip to content

Instantly share code, notes, and snippets.

@scisco
scisco / vim_cheatsheet.md
Last active January 17, 2017 14:57 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Favorites

:tabnew   new tab
:vsp      vertical split
:sp       horizental split

c-ww      move around panes
gt        switch between windows
@scisco
scisco / install-comodo-ssl-cert-for-nginx.rst
Created October 7, 2016 19:03 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@scisco
scisco / iterm2-solarized.md
Created March 26, 2016 23:59 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + oh my zsh + solarized + Meslo powerline font (OSX)

Solarized

@scisco
scisco / gh-gmail-label-script.js
Created January 25, 2016 17:19 — forked from cobyism/gh-gmail-label-script.js
GitHub Email Notification labeller script for Google Apps/Gmail
var my_teams = ["@github/css", "@github/design"] // Add any teams you want autodetected to this list
var base_label = ["GitHub"]
var my_teams_regex = new RegExp('(' + my_teams.join('|') + ')')
function GitHubThread(thread) {
this._thread = thread
// Determine why we got this message and label the thread accordingly.
//
class ForceDefaultLanguageMiddleware(object):
"""
Ignore Accept-Language HTTP headers
This will force the I18N machinery to always choose settings.LANGUAGE_CODE
as the default initial language, unless another one is set via sessions or cookies
Should be installed *before* any middleware that checks request.META['HTTP_ACCEPT_LANGUAGE'],
namely django.middleware.locale.LocaleMiddleware
"""
@scisco
scisco / .gitignore
Last active August 29, 2015 14:06 — forked from octocat/.gitignore
*~
*.sublime-workspace
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
@scisco
scisco / setup.md
Created August 29, 2014 12:44 — forked from bendyorke/setup.md