Skip to content

Instantly share code, notes, and snippets.

View codemis's full-sized avatar

Johnathan Pulos codemis

View GitHub Profile
@codemis
codemis / RecursiveFileFinder.vbs
Last active August 29, 2015 14:12
Excel Search VBScript
Class RecursiveFileFinder
Private mFileSystemObject
Private mSearchFolder
Private mFilesRetrievedCount
Dim mFilesRetrieved()
Private Sub Class_Initialize()
Set mFileSystemObject = CreateObject("Scripting.FileSystemObject")
Set mFilesRetrievedCount = 0
@codemis
codemis / cruisecontrol
Created May 1, 2014 00:12
CruiseControl Services
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
. /lib/lsb/init-functions
JAVA_HOME=/usr
NAME=cruisecontrol
DAEMON=/opt/cruisecontrol/cruisecontrol.sh
PIDFILE=/opt/cruisecontrol/cc.pid
test -x $DAEMON || exit 5
@codemis
codemis / gist:8225337
Last active November 9, 2021 12:13
A Git pre-commit hook for validating code follows PHP's Fig Coding Standard. The script requires PEAR's Code Sniffer library. Change the variables to fit your project code structure. Just drop this file in your .git/hooks/ directory. This script is a modified file created by Soenke Ruempler.
#!/bin/bash
# PHP CodeSniffer pre-commit hook for git
#
# @author Soenke Ruempler <soenke@ruempler.eu>
# @author Sebastian Kaspari <s.kaspari@googlemail.com>
#
# see the README
PHPCS_BIN=/usr/local/bin/phpcs
PHPCS_CODING_STANDARD=PSR2
@codemis
codemis / ruby_chef_install.sh
Last active December 20, 2015 00:19
Setup Ruby and Chef on Ubuntu 12.04 32 Bit. Run the following command with the current RAW file URL: "curl -l URL_FOR_RAW_FILE | bash"
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential libyaml-dev zlib1g-dev openssl libssl-dev libreadline-gplv2-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
sudo ./configure --prefix=/usr/local
sudo make
sudo make install