Skip to content

Instantly share code, notes, and snippets.

Rodolpho Pivetta Sabino rodolphopivetta

Block or report user

Report or block rodolphopivetta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View install-rambox.sh
#!/bin/bash
DIR='/opt/rambox'
# Remove existing Rambox if exists
if [ -d "$DIR" ]; then
sudo rm -rf /opt/rambox
sudo rm -rf /usr/share/applications/rambox.desktop
fi
View virtualenv-auto-activate.sh
#!/bin/bash
# virtualenv-auto-activate.sh
#
# Installation:
# Add this line to your .bashrc or .bash-profile:
#
# source /path/to/virtualenv-auto-activate.sh
#
# Go to your project folder, run "virtualenv .venv", so your project folder
# has a .venv folder at the top level, next to your version control directory.
View xrandr.sh
#!/bin/bash
#If no argument is specified, ask for it and exit
if [[ -z "$@" ]];
then
echo "An argument is needed to run this script";
exit
else
arg="$@"
#Basic check to make sure argument number is valid. If not, display error and exit
if [[ $(($(echo $arg | grep -o "\s" | wc --chars) / 2 )) -ne 2 ]];
You can’t perform that action at this time.