Skip to content

Instantly share code, notes, and snippets.

@jetpks
jetpks / ppv
Created June 27, 2014 03:37
Validate your puppet manifests and erb templates.
#!/bin/bash
# Colors first, because they're important
green="\e[0;32m"
yellow="\e[1;33m"
red="\e[0;31m"
norm="\e[0m"
if [ ! -e $1 ]; then
printf "${yellow}404 NOTFOUND${norm}\t %s\n" $1;
exit 404;
@jetpks
jetpks / osx-for-hackers.sh
Created January 13, 2015 19:44
osx-for-hackers.sh # revised edition
#!/bin/sh
# ejacobs: removed all of those annoying prompts. Some of this doesn't work.
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
@jetpks
jetpks / native-bonds.patch
Created March 12, 2015 18:36
Let fuel use native bonds.
diff --git a/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb b/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb
index f80e466..6504c4a 100644
--- a/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb
+++ b/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb
@@ -4,6 +4,7 @@ require 'puppet/parser'
require 'puppet/parser/templatewrapper'
require 'puppet/resource/type_collection_helper'
require 'puppet/util/methodhelper'
+require 'json'
@jetpks
jetpks / ringtonize.rb
Created May 21, 2015 22:38
Find m4a files, and make them m4r files.
#!/usr/bin/env ruby
require 'FileUtils'
def main
config = parse_args
files = find_m4a(config[:src])
mangled = mangle_names(files, config[:dst])
move_files(mangled)
end
@jetpks
jetpks / README.md
Last active August 29, 2015 14:25 — forked from nickbudi/README.md
Budi's Counter-Strike: Global Offensive config

Budi's CS:GO Config

This is my constantly updated CS:GO autoexec config.

Put the files autoexec.cfg and video.txt in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

Launch Options

-novid -high -threads 4 -freq 144 -refresh 144 -tickrate 128 -nojoy -nod3d9ex +exec autoexec.cfg
@jetpks
jetpks / ss23
Created November 30, 2011 17:07
ss23
++++++++++++oooooooooooosyyyyyyyhyyshhyyyyyyysssssssosso++++oo+++///////////:::---..`````````..-
+++++++++++++ooooooosssyyosssys+yys+ssyhyssssshysoyyooooooo++oo++++/////////:::--..```` ```.-
+++++++++++++oooossysoo+oosyo++/oy++yyoosoosooosysoysosoo++oosso++o+++/////::::--..```` ```..-
+++++++++++++oosyyyysssosshhso+syso/ydysso+y/os+oyysysoyyysooosyoo+o+o++///::::--..``````````.--
++++++++++++osyyhhhyyysyyyddhsyhdyhyhdhyyoohs/so+syhyhyyyhhyssosso+osoooo+///:::--...``````..---
++++++++++ooshhddhhdddysdyydhhshdddddddhyyyydsyysoyhhhdhsyhhsyyyyssssysoso+/:::::---.......----:
.....````+oohdhhdhhddhyyyhhhhhhyyddddmmdhyyhdmhhhyyhhhddhhhdhyhdhhhyyyyssso+/::::::----------:::
.:ooysdddyhddyddhhyyddyhhhyyyddmmmddhhdmmdddhhhhhhddhhddddddhhyyyyysso+//:::::::::::::::::
..--:+shhyysddddhdddhddddhydddhyhhyhdmmmmmdhhdmmdhhhhhhdhddddddddddddhhyyyyss+//:::::::::::::::/
---:+oshhhysyddhdhhddhddddhhhdddhhhhhddmmmmmdhhmmdddddhdhdhdddddhdddhdhhhyhyyso////:::::::::////
@jetpks
jetpks / .vimrc
Created December 22, 2011 18:27
My vimrc
call pathogen#infect()
syntax on
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set ruler
set hlsearch
set incsearch
@jetpks
jetpks / gist:1765481
Created February 8, 2012 04:39
I'M A BUS
C:\Users\eric\Documents\node_service>.\nssm.exe install thebus "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\eric\Documents\static\server.js" "80" "C:\Users\eric\Documents\public\"
Service "thebus" installed successfully!
C:\Users\eric\Documents\node_service>net start thebus
The thebus service is starting.
The thebus service was started successfully.
C:\Users\eric\Documents\node_service>curl localhost
@jetpks
jetpks / hack.sh
Created March 31, 2012 17:04 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2266791/hack.sh | sh
#
echo "Show all filename extensions in Finder"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo "Use current directory as default search scope in Finder"
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
echo "Show Path bar in Finder"
defaults write com.apple.finder ShowPathbar -bool true
echo "Show Status bar in Finder"