Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
gregjhogan / PPPoE-info.sh
Created October 9, 2015 05:09
Retrieve CenturyLink PPPoE username/password from technicolor C2000T
# first enable telnet, and connect
# then you will get a '>' prompt where you want to run the following commands
sh
pidstat -l -C pppd
# see -u (username) and -p (password) in the output
@glen-cheney
glen-cheney / encoding-video.md
Last active December 12, 2025 23:58
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@lanrat
lanrat / awmtt.sh
Created January 26, 2015 19:38
run awesome in a nested window for testing
#!/usr/bin/env bash
# awmtt: awesomewm testing tool
#{{{ Usage
usage() {
cat <<EOF
awmtt [ start | stop | restart | -h | -e | -t [ get | change | list | random ] ] [ -C /path/to/rc.lua ] [ -D display ] [ -S windowsize ]
start Spawn nested Awesome via Xephyr
stop Stops Xephyr
@gizmaa
gizmaa / Plot_Examples.md
Last active June 11, 2025 03:13
Various Julia plotting examples using PyPlot
@e000
e000 / donotuse.py
Created June 13, 2011 23:30
How to NEVER use lambdas.
##########################################################
# How to NEVER use Lambdas. An inneficient and yet educa-#
# tonal guide to the proper misuse of the lambda constru-#
# ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] #
# by: e000 (13/6/11) #
##########################################################
## Part 1. Basic LAMBDA Introduction ##
# Well, it's worth diving straight into what lambdas are.
# Lambdas are pretty much anonymous "one line" functions