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 | |
sudo rfkill block all && sudo rfkill unblock all; | |
sudo netcfg -a && sudo netcfg wifi; | |
echo "Acquired address `ifconfig|awk '/192.168/ {print $2}'`"; |
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 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 | |
host `host $1|grep has| awk '{print $4}'` |
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/sh | |
DATEFORMAT=`date +%F\ %H:%M` | |
echo "[$DATEFORMAT] Start executing $1" | |
$@ 2>&1 | sed -e "s/\(.*\)/[$DATEFORMAT] \1/" | |
echo "[$DATEFORMAT] End executing $1" |
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
#!/usr/bin/env bash | |
logger -t bleedingedge "### Starting automated upgrade with package update ###" | |
logger -t bleedingedge "(running 'aptitude update' and 'aptitude upgrade -y')" | |
aptitude update 2>&1 >/dev/null | logger -t bleedingedge | |
aptitude upgrade -y|logger -t bleedingedge | |
logger -t bleedingedge "## Ended automated upgrade to bleeding edge software ###" |
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 | |
# Clear clipboard (can't be pasting any passwords if we try to paste too fast). | |
echo "" | xclip -selection clipboard | |
mkdir -p $HOME/Dropbox/shots/ | |
TSTAMP=`date '+%Y-%m-%d-%H-%M-%S'` | |
IMAGEPATH=$HOME/Dropbox/shots/Screenshot-$TSTAMP.png |