Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
while :
do
echo -n " Temperature: "
TEMP=`cat /sys/class/thermal/thermal_zone0/temp`
TEMP=$[ $TEMP / 1000 ]
FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
FREQ=$[ $FREQ / 1000 ]
echo "$TEMP C, CPU Scaling: $FREQ MHz"
sleep 1
@santisaez
santisaez / gist:3187798
Created July 27, 2012 12:57
State of the Art: STUN + TURN servers on Linux (July 2012)

STUN implementations

  • stund
  • Content: server daemon and test client for STUN, RFC-3489 only
  • URL does not load, the project seems abandoned
  • The code is also available on SourceForge, last update was on January 2012
  • TCP and TLS modes not supported
  • The server needs two IPs, it’s mandatory and can not be configured
  • C++, no extra libraries required, Windows port available
  • Version = 0.97 (0.96 package available on Debian, 5 years without updates)
@jberkel
jberkel / gist:1087757
Created July 17, 2011 16:33
HOWTO: compile mkbootimg/mkbootfs
get Android source code: http://source.android.com/source/downloading.html
$ cd /path/to/android-src
$ cd system/core/libmincrypt/
$ gcc -c *.c -I../include
$ ar rcs libmincrypt.a *.o
$ cd ../mkbootimg
$ gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a
$ cd ../cpio
$ gcc mkbootfs.c -o mkbootfs -I../include