Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This vagrant script relies on | |
# vagrant plugin install vagrant-triggers | |
VM_NAME = "vbox-dev" | |
VM_CPUS = 1 | |
VM_MEMORY = 2 * 1024 # in MB |
# Set up notification options | |
notifications: | |
email: | |
recipients: | |
- one@example.com | |
- other@example.com | |
# change is when the repo status goes from pass to fail or vice versa | |
on_success: change | |
on_failure: always |
function Send-NetworkData { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] | |
$Computer, | |
[Parameter(Mandatory)] | |
[ValidateRange(1, 65535)] | |
[Int16] |
#requires -version 2 | |
<# | |
.SYNOPSIS | |
<Overview of script> | |
.DESCRIPTION | |
<Brief description of script> | |
.PARAMETER <Parameter_Name> | |
<Brief description of parameter input required. Repeat this attribute if required> |
# .ycm_extra_conf.py for vim source code. This should work after running './configure | |
import os, re | |
def create_flags(): | |
rv = [ | |
'-Wall', | |
'-Wextra', | |
'-std=c89', | |
'-x', |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'json' | |
require 'net/https' | |
class KeyChain | |
def initialize(user=nil) | |
@user ||= %x{dscl . -read /Users/$(whoami)|grep "EMailAddress:"|sed 's/^EMailAddress: //'} | |
@host="com.brettterpstra.gauges" |
I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
// by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
// Quartz Debug says. Who knows, maybe it's lying? | |
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
# | |
# Install: | |
# | |
# tic xterm-256color-italic.terminfo | |
# | |
# Usage: | |
# | |
# export TERM=xterm-256color-italic | |
# |