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 | |
# TU/e MetaForum WiFi enabler/disabler | |
# By Chris Mavrakis | |
# | |
# Usage: | |
# sudo mfwifi [enable|disable|setup] | |
# | |
# setup should be run only once, the first time. It asks for TU/e credentials, | |
# does not send them back to me, and creates the appropriate files in /etc/network |
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
<exportedattacks><attacks><attack><attackString><![CDATA[ | |
<meta http-equiv="refresh" content="0;url=javascript:document.vulnerable=true;"> | |
]]></attackString><signature>Script</signature></attack><attack><attackString><![CDATA[ | |
<META HTTP-EQUIV="Set-Cookie" Content="USERID=<SCRIPT>document.vulnerable=true</SCRIPT>"> | |
]]></attackString><signature>Script</signature></attack><attack><attackString><![CDATA[ | |
<SCRIPT>document.vulnerable=true;</SCRIPT> | |
]]></attackString><signature>Script</signature></attack><attack><attackString><![CDATA[ | |
<IMG SRC="jav ascript:document.vulnerable=true;"> | |
]]></attackString><signature>Script</signature></attack><attack><attackString><![CDATA[ | |
<IMG SRC="javascript:document.vulnerable=true;"> |
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 cmavr8 on github. | |
* I am chrism (https://keybase.io/chrism) on keybase. | |
* I have a public key whose fingerprint is 221C 85EC D3BF 93F0 9B56 1188 4139 3627 5F29 D786 | |
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 | |
# | |
# | |
# _ __ ___ _ _ __ __ _ __ ___ | |
# | '_ ` _ \ | | | | \ \ / / | '_ ` _ \ | |
# | | | | | | | |_| | \ V / | | | | | | | |
# |_| |_| |_| \__, | \_/ |_| |_| |_| | |
# __/ | | |
# |___/ | |
# |
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 | |
# Thinkpad battery saver - Helps you prolong the service life of your Lenovo Thinkpad battery pack | |
# By Chris Mavrakis - cmavrakis.com | |
# v0.2 - 6-May-15 | |
# Intro: | |
# Based on this: http://www.batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries and motivated by this: https://news.ycombinator.com/item?id=9487903 | |
# One can do a few things to prolong battery life. Two of them are: | |
# 1. Reduce full charge Voltage to 4.00V/cell. This will give shorter run times, but battery should last double the time before needing replacement (measured in years of use). |
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 | |
# Bathealth - Shows live info and statistics about a Lenovo Thinkpad battery | |
# By Chris Mavrakis - cmavrakis.com | |
# v0.3 - 6-May-15 | |
# Usage: | |
# - Install in /usr/bin or ~/bin, or not... | |
# - Run as a normal user: bathealth or ./bathealth |
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 | |
rfkill block bluetooth | |
iwconfig wlan0 power on | |
iwconfig wlan0 txpower 30mW | |
iwconfig wlan0 power timeout 500ms | |
killall dropbox | |
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy | |
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
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 | |
#Map this script to a button (eg F1) to mute your mic while VoIPing | |
currentlevel=`amixer get Capture |grep "Front Left:" | awk '{ print ($5) }'` | |
if [ $currentlevel == '[100%]' ]; then | |
amixer set Capture 0 | |
echo "Mic muted" >> /tmp/mutelog | |
elif [ $currentlevel == '[0%]' ]; then | |
amixer set Capture 100 | |
echo "Mic unmuted" >> /tmp/mutelog | |
else |
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 | |
#This script makes sure nm-applet is always running. | |
echo "Initiating script (`date`)" > /tmp/nm-watchdog | |
while [ 1 == 1 ] | |
do | |
#echo "Checking..." >> /tmp/nm-watchdog | |
tmp=`ps -e |grep nm-applet` | |
if [[ "$tmp" == '' ]] | |
then | |
export DISPLAY=':0.0' |
OlderNewer