Skip to content

Instantly share code, notes, and snippets.

View dajo's full-sized avatar

Jason Lachowsky dajo

View GitHub Profile
2 tone
2-step garage
4-beat
4x4 garage
8-bit
acapella
acid
acid breaks
acid house
acid jazz
### Keybase proof
I hereby claim:
* I am dajo on github.
* I am dajo (https://keybase.io/dajo) on keybase.
* I have a public key whose fingerprint is D3FA 217C E38B 7E3E 91A2 DEB7 EDEE B8D5 53B4 8D2E
To claim this, I am signing this object:
@dajo
dajo / beetslog
Last active August 29, 2015 14:19
beets - log excerpt
Sending event: import_task_created
Sending event: import_task_created
Sending event: import_task_created
c:\python27\lib\site-packages\mutagen\id3\_frames.py:177: ID3Warning: invalid sync-safe string: '\x00image/jpeg\x00\x00\x00\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x02\x01\x00H\x00H\x00\x00\xff\xe1\x01\x92Exif\x00\x00MM\x00*\x00\x00\x00\x08\x00\x0e\x01\x00\x00\x03\x00\x00\x00\x01\x0e\x10\x00\x00\x01\x01\x00\x03\x00\x00\x00\x01\x0e\x10\x00\x00\x01\x02\x00\x03\x00\x00\x00\x03\x00\x00\x00\xb6\x01\x03\x00\x03\x00\x00\x00\x01\x00\x01\x00\x00\x01\x06\x00\x03\x00\x00\x00\x01\x00\x02\x00\x00\x01\x12\x00\x03\x00\x00\x00\x01\x00\x01\x00\x00\x01\x15\x00\x03\x00\x00\x00\x01\x00\x03\x00\x00\x01\x1a\x00\x05\x00\x00\x00\x01\x00\x00\x00\xbc\x01\x1b\x00\x05\x00\x00\x00\x01\x00\x00\x00\xc4\x01\x1c\x00\x03\x00\x00\x00\x01\x00\x01\x00\x00\x01(\x00\x03\x00\x00\x00\x01\x00\x02\x00\x00\x011\x00\x02\x00\x00\x00\x1e\x00\x00\x00\xcc\x012\x00\x02\x00\x00\x00\x14\x00\x00\x00\xea\x87i\x00\x04\x00\x00\x00\x01\x00\x00\x01\x00\x00\x00\x01,\x
@dajo
dajo / Autounattend.xml
Created October 17, 2015 03:29 — forked from sneal/Autounattend.xml
Windows Server 2012 R2 Autounattend.xml
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
#!/bin/bash
if [ $1 == 'help' ] || [ $1 == '?' ]; then
echo "Modifies extension of a group of files in current directory"
echo "usage: ext-modify.sh [old extension] [new extension]"
exit 0
fi
OLDEXT=$1
NEWEXT=$2
echo "This script modifies the extension of a group of existing files."
if [ -z "$1" ]; then
@dajo
dajo / boxstarter_IT.txt
Last active May 24, 2016 17:23
Boxstarter - IT
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
Update-ExecutionPolicy
#shell stuff
choco install consolez -y
choco install conemu -y
choco install powershell -y
choco install setacl -y
#!/usr/bin/env python
import sys
import os
import re
if len(sys.argv) > 1:
USER = sys.argv[1]
else:
print "usage: python video_check.py [filename]"
sys.exit(0)
@dajo
dajo / WrapQuotesPaste.ahk
Created December 12, 2015 19:15
trivial script to wrap clipboard in quotation marks then paste it
^!z::
ClipBoard = "%ClipBoard%"
Send ^v
Return
@dajo
dajo / CreateBG.ps1
Created June 15, 2016 23:16
creates a BMP image of Computer Name with random background color, for use with bginfo
# inspired by Al Resch's use of bginfo to brand server desktops
Add-Type -AssemblyName System.Drawing
# set variables
$computername = $env:computername
$imageFormat = “System.Drawing.Imaging.ImageFormat” -as [type]
$filename = "wallpaper.bmp"
# which color will it be?
$selectedColor = ( ($color_array = "AliceBlue", "AntiqueWhite", "Aqua", "Aquamarine", "Azure", "Beige", "Bisque", "Black", "BlanchedAlmond", "Blue", "BlueViolet", "Brown", "BurlyWood", "CadetBlue", "Chartreuse", "Chocolate", "Coral", "CornflowerBlue", "Cornsilk", "Crimson", "Cyan", "DarkBlue", "DarkCyan", "DarkGoldenrod", "DarkGray", "DarkGreen", "DarkKhaki", "DarkMagenta", "DarkOliveGreen", "DarkOrange", "DarkOrchid", "DarkRed", "DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray", "DarkTurquoise", "DarkViolet", "DeepPink", "DeepSkyBlue", "DimGray", "DodgerBlue", "Firebrick", "FloralWhite", "ForestGreen", "Fuchsia", "Gainsboro", "GhostWhite", "Gold", "Goldenrod", "Gray", "Green", "GreenYellow", "Honeydew", "HotPink", "IndianRed", "I
:%s/\([0-9]\) \([0-9.]\)/\1\2/g