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 | |
| # Using Ubuntu | |
| curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash - | |
| sudo apt-get install -y nodejs |
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
| find ./ -type f -name "*.xls" -print0 | xargs -0 -I {} mv {} ./ |
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 | |
| githubproject="https://github.com/FOGProject/fogproject/releases/latest/" | |
| url=$(curl -Ls -o /dev/null -w %{url_effective} $githubproject) | |
| version=${url##*/} | |
| echo $version |
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 | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi | |
| DISTRO= | |
| OS= | |
| if grep 'Debian' /etc/issue > /dev/null 2>&1 ; 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
| umask 077 | |
| EDITOR=nano | |
| export EDITOR | |
| HISTFILESIZE=-1 | |
| export HISTFILESIZE | |
| alias ll='ls -laFhGH' | |
| alias h='history' | |
| alias cd..='cd ..' |
NewerOlder