Skip to content

Instantly share code, notes, and snippets.

View joedf's full-sized avatar
🦝
Studying geology, materials, and hacking computers

Joe DF joedf

🦝
Studying geology, materials, and hacking computers
View GitHub Profile
@joedf
joedf / Switch-Ifs.ahk
Last active August 29, 2015 13:55
a lazy 'switch' implementation/demonstration in AutoHotkey ???
; Switch-Ifs.ahk
;-----------------------------------------------------------------------------
; a 'switch' implementation/demonstration ??? First created @ 20:06 2014/01/29
; by joedf - Revision 2 - 17:49 2014/10/26
; to be combined with this ??? http://www.autohotkey.com/board/topic/37397-onelinecommands-execute-ahk-code-dynamically/
; Please note... that this is a very lazy implementation... :P
; MsgBox are there because of debugging.. left there for convenience?
;///////////////////////////////////////////////////////////
;
; Advantages/Disadvantages (Pros & Cons)
@joedf
joedf / python27patch_x64.reg
Created February 16, 2014 22:52
Python SetupTools Registry Patch - 64-bit version - HKLM|HKCU\SOFTWARE\
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Python]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\Help]
@joedf
joedf / python27patch.reg
Created February 16, 2014 22:53
Python SetupTools Registry Patch - 32-bit version - HKLM|HKCU\SOFTWARE\wow6432node\
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Help]
[Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #293134
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
@joedf
joedf / GDI.ahk
Last active August 29, 2015 14:13 — forked from G33kDude/GDI.ahk
class GDI
{
__New(hWnd, CliWidth=0, CliHeight=0)
{
if !(CliWidth && CliHeight)
{
VarSetCapacity(Rect, 16, 0)
DllCall("GetClientRect", "Ptr", hWnd, "Ptr", &Rect)
CliWidth := NumGet(Rect, 8, "Int")
CliHeight := NumGet(Rect, 12, "Int")
@joedf
joedf / IPC.ahk
Last active August 29, 2015 14:14 — forked from Lexikos/IPC.ahk
/* Title: IPC
*Inter-process Communication*.
*/
/*
Function: Send
Send the message to another process (receiver).
Parameters:
PidOrName - Process name or ID
@joedf
joedf / .htaccess
Created October 23, 2015 05:36 — forked from MicahChalmer/.htaccess
Scripts to set up Ruby 1.9.3 on a DreamHost shared hosting account via rbenv and ruby-build, and run a Rack app with it via FastCGI.
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
</IfModule>
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
</IfModule>
Options +FollowSymLinks +ExecCGI
RewriteEngine On
@joedf
joedf / Git Shell.ahk
Created January 14, 2016 16:39
Open git shell directly from "GitHub for Windows" (GH4W).
#NoEnv
#NoTrayIcon
#SingleInstance, Off
EnvGet, AppData_Local, LOCALAPPDATA
if !StrLen(AppData_Local)
if InStr(p := A_AppData,"\roaming")
AppData_Local:=SubStr(p,1,-8) "\Local"
else
ExitError("Could not find 'Local AppData'.")
@joedf
joedf / parser.ahk
Created June 14, 2016 22:28
Quick&Dirty Parser example for the "awesome-AutoHotkey" list.
;
; AutoHotkey Version: 1.1.24.00
; Dev Platform: Windows 10 Home Premium x64
; Author: Joe DF | http://joedf.ahkscript.org | joedf@ahkscript.org
; Date: 18:25 2016/06/14
; Description: Quick&Dirty Parser example for the "awesome-AutoHotkey" list.
#NoEnv
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;<<<<<<<< HEADER END >>>>>>>>>
@joedf
joedf / DarkMonokai.qss
Created July 10, 2016 15:25 — forked from Zren/DarkMonokai.qss
Dark Monokai - Quassel Theme (qss)
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**