This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function EscapeURL() { | |
# Escape the given URL and return it. | |
param ( | |
[Parameter()] | |
[string] $URL_To_Escape | |
) | |
return [uri]::EscapeDataString($URL_To_Escape) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.mp4; do ffmpeg -vn -acodec copy $f.aac -i $f; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit for script to Sebastian Piskorski on Stack Overflow: | |
# https://stackoverflow.com/a/39622947/563231 | |
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DebugLogger(logText, debugLevel:="DEBUG") { | |
; Debug logging functionality for AutoHotkey (AHK). | |
; Creates one log file per day, and appends date/time to each log line. | |
; Uses debug levels: DEBUG, INFO, WARNING, ERROR, CRITICAL. | |
FormatTime, CurrentDate,, yyyy-MM-dd | |
FormatTime, CurrentDateTime,, yyyy-MM-dd hh:mm:ss | |
IfNotExist, .\log\ | |
FileCreateDir, .\log\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Const vbDoubleQuote As String = """" 'represents 1 double quote (") | |
Public Const vbSingleQuote As String = "'" 'represents 1 single quote (') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function columnLetterToNumber(letter) As Long | |
' Convert a given column letter into the corresponding column number. | |
columnLetterToNumber = Range(letter & 1).Column | |
End Function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
__location__ = os.path.realpath( | |
os.path.join(os.getcwd(), os.path.dirname(__file__))) | |
f = open(os.path.join(__location__, 'example.jpg')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var allsongs = []; | |
var outText = ""; | |
var songsToText = function (style, csv, likedonly) { | |
if (style === undefined) { | |
console.log("style is undefined."); | |
return; | |
} | |
var csv = csv || false; // defaults to false | |
var likedonly = likedonly || false; // defaults to false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [ === Toggleable autoclicker === ] | |
// Activating will enable, and a second toggle will deactivate. | |
// ** Legit version (doesn't activate Game.autoclickerDetected) | |
if (window._activeClickInterval) { | |
clearInterval(window._activeClickInterval); | |
delete window._activeClickInterval; | |
} else { | |
window._activeClickInterval = setInterval(Game.ClickCookie, 250); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -r = recursive | |
# -n = line number within file | |
# -w = match whole word | |
grep -rnw . -e 'query' # Search current dir in bash. | |
grep -rnw '/path/to/directory/' -e 'query' # Search provided directory in bash. |
NewerOlder