Skip to content

Instantly share code, notes, and snippets.

View dragon788's full-sized avatar

dragon788 dragon788

View GitHub Profile
// dimensions Cherry MX connector
var c_corr = 0.4 // tolerance
var c_horiz = 1.1 // horizontal bar width
var c_vert = 1.0 // vertical bar width
var c_dia = 4 // cross width
var c_depth = 7 // connector depth
var c_space = 7 // height of hollow inside
var c_inset = 0.75 // distance connector start to keycap base
// stuff
#!/bin/sh
# This script lists user defined search engines in Chromium.
# It replaces {inputEncoding}, which appears in some search engine definitions, with
# UTF-8, {google:baseURL} with the Google URL, and omits other such tokens.
# Location of Chromium's 'Web Data' SQLite3 file
CHROMIUM_WEB_DATA="$HOME/.config/chromium/Default/Web Data"
# Location to create temporary copy of 'Web Data', since the database is locked while
@dragon788
dragon788 / .vimrc
Last active August 29, 2015 14:20 — forked from alexyoung/.vimrc
" vim:fdm=marker
" Editor basics {{{
" Behave like Vim instead of Vi
set nocompatible
" Show a status line
set laststatus=2
" Show the current cursor position
Font=Powerline Consolas
ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47
Black=7,54,66
BoldBlack=0,43,54
Red=220,50,47
BoldRed=203,75,22
Green=133,153,0
BoldGreen=88,110,117
#Defaults always_set_home
# If enabled, sudo will set the HOME environment variable to the home directory of the target user
# (which is root unless the -u option is used). This effectively means that the -H option
# always_set_home is only effective for configurations where either env_reset is disabled or HOME is present
# in the env_keep list. Default: OFF
#Defaults authenticate
# If set, users must authenticate themselves via a password (or other means of authentication)
# before they may run commands. This default may be overridden via the PASSWD and NOPASSWD

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

#printf
RUN printf '#!/bin/bash\n\
echo hello world from line 1\n\
echo hello world from line 2'\
>> /tmp/hello
#echo
RUN echo -e '#!/bin/bash\n\
echo hello world from line 1\n\
echo hello world from line 2'\

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@dragon788
dragon788 / ubuntu-trusty-preseed.seed
Last active August 31, 2015 17:46
Preseed for Trusty Thrall - 14.04 LTS
########################################################################
#### Custom Preseed Amlin Europe using Ubiquity
### By Kelly Crabbé for Amlin Europe
### Tested on Ubuntu Trusty Thral 14.04 LTS
####################################################################
# General
####################################################################
# Once installation is complete, automatically power off.
@dragon788
dragon788 / gist:37bee2d3d26d663339c4
Last active September 6, 2015 19:30 — forked from calkan/gist:eaad0bc4458da16a72dd
Michael Hoffman's crazy bash_history backer upper on git
1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is:
https://github.com/calkan/bash_history.git
2 - Create .history directory and initialize it for the repo:
mkdir $HOME/.history
cd $HOME/.history
git init
touch README.md