Skip to content

Instantly share code, notes, and snippets.

View jasondavis's full-sized avatar

Jason Davis jasondavis

View GitHub Profile
@jasondavis
jasondavis / google search time range.ahk
Created April 2, 2023 04:05
(autohotkey) - switch between the various time ranges (hour, day, week, month, year) 🔎
#if WinActive("ahk_class Chrome_WidgetWin_1", , "ahk_class #32770")
or WinActive("ahk_class MozillaWindowClass", , "ahk_class #32770")
^+l::goSub, google_time_range
#if
google_time_range:
@jasondavis
jasondavis / change case.ahk
Created April 2, 2023 04:04
(autohotkey) - change the case of selected text
!u::goSub, set_upper_case
!l::goSub, set_lower_case
!t::goSub, set_title_case
set_upper_case:
set_lower_case:
set_title_case:
revert_clipboard := clipboardAll
@jasondavis
jasondavis / opendir.md
Created March 14, 2023 14:37 — forked from jermspeaks/opendir.md
Manually Searching OpenDirectories on Google

Manually Searching OpenDirectories on Google

For videos/movies/tvshows :

intext:\"Search Term\" intitle:\"index.of\" +(wmv|mpg|avi|mp4|mkv|mov) -inurl:(jsp|pl|php|html|aspx|htm|cf|shtml)

Images :

@jasondavis
jasondavis / getGooglePhoto.js
Created August 2, 2022 02:11 — forked from alangrainger/getGooglePhoto.js
Insert a personal Google Photo into an Obsidian entry, either as a link, a remote image, or a locally stored thumbnail
/*
This requires you to set up a curl command in Templater:
Function name:
curl
System command:
curl -o %templater_local% %templater_remote%
*/
@jasondavis
jasondavis / BatMan.ahk
Created January 21, 2022 18:51 — forked from tmplinshi/BatMan.ahk
CreateDIB
; http://8bitdecals.com/wp-content/uploads/2012/06/pixel-superheroes.jpeg
#SingleInstance, Force
SetBatchLines -1
PixelData=
( LTrim Join|
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|064463|F3FFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|C9FBFF|0A88C5|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|064464|F6FFFE|FEFEFE|FFFFFF|FFFFFF|FEFEFE|CDFDFF|0B89C6|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|044564|0D8CC9|E9FFFF|FEFEFD|FEFEFD|D9FEFF|0072A9|098BC5|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|064464|0A6793|016995|016995|016B98|036998|006EA6|0A89C7|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
@jasondavis
jasondavis / i.mage.ahk
Created January 17, 2022 06:43
🧙‍♂️ (autohotkey) - one click image download
/*
[hotkeys]
!p = C:\Users\%a_userName%\Pictures\.i.mages
[browser]
ahk_exe chrome.exe
ahk_exe firefox.exe
ahk_exe iexplore.exe
ahk_exe vivaldi.exe
@jasondavis
jasondavis / txt.wrap.ahk
Created January 17, 2022 04:40
✏️ (autohotkey) - wrap selected text in *symbols*
/*
[wrap list]
( = (TXT)
`[ = [TXT]
{ = {TXT}
< = <TXT>
> = >TXT<
a = /`*TXT*`/
h = <!-- TXT -->
/*
CreateFormData - Creates "multipart/form-data" for http post
https://www.autohotkey.com/boards/viewtopic.php?t=7647
Usage: CreateFormData(ByRef retData, ByRef retHeader, objParam)
retData - (out) Data used for HTTP POST.
retHeader - (out) Content-Type header used for HTTP POST.
objParam - (in) An object defines the form parameters.
@jasondavis
jasondavis / batch.md
Created October 30, 2021 13:17 — forked from Skhmt/batch.md
Reference for writing .bat/.cmd files in windows
@jasondavis
jasondavis / index.html
Created October 24, 2021 22:02 — forked from felixrieseberg/index.html
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<link rel="stylesheet" type="text/css" href="./styles.css">
</head>
<body>
<script>
// You can also require other files to run in this process