Skip to content

Instantly share code, notes, and snippets.

@lalyos
lalyos / fix-b2d-dns.sh
Last active November 4, 2015 14:25
Fix boot2docker dns - in case changing wifi while b2d is running
#!/bin/bash
#############################
# curl -L j.mp/b2d-dns|bash
#############################
boot2docker ssh "sudo sh -c '/bin/cat > /etc/resolv.conf' " <<< "$(cat /etc/resolv.conf | grep nameserver)"
boot2docker ssh "sudo ip route flush cache"
boot2docker ssh "sudo /etc/init.d/docker restart"
@remino
remino / Gemfile
Created January 9, 2014 18:01
kramdown-rails: Use Kramdown (Markdown) in Rails 4
# Gemfile
gem 'kramdown'
@snooc
snooc / centos6.3-chef-solo-bootstrap.sh
Created September 5, 2012 20:24
CentOS 6.3 Chef-Solo Bootstrap - Ruby1.9.3 + libyaml
#! /bin/bash
#####################
# Run this as root! #
#####################
yum update
yum groupinstall "Development Tools"
yum install zlib-devel readline-devel openssl-devel
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2024 06:03
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@weppos
weppos / capistrano_database_yml.rb
Created July 27, 2008 10:04
Provides a couple of tasks for creating the database.yml configuration file dynamically when deploy:setup is run.
#
# = Capistrano database.yml task
#
# Provides a couple of tasks for creating the database.yml
# configuration file dynamically when deploy:setup is run.
#
# Category:: Capistrano
# Package:: Database
# Author:: Simone Carletti <weppos@weppos.net>
# Copyright:: 2007-2010 The Authors