Skip to content

Instantly share code, notes, and snippets.

@Otiel
Otiel / rename-tag.sh
Last active June 21, 2019 12:08
Bash script to rename a git tag
#!/bin/bash
oldTag=$1
newTag=$2
tmpTag=$2-tmp
echo "* Running command: git tag $tmpTag $oldTag"
git tag $tmpTag $oldTag
echo
echo "* Running command: git tag -d $oldTag"
@Otiel
Otiel / OpenSTF debian setup.md
Created August 8, 2018 16:49
Install OpenSTF on Debian 9.5.0 (Stretch)
@Otiel
Otiel / Prevent screensaver.ahk
Last active October 4, 2023 10:35
AutoHotkey script to prevent Windows or your screen from going to sleep
CoordMode, Mouse, Screen
Loop
{
; Move mouse
MouseMove, 1, 1, 0, R
; Replace mouse to its original location
MouseMove, -1, -1, 0, R
; Wait before moving the mouse again
Sleep, 600000
}
@Otiel
Otiel / HashFiles.xys
Last active March 16, 2022 13:28
XYplorer script to generate hash (CRC-32, MD5, SHA-1, SHA-256, SHA-512)
"HashFiles"
// Check if there's a file/folder selected
if (Get("CountSelected") == 0) {
Msg("Please select at least one file to calculate the hash.", 16);
End(1);
}
// Remove the folders from the list of selected paths
$filesPaths = "";
foreach ($path, Get('SelectedItemsPathNames', '|'), "|") {
@Otiel
Otiel / Slack.ahk
Last active August 1, 2022 16:53
AutoHotkey script to show or hide Slack desktop app
#Include TrayIcon.ahk
#s::
; Win S
; Show/hide Slack
DetectHiddenWindows, Off
Process, Exist, slack.exe
slackPid = %ErrorLevel%
IfWinNotExist, ahk_pid %slackPid%
{