Skip to content

Instantly share code, notes, and snippets.

View jesusaurus's full-sized avatar

Joni Harker jesusaurus

  • Earth
View GitHub Profile
@jesusaurus
jesusaurus / hope-dump.sh
Last active July 28, 2016 18:25 — forked from haxwithaxe/hope-dump.sh
download all the things
#!/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
#/bin/bash
# vim: tabstop=2:softtabstop=2:shiftwidth=2:noexpandtab
#
# Authored by Yazz D. Atlas <yazz.atlas@hp.com>
#
# 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
#!/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
@jesusaurus
jesusaurus / escctrlcaps.pke
Created March 21, 2012 22:14 — forked from hunner/escctrlcaps.pke
caps->ctrl->esc->caps
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