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/sh | |
# Example for swapfile creation | |
# Run as root/sudo | |
mkdir -p /data/swap | |
fallocate -l 8G /data/swap/swapfile.000 | |
chmod 600 /data/swap/swapfile.000 | |
mkswap /data/swap/swapfile.000 | |
swapon /data/swap/swapfile.000 | |
swapon --show |
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/sh | |
# Date in standard UNIX format | |
# MMDDhhmmYYYY | |
# Mon Jun 3 13:31:00 UTC 2019 | |
date 060313312019 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/sh | |
# Fix Nintendo Switch exFat external attributes for SX OS / Atmosphere in Mac OS X | |
find $1 ! -name 'Nintendo' ! -name 'Emutendo' -maxdepth 1 -type d -exec sudo chflags -R arch {} + |
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
md5sum * | while read -r sum filename; do mv -v "$filename" "$sum"; 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
#!/bin/bash | |
# Rename files with spaces on it's filename with underscores | |
for f in *\ * | |
do | |
mv "$f" "${f// /_}" | |
done |
OlderNewer