Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
@nikolaplejic
nikolaplejic / gist:3654637
Created September 6, 2012 10:36
How to copy/paste your password in PayPal's change password form
PayPal blocks copy/paste actions in their "change password" form,
citing some irrelevant security issues as the reason. That's a
load of crap, and they know it -- disabling copy/paste makes it a
lot harder to use a decent password generator and a lot easier to
screw up your pwd when retyping, especially if it's a long one
(as it should be!).
So, here's the quick'n'dirty way to use an externally generated
password in your PayPal account:
@fnichol
fnichol / Manifest.html
Last active July 1, 2020 22:34
SmartOS Node (no disks)
<table width="100%" cellspacing="1" cellpadding="0" border="1">
<thead>
<th class="qty">Qty.</th>
<th class="image">Image</th>
<th class="product">Product Description</th>
<th class="unitPrice">Unit Price</th>
<th class="savings">Savings </th>
<th class="totalPrice">Total Price</th>
</thead>
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@rcrowley
rcrowley / whisper-clean.py
Created July 20, 2012 23:35
Clean up Whisper files that no longer map to this host.
import os
import os.path
import sys
from graphite.render.hashing import ConsistentHashRing
instances = []
unwelcome_instances = []
for arg in sys.argv[1:]:
unwelcome = False
@jasonm23
jasonm23 / powerline.el
Created June 17, 2012 18:03
Powerline fancy statusline
;;; mainline.el --- modeline replacement forked from powerline.el
;; Author: Jason Milkins
;; Version: 1.0.2
;; Keywords: statusline / modeline
;;; Changelog:
;; 1.0.1 : added additional xpm shape chamfer14, adjusted chamfer xpm.
;; : mainline-color1, mainline-color2, mainline-arrow-shape
@jtimberman
jtimberman / base.rb
Created April 23, 2012 20:00
Base role applied to all nodes with the power of Ruby.
# via Jay Feldblum on chef@lists.opscode.com:
name "base"
description "Base role applied to all nodes."
all = [
"recipe[apt]",
"recipe[build-essential]",
"recipe[git]",
"recipe[zsh]",
@bryanwb
bryanwb / gist:2225015
Created March 28, 2012 09:25
fun with shef and pry
check out pry screencast here http://pry.github.com/screencasts.html
install pry
$ gem install pry pry-doc
start shef
$ shef
# load pry
chef> require 'pry'

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@atomic-penguin
atomic-penguin / README.md
Created October 20, 2011 19:10
multi-knife-howto

Overview

Here is an example shared configuration for knife. You can drop this off in your chef-repo/.chef/ directory, and multiple developers can use the same knife configuration to interact with more than one Chef server, or the Opscode platform.

By using Bash functions and environment variables we can change the chef server, which knife is configured to use, on the fly.

NOTE: knife will probably ignore your ~/.chef/knife.rb once you begin using a shared knife.rb in your chef-repo directory.

Preparation

@MarkBorcherding
MarkBorcherding / ctags.cnf
Created April 11, 2011 22:42
Powershell ctags settings
--langdef=Powershell
--langmap=Powershell:.psm1
--langmap=Powershell:.ps1
--regex-Powershell=/function\s+(script:)?([a-zA-Z\-]+)/\2/m, method/i
--regex-Powershell=/\$(global:)?([a-zA-Z\-]+)/\2/v, variable/i