Skip to content

Instantly share code, notes, and snippets.

@rosswd
rosswd / .bash_profile
Last active April 22, 2018 19:12
Linux dotfiles
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8';
export LC_ALL='en_US.UTF-8';
# Use 256 colors
export TERM=xterm-256color
# More color settings
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
@rosswd
rosswd / admin.md
Last active October 29, 2021 17:35
Vim cheatsheets

Administrative Commands

Runtime Commands

Path to runtime executable

:echo $VIMRUNTIME

Example Output

/usr/local/share/vim/vim74

@rosswd
rosswd / multi-git-win.md
Last active February 28, 2024 09:46
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)
@rosswd
rosswd / chef-solo.rb
Last active December 30, 2015 13:29
Playing with chef.
Vagrant.configure("2") do |config|
config.vm.provision "chef_solo" do |chef|
#chef.cookbooks_path = "../my_recipes/cookbooks"
chef.roles_path = "../my_recipes/roles"
chef.add_role("web")
chef.data_bags_path = "../my_recipes/data_bags"
chef.node_name = "foo"
chef.add_recipe "apache"
chef.add_recipe "apt"
@rosswd
rosswd / applications.md
Last active December 22, 2020 17:23
Mac OSX Keyboard shortcuts.

Application Shortcuts

This file contains shortcuts relating to:

  • Spaces
  • Windows
  • Mission Control
  • Launchpad
  • Dashboard
  • Dock

Navigate to space left or right

@rosswd
rosswd / 0_reuse_code.js
Created December 15, 2013 22:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rosswd
rosswd / Vagrantfile
Last active July 9, 2017 11:22
Steps for setting up Laravel via Vagrant.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.network :forwarded_port, host: 5401, guest: 80
config.vm.provision :shell, :path => "bootstrap.sh"
@rosswd
rosswd / hacks.md
Last active October 22, 2015 14:31
HTML, JS, DOM, CSS Hacks
@rosswd
rosswd / config.sh
Last active March 17, 2016 22:34
tmux setup, configuration and usage.
# ############ #
# ~/.tmux.conf #
# ############ #
# Change prefix binding from C-b to C-a
unbind C-b
set -g prefix C-a
bind a send-prefix
# Reload .tmux.conf
@rosswd
rosswd / channels.md
Last active May 12, 2021 12:04
IRC resources