Skip to content

Instantly share code, notes, and snippets.

View benhoIIand's full-sized avatar

Ben Holland benhoIIand

View GitHub Profile
body {
min-height: 100%;
background-color: #FDFDFD;
font-size: 14px;
line-height: 18px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #333;
}
button,
@benhoIIand
benhoIIand / gist:6189115cbf2203758d52
Created September 4, 2014 08:51
Sublime Key Mappings
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+shift+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+shift+down"], "command": "swap_line_down" },
_
\`\
|= |
/- ;.---.
_ __.' (____)
` (_____)
_' ._ .' (____)
` (___)
--`'------'`
@benhoIIand
benhoIIand / Preferences.sublime-settings
Last active August 29, 2015 13:56
Sublime Preferences
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Flatland Dark (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"flatland_sidebar_tree_small": true,
"flatland_square_tabs": true,
"font_face": "Consolas",
"font_size": 14,
"highlight_line": true,
@benhoIIand
benhoIIand / server-install-script
Last active November 25, 2015 18:47
Server install script
#!/bin/bash
# Install cURL
sudo apt-get install curl
# Install LAMP stack
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
# My ~/.gitconfig file
# (with personal information removed)
# Take what you will!
[user]
name = YOUR NAME
email = YOUR EMAIL
[github]
user = YOUR USERNAME
token = YOUR TOKEN
[core]
@benhoIIand
benhoIIand / sublime-build-NET
Last active December 13, 2015 21:19
A Sublime build setting for a .NET project
{
"shell": true,
"working_dir": "${project_path:${folder}}",
"cmd": ["%WINDIR%\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild", "C:\\PATH_TO_SOLUTION\\solution.sln"]
}
@benhoIIand
benhoIIand / Simple Git Aliases
Last active February 2, 2016 16:45
Git Setup
[user]
name = YOUR NAME
email = YOUR EMAIL
[core]
# see the other file in this gist
excludesfile = /Users/USERNAME/.gitignore
[color]
# colors all up in your git
ui = 1
[alias]
@benhoIIand
benhoIIand / JSHint - All Settings.js
Last active December 11, 2015 10:58
All JSHint settings and descriptions
{
/**
* Enforcing Options
* These options tell JSHint to be more strict towards your code. Use them if you want to allow only a safe subset of JavaScript—very useful when your codebase is shared with a big number of developers with different skill levels.
*/
// This option prohibits the use of bitwise operators such as ^ (XOR), | (OR) and others
"bitwise": false,
// This option allows you to force all variable names to use either camelCase style or UPPER_CASE with underscores.
@benhoIIand
benhoIIand / CSSLint - All Settings.js
Last active December 11, 2015 10:49
A list of all CSSLint settings with descriptions
{
// Don't use adjoining classes (.foo.bar)
"adjoining-classes": "warning",
// Don't use width or height when using padding or border.
"box-model": true,
// box-sizing doesn't work in IE6 and IE7.
"box-sizing": "warning",