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
winprompt() { | |
printf "%s:%s>" "$(printf "\\$(printf '%03o' $(( $(df -x tmpfs --output=target | tail -n +2 | grep -wn "$(findmnt -T . -o target -n)" | cut -d':' -f1) + 66 )))")" "$(pwd | sed 's/\//\\/g')"; | |
} | |
PS1='$(winprompt)' |
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
:: DOOM_LAUNCHER.BAT by Siph is marked with CC0 1.0. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/ | |
@ECHO OFF | |
:loopmidi | |
CLS | |
CHOICE /C:YN /N /M "Launch loopMIDI and Nuked-SC55? (Y/N)" | |
IF %ERRORLEVEL% EQU 1 ( | |
START /B "" "C:\Program Files (x86)\Tobias Erichsen\loopMIDI\loopMIDI.exe" |
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
#!/bin/bash | |
backup_folder="${HOME}/backup" | |
# Finding the latest backup | |
latest_backup=$(find "${backup_folder}" -type f -name "donphan_social_db_backup_*" | head -1) | |
# If latest backup exists, check if enough space | |
if [ -n "${latest_backup}" ] | |
then |
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
! do not scroll with output | |
URxvt*scrollTtyOutput: false | |
! scroll in relation to buffer (with mouse scroll or Shift+Page Up) | |
URxvt*scrollWithBuffer: true | |
! scroll back to the bottom on keypress | |
URxvt*scrollTtyKeypress: true | |
! hide scrollbar |
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
#!/bin/bash | |
_name='MastoMutant Emoji Import' | |
_author='https://monsterpit.net/@daggertooth' | |
_version=2018.05.23.1 | |
### PATHS! ### | |
# Where to put the Mutant Standard archives and extracted files. | |
mutant_dir="$HOME/mutant" |
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
#!/usr/bin/env ruby | |
abort "please write your string as an argument" unless ARGV[0] | |
puts ARGV.join(' ').gsub(/[^a-z \n]/i, '').chars.map { |letter| | |
if letter.ord.between? 'a'.ord, 'z'.ord then | |
letter = " :#{letter}_wide:" | |
else | |
letter = letter | |
end }.join |