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 | |
echo "Please provide the full path to the directory to organize: " | |
read path | |
touch ~/.addAlphaDir | |
while read -r ~/.addAlphaDir | |
do |
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/python | |
import socket | |
import sys | |
import mysqldb | |
server = "irc.swiftirc.net" #settings | |
channel = "#pxlbin" | |
botnick = "pxlboat" | |
#db jazzy |
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 | |
echo -e "updating the timezone... \n" | |
sudo cp /usr/share/zoneinfo/America/New_York /etc/localtime | |
sleep 1 | |
echo -e "Updating, upgrading, installing packages... \n" | |
sudo apt-get update | |
sudo apt-get upgrade -y |
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 | |
# | |
# matrix: matrix-ish display for Bash terminal | |
# Author: Brett Terpstra 2012 <http://brettterpstra.com> | |
# Contributors: Lauri Ranta and Carl <http://blog.carlsensei.com/> | |
# | |
# A morning project. Could have been better, but I'm learning when to stop. | |
### Customization: | |
blue="\033[0;34m" |
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 | |
meminfo=($(tr '\n' ' ' < /proc/meminfo)) | |
# MemFree Buffers Caches SwapTotal SwapFree | |
if [ $(( ${meminfo[4]} + ${meminfo[7]} + ${meminfo[10]} )) -gt $(( ${meminfo[52]} - ${meminfo[55]} )) ]; then | |
sudo swapoff -a; | |
sudo swapon -a; | |
echo "Flushed Swap" | |
else | |
echo "Nothing to do here" |
NewerOlder