Skip to content

Instantly share code, notes, and snippets.

View kcollasarundell's full-sized avatar
:shipit:
What year is it O.O

Kevin Collas-Arundell kcollasarundell

:shipit:
What year is it O.O
View GitHub Profile
{
"metadata": {
"name": "fraus"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@kcollasarundell
kcollasarundell / pwhash
Created February 6, 2014 02:09
Password hashing tool for those of us suffering redhat systems
#!/usr/bin/python
import random
import crypt
import sys
ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
rounds = 25412
@kcollasarundell
kcollasarundell / smb.conf
Created February 5, 2011 12:37
smb kludge
[global]
map to guest = bad user
[shared]
writeable = yes
wide links = no
path = /home/blah
force directory mode = 777
force group = blah
force user = blah
"Resource/UI/HudMedicCharge.res"
{
"Background"
{
"ControlName" "CTFImagePanel"
"fieldName" "Background"
"wide" "0"
"tall" "0"
"visible" "1"
"enabled" "0"
@kcollasarundell
kcollasarundell / moo.bat
Created June 17, 2011 02:28
silly batch file for bob
echo "Hey bob don't forget to replace the - with :" >"%HOMEPATH%\desktop\ip.txt"
ipconfig >> "%HOMEPATH%\desktop\ip.txt"
start notepad "%HOMEPATH%\desktop\ip.txt"
@kcollasarundell
kcollasarundell / Bloody Kevin
Created June 20, 2011 00:56 — forked from Symorg/Bloody Kevin
Bloody kevin
ipconfig /all > "%HOMEPATH%\desktop\ip.txt"
start notepad "%HOMEPATH%\desktop\ip.txt"
@kcollasarundell
kcollasarundell / selenium.sh
Created August 25, 2011 03:29 — forked from lifeeth/selenium.sh
selenium init.d script for debian
#!/bin/bash
# /etc/init.d/selenium
# debian-compatible selenium-grid startup script.
# Based on jenkins startups
# Praneeth Bodduluri <lifeeth[at]gmail.com>
# update-rc.d -n -f selenium start 90 2 3 4 5 . stop 10 0 1 6 .
### BEGIN INIT INFO
# Provides: selenium-grid
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
class drbd::drbd_config {
# require Class[drbd::drbd_install]
# require Class[drbd::drbd_service]
# $drbd_resource = ymllookup('drbd_resource')
$drbd_resource = { data_share1 => { 'node1.local' => ['192.168.222.21','/dev/drbd1'],
'node2.local' => ['192.168.222.22','/dev/drbd1'] },
data_share2 => { 'node1.local' => ['192.168.222.21','/dev/drbd2'],
'node2.local' => ['192.168.222.22','/dev/drbd2'] }
#!/bin/ruby
# require Class[drbd::drbd_install]
# require Class[drbd::drbd_service]
# $drbd_resource = ymllookup('drbd_resource')
drbd_resource = { "data_share1" => { 'node1.local' => ['192.168.222.21','/dev/drbd1'],
'node2.local' => ['192.168.222.22','/dev/drbd1'] },
"data_share2" => { 'node1.local' => ['192.168.222.21','/dev/drbd2'],
'node2.local' => ['192.168.222.22','/dev/drbd2'] }}
@kcollasarundell
kcollasarundell / gist:2023268
Created March 12, 2012 16:46
Vim indenting and regex
"Brute force an ignorance time
if line =~ '^\s*#'
return indent
elseif line =~ ':\s*$'
return increase
elseif line =~ ':\s*#.*$'
return increase
else
return indent
endif