This file contains 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 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 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 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 |