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 | |
URL_BASE="http://livestream.com/internetsociety" #"/hopeconf" | |
VIDEO_TYPE="progressive_url" | |
dump_track(){ | |
wget -O - "http://livestream.com/internetsociety${1}/hopeconf" 2>/dev/null| sed 's/","/",\n"/g' | grep $VIDEO_TYPE | grep -v smil | sed 's/[",]\+$//;s/.*"//' | grep http | |
} | |
for url in $(dump_track | tee lamarr); do |
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 | |
# vim: tabstop=2:softtabstop=2:shiftwidth=2:noexpandtab | |
# | |
# Authored by Yazz D. Atlas <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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 zsh | |
# | |
# Works best with blinking text; the last heart will blink | |
# when you have less than 25% of your battery life remaining. | |
FULL="$(cat /sys/class/power_supply/BAT0/charge_full)" | |
NOW="$(cat /sys/class/power_supply/BAT0/charge_now)" | |
BATTERY=$(echo "scale=25;$NOW/$FULL" | bc) | |
if [[ $BATTERY -lt .25 ]]; then |
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
clear Lock | |
clear Control | |
keycode 9 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock | |
keycode 37 = Escape NoSymbol Escape NoSymbol Escape | |
keycode 66 = Control_L NoSymbol Control_L NoSymbol Control_L | |
keycode 135 = Multi_key Multi_key Multi_key Multi_key | |
add Lock = Caps_Lock | |
add Control = Control_L Control_R |