Skip to content

Instantly share code, notes, and snippets.

View cwonrails's full-sized avatar

Chris Watson cwonrails

View GitHub Profile
@Revod
Revod / Material Theme.itermcolors
Created November 6, 2016 22:14
Material Theme For iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.25882352941176473</real>
@kevinansfield
kevinansfield / changelog.md
Created October 24, 2016 14:30
Full 1.0.0-alpha.6 Changelog
  • af70777 Version bump to 1.0.0-alpha.6 - Kevin Ansfield
  • 4520edc Updated Ghost-Admin to 1.0.0-alpha.6 - Kevin Ansfield
  • 13c95ba Version bump to 1.0.0-alpha.6 - Kevin Ansfield
  • 646aaa1 deps: ghost-editor@0.0.14 (#7619) - Ryan McCarvill
  • 7872fae New editor layout (#355) - Ryan McCarvill
  • c8c696f 🎨 grunt release .knex-migrator (#7591) - Katharina Irrgang
  • d8214d6 chore(package): update moment-timezone to version 0.5.7 (#7609) - Greenkeeper
  • cef6f2d chore(package): update moment-timezone to version 0.5.7 (#362) - Greenkeeper
  • [cccd8c4](https://github.com/TryGhost/Ghost/commit/c
@lwoodson
lwoodson / 1_cloudformation-vim-snippets.md
Last active June 1, 2020 18:32
Supporting a new file extension in Vim based on existing file extension

I use this for identifying *.cfn.json and *.cfn.yml files as JSON and YAML format cloudformation templates. Their filetypes are set to cfn_json and cfn_yaml respectively. I can then have custom highlighting of key attributes and/or custom snippets set up that are not polluting my editor when I am working with straight javascript/yaml intended for other purposes. This in on mac os x after installing vim 7.3 along with vim-snipmate and vim-snippets plugins. Someone feel free to improve on this.

1. in ~/.vimrc:

au BufRead,BufNewFile *.cfn.json set ft=cfn_json
au BufRead,BufNewFile *.cfn.yml set ft=cfn_yaml
au BufRead,BufNewFile *.cfn.yaml set ft=cfn_yaml
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@arvi
arvi / sublime-settings-osx.json
Last active March 28, 2022 06:07
Sublime Settings OSX
{
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": ".",
"selector": "source.js"
@frgomes
frgomes / install-docker.sh
Last active May 5, 2026 09:16
Debian - install docker in Debian Jessie
#!/bin/bash
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@ErisDS
ErisDS / categories.txt
Created September 27, 2016 15:28
New marketplace categories
Personal Blogs
Magazine Layouts
News Sites
Business Blogs
Minimal
Photography Corner
Video Heavy
Artistic
Social Hubs
Grid Based
@ericbn
ericbn / .vimrc
Last active June 30, 2025 23:48
Vim Powerline-like status line without the need of any plugin
" Statusline (requires Powerline font)
set statusline=
set statusline+=%(%{&buflisted?bufnr('%'):''}\ \ %)
set statusline+=%< " Truncate line here
set statusline+=%f\ " File path, as typed or relative to current directory
set statusline+=%{&modified?'+\ ':''}
set statusline+=%{&readonly?'\ ':''}
set statusline+=%= " Separation point between left and right aligned items
set statusline+=\ %{&filetype!=#''?&filetype:'none'}
set statusline+=%(\ %{(&bomb\|\|&fileencoding!~#'^$\\\|utf-8'?'\ '.&fileencoding.(&bomb?'-bom':''):'')
@adamwathan
adamwathan / troubleshooting.md
Last active June 12, 2025 07:13
Troubleshooting Valet on macOS Sierra

Troubleshooting Valet on Sierra

Common Problems

Problem: I just see "It works!"

Apache is running on port 80 and interfering with Valet.

  1. Stop Apache: sudo /usr/sbin/apachectl stop
  2. Restart Valet: valet restart
@tatemz
tatemz / docker-wordpress.sh
Last active April 14, 2025 11:18
A quick way to get a WordPress installation up and running with Docker
#!/bin/bash
mkdir wordpress-site && cd wordpress-site
touch docker-compose.yml
cat > docker-compose.yml <<EOL
version: "2"
services:
my-wpdb: