Skip to content

Instantly share code, notes, and snippets.

View dajo's full-sized avatar

Jason Lachowsky dajo

View GitHub Profile
@sampsyo
sampsyo / genres.txt
Created September 25, 2011 23:19
music genre list scraper
2 tone
2-step garage
4-beat
4x4 garage
8-bit
acapella
acid
acid breaks
acid house
acid jazz
@jetheis
jetheis / onetoughpuzzle.js
Created December 31, 2011 17:24
One Tough Puzzle Solver
/**
* onetoughpuzzle.js
*
* The model and puzzle solving functionality for finding solutions to
* the One Tough Puzzle toys distributed by Great American Puzzle Factory
*
* Copyright (C) 2011 Jimmy Theis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
@shivaas
shivaas / US Bank holidays (up to 2020)
Last active February 27, 2023 04:16
CSV for all US bank holidays till 2020. First row is the header. Dates are MYSQL format.
1,2012-01-02,New Year Day
2,2012-01-16,Martin Luther King Jr. Day
3,2012-02-20,Presidents Day (Washingtons Birthday)
4,2012-05-28,Memorial Day
5,2012-07-04,Independence Day
6,2012-09-03,Labor Day
7,2012-10-08,Columbus Day
8,2012-11-12,Veterans Day
9,2012-11-22,Thanksgiving Day
10,2012-12-25,Christmas Day
@lottspot
lottspot / btsync-init
Last active December 28, 2015 01:59
A simple init script for BitTorrent Sync. Written and tested on CentOS 6.
#!/bin/bash
BIN='/usr/local/bin/btsync'
CONF='/usr/local/etc/btsync/sync.conf'
PID='/var/run/btsync/btsync.pid'
PIDMATCH=true
SERVICE=$(basename $0)
test $(id -u) -ne 0 && echo "This is for root." >&2 && exit 1
main(){
@mgrandi
mgrandi / rename-file-to-parent-folder.py
Last active June 14, 2017 16:00
rename a file based on the name of the parent directory
#
# script to rename files to the same name as the parent folder
#
# so
#
# 3a -|
# - 3a1c603a -|
# - resident_sound.dat (gets renamed to be 3a1c603a_resident_sound.dat)
#
#
@devhawk
devhawk / Invoker.ps1
Last active August 28, 2016 02:01
Boxstarter Configuration
function Run-Boxstarter-From-Gist($gistId, $fileName) {
Invoke-WebRequest "https://api.github.com/gists/$gistId" -UseBasicParsing | ConvertFrom-Json | %{
$local:boxstarterUrl = "http://boxstarter.org/package/url?$($_.files.$fileName.raw_url)"
& 'C:\Program Files\Internet Explorer\iexplore.exe' -new $local:boxstarterUrl
}
}
Run-Boxstarter-From-Gist d5e9d66238717bab0e23 basicconfig.ps1
Run-Boxstarter-From-Gist d5e9d66238717bab0e23 devcconfig.ps1
@meitinger
meitinger / UpdatesDownloader.cs
Last active April 1, 2016 21:38
Utility that downloads all approved Windows 7 updates from WSUS that can be used with DISM.
/* Copyright (C) 2015, Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@dieseltravis
dieseltravis / PS-BGInfo.ps1
Last active April 23, 2024 15:16
update wallpaper background image with powershell (like Sysinternals BGInfo)
# PS-BGInfo
# Powershell script that updates the background image with a random image from a folder and writes out system info text to it.
# run as a lower priority task
[System.Threading.Thread]::CurrentThread.Priority = 'BelowNormal'
# Configuration:
# Font Family name
$font="Input"
@Hexalon
Hexalon / Imaging-Win10.ps1
Last active August 17, 2017 18:05
Provides interactive/automated imaging operations using DISM and WinPE
#requires -version 4.0
#requires -modules Storage,DISM
#Requires -RunAsAdministrator
<#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.117
Created on: 3/16/2016 10:05
Created by: Colin Squier <hexalon@gmail.com>
Filename: Imaging-Win10.ps1
@jacobsalmela
jacobsalmela / requestMedicalRecords.py
Created June 3, 2016 14:10
Template script to quickly fill out PDFs
#!/usr/bin/env python
# Jacob Salmela
# 2016-06-02
# Writes text to a PDF at coordinates. Use for quickly filling out forms that you use regularly.
# This takes some manual setup, but saves a ton of time once done
# http://stackoverflow.com/a/17538003
# Make sure to install the two utilities below first
# sudo easy_install pyPdf
# sudo easy_install reportlab