Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Davis jasondavis

View GitHub Profile
View php_errors.log
[05-Sep-2020 00:35:06 UTC] PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\laragon\etc\php\pear\PHPMailerAutoload.php on line 45
[05-Sep-2020 00:35:17 UTC] PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\laragon\etc\php\pear\PHPMailerAutoload.php on line 45
@jasondavis
jasondavis / [square tag].ahk
Created Aug 28, 2020 — forked from davebrny/[square tag].ahk
🏷️ (autohotkey) - add a tagspaces style [tag] to a filename
View [square tag].ahk
/*
[tag list]
bank
car
insurance
receipt
tax
[settings]
recent_total = 11
@jasondavis
jasondavis / text launcher.ahk
Created Aug 28, 2020 — forked from davebrny/text launcher.ahk
(autohotkey) - launch files/folders/urls from a text list
View text launcher.ahk
#noEnv
#singleInstance, force
sendMode, input
return
!l:: goSub, get_text_to_launch
!+l::goSub, text_launcher ; repeat last selection
@jasondavis
jasondavis / vhosts.bat
Created Aug 21, 2020 — forked from ukazap/vhosts.bat
Windows batch script for creating new virtual host entries on Apache.
View vhosts.bat
@echo off
set texteditor=subl rem Text editor of your choice e.g. Sublime Text (subl)
set hostsfile=C:/Windows/System32/drivers/etc/hosts rem Where Windows' hosts file is located
set vhostsfile=C:/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf rem This one depends on your installation.
set htdocs=C:/wamp/www rem This one depends on your installation.
if ["%1"] == ["edit"] goto:edit
if ["%1"] == ["add"] goto:add
goto:usage
View Class_ListBox.ahk
; Works for DropDownList/ComboBox/ListBox
Class ListBox
{
__New(hwnd) {
; GuiControl, +AltSubmit, %hwnd%
this.hwnd := hwnd
}
Add(str) {
GuiControl,, % this.hwnd, %str%
@jasondavis
jasondavis / openSublimeProject.ahk
Created Apr 16, 2018 — forked from noahcoad/openSublimeProject.ahk
Fixes Sublime Text 2 open project odd behavior on Windows by making sure the selected project receives focus. Will also open files in a specific project window.
View openSublimeProject.ahk
;
; Opens Sublime Text 2 and makes the wanted project have focus
; If additional files are specified, they'll be opened in the specified project
; Useful for scripting, global hotkeys, command launchers, etc
;
; Example:
; openSublimeProject.ahk c:\sites\blog\blog.sublime-project c:\sites\blog\.gitignore c:\sites\blog\Gemfile
;
; Problems this script fixes:
; 1. If sublime is already open with the requested project, it creates an empty window and makes that active
@jasondavis
jasondavis / Multi_Column_Menu_in_AutoHotKey.ahk
Last active Aug 26, 2020
Multi-Column Menus in AutoHotKey Demo
View Multi_Column_Menu_in_AutoHotKey.ahk
; AutoHotKey Multi Column Menu Example
; Forum URL - https://autohotkey.com/board/topic/69553-menu-with-columns-problem-with-adding-column-separator/#entry440866
; https://autohotkey.com/board/topic/25008-multi-column-menu/
; GitHub Gist URL - https://gist.github.com/jasondavis/d5d3e8437241c27d99f583259484f667
;- File Path -
; Image - https://www.apollowebstudio.com/screenshots/2018/04/2018-04-01_01-13-01.png
Menu, main, Add, Item 1, MenuHandler
Menu, main, Add, Item 2, MenuHandler
@jasondavis
jasondavis / Sidebar for notes in autohotkey
Created Mar 3, 2018 — forked from CCCBBBAAAHIGHSCORE/Sidebar for notes in autohotkey
Sidebar for notes in autohotkey (work in progress)
View Sidebar for notes in autohotkey
gui_state = closed
Return ; end of autoexecute
ScrollLock::
if gui_state != closed
{
; If the GUI is already open, close it.
gui, Destroy
@jasondavis
jasondavis / onTop.ahk
Created Feb 26, 2018 — forked from davebrny/onTop.ahk
🎩 (autohotkey) - manage 'always on top' windows from a context menu
View onTop.ahk
#noEnv
#singleInstance, force
return ; end of auto-execute
#space::goSub, onTop_menu ; show menu
#!space::goSub, toggle_onTop ; toggle the active window
^#!space::goSub, minimise_all_onTop
View drag-and-drop-tasks.markdown