Skip to content

Instantly share code, notes, and snippets.

View pop's full-sized avatar
🦀

Elijah Voigt pop

🦀
View GitHub Profile
@pop
pop / .battery_time_remaining.sh
Created September 2, 2014 05:06
A simple way to display the time remaining for your laptop battery in your tmux prompt
#!/bin/sh
### ~/bin/battery_time_remaining.sh
### Elijah Caine | pop_n_fresh @ irc.freenode.net
### Displays the time remaining on your battery
### Requires acpi - Displays nothing without it
## '{print $5} can be changed to '{print $4}' for a percentage
BAT_TIME=$(acpi | awk '{print $5}')
echo $BAT_TIME
@pop
pop / gist:fce3c875c502ca1ebd1a
Last active August 29, 2015 14:05
A basic random gif displaying webpage
<!DOCTYPE html>
<html>
<!-- Yes this file contains all of the JS, CSS, and HTML
I'm sure this personally offends you at a very very
deep level. If you would like to complain about this
please email [email protected] -->
<head>
<title> <gif> { Random } </gif> </title>
<style>