Skip to content

Instantly share code, notes, and snippets.

@Detmud
Detmud / .gitignore
Created January 13, 2011 23:16
Better cleaner github for all XCode4 Fans
#just local Stuff
.DS_Store
*.pbxuser
*.perspective
*.perspectivev3
*.mode1v3
*.mode2v3
*.swp
*~.nib
#!/bin/bash
COOKIE_FILE="cookie.jar"
USER=""
PASS=""
AUTHURL="http://uploaded.net/io/login"
FILE=$1
if [ ! -e "$COOKIE_FILE" ]
then
echo "Cookie not found. Authenticating...."
@Detmud
Detmud / gist:9110814
Created February 20, 2014 10:30
GNU Radio Build - Brew Mac
CC=/usr/bin/llvm-gcc CXX=/usr/bin/llvm-g++ cmake -DPYTHON_EXECUTABLE=/usr/local/bin/python2.7 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Headers/ -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Python -DSPHINX_EXECUTABLE=/usr/local/bin/rst2html-2.7.py ..
make

Keybase proof

I hereby claim:

  • I am detmud on github.
  • I am detmud (https://keybase.io/detmud) on keybase.
  • I have a public key whose fingerprint is 08D2 4C1C F242 2AF5 2242 C408 992A 8750 48F8 D6EB

To claim this, I am signing this object:

@Detmud
Detmud / update.sh
Last active November 8, 2023 10:17 — forked from RobSeder/update.sh
Default update scripts for Debian-based Linux distributions. See this blog post: http://blog.robseder.com/?p=13292
#!/bin/bash
logger "Update Script: Starting..."
echo '[*] Refreshing repository cache...'
sudo apt-get -qq update -y
echo '[*] Repository cache refreshed.'
echo '[*] Upgrading all existing packages...'
sudo apt-get -qq upgrade -y
#!/bin/bash
clear
VAR_UPTIME="$(uptime | sed -E 's/^[^,]*up *//; s/, *[[:digit:]]* user.*//; s/min/minutes/; s/([[:digit:]]+):0?([[:digit:]]+)/\1 hours, \2 minu
tes/')"
VAR_MEMORY="$(free -m | awk 'NR==2 { printf "Total: %sMB, Used: %sMB, Free: %sMB",$2,$3,$4; }')"
VAR_SPACE="$(df -h ~ | awk 'NR==2 { printf "Total: %sB, Used: %sB, Free: %sB",$2,$3,$4; }')"
VAR_LOADAVG="$(uptime | awk '{print $8,$9,$10}')"
VAR_PROCESSES="$(ps ax | wc -l | tr -d " ")"
VAR_IP_INTERN="$(hostname -I)"