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
### Keybase proof | |
I hereby claim: | |
* I am bytecommander on github. | |
* I am bytecommander (https://keybase.io/bytecommander) on keybase. | |
* I have a public key ASA8Xs1CXdl_4wiRy3K14NeqNPGQK18MrXNllj-Z8Pmt9wo | |
To claim this, I am signing this object: |
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 | |
seconds=5 | |
targetuser="bytecommander" | |
killprocess="firefox" | |
startprocess="firefox" | |
mytempfile="/tmp/powerbtn-touched" | |
if [ -e /tmp/powerbtn-touched ] && | |
[ $(date +%s --date="$seconds seconds ago") -lt $(date +%s -r "$mytempfile") ] |
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 | |
upgrade_pip2 () { | |
# Installs latest version of pip for Python2, if any version is already installed | |
if pip2 &> /dev/null | |
then | |
echo "*** Uninstalling old version of pip for Python2..." | |
sudo apt-get remove python-pip -qq | |
echo "*** Installing/upgrading setuptools for Python2..." | |
sudo apt-get install python-setuptools -qq |