brew install python swig zmq
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
| sudo mkfs -t ext4 /dev/xvdf | |
| sudo mkdir /ebscache | |
| sudo mount /dev/xvdf /ebscache | |
| sudo cp /etc/fstab /etc/fstab.orig | |
| echo "/dev/xvdf /ebscache ext4 defaults,nofail 0 2" | sudo tee -a /etc/fstab | |
| sudo mkdir /ebscache/cache | |
| sudo mkdir /ebscache/build-cache | |
| sudo chown gitlab-runner:gitlab-runner /ebscache/cache | |
| sudo chown gitlab-runner:gitlab-runner /ebscache/build-cache |
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
| sudo mkdir /ebscache/cache | |
| sudo mkdir /ebscache/build-cache | |
| sudo chown gitlab-runner:gitlab-runner /ebscache/cache | |
| sudo chown gitlab-runner:gitlab-runner /ebscache/build-cache | |
| sudo chmod -R 755 /ebscache/cache | |
| sudo chmod -R 755 /ebscache/build-cache | |
| sudo rm -rf /cache | |
| sudo ln -s /ebscache/cache /cache | |
| sudo rm -rf /build-cache | |
| sudo ln -s /ebscache/build-cache /build-cache |
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
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
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 bash | |
| # Find the 10 largest files in a directory and transparently zip them | |
| for i in $(du -hsx * | sort -rh | head -10 | awk '{print $2}'); do gzip $i; 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
| #!/usr/bin/env bash | |
| mv $1{,.old} |
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 | |
| printf '\e[31m *** This command will traverse subfolders ***\e[0m\n' | |
| printf '\e[31m *** and mount each ISO found and copy the contents ***\e[0m\n' | |
| printf '\e[31m *** to the directory of the ISO, then unmount the ISO ***\e[0m\n' | |
| printf '\e[31m *** and delete it permanently. ***\e[0m\n' | |
| read -r -p "Are you sure you would like to proceed? [y/N] " response | |
| case $response in | |
| [yY][eE][sS]|[yY]) |
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
| sudo curl -L https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl` | |
| sudo chmod a+rx /usr/local/bin/youtube-dl | |
| /usr/local/bin/youtube-dl -f mp4 -o "%(autonumber)s - %(title)s - %(id)s.%(ext)s" --autonumber-size 2 https://www.youtube.com/playlist?list=PLD409ujd87ZsfNMffX9h1rGNVqnC |
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 | |
| set system static-host-mapping host-name headnode.localdomain.local alias headnode | |
| set system static-host-mapping host-name headnode.localdomain.local inet 10.10.1.50 |