Skip to content

Instantly share code, notes, and snippets.

View trapd00r's full-sized avatar
🐫
japh

magnus woldrich trapd00r

🐫
japh
View GitHub Profile
#!/bin/bash
welcome() {
clear
echo ' "WELCOME TO LADDER PULL-UPS"'
echo
cat << "EOF"
______________OOOOo__________oOOOO______________
----------------(`,----------\`,----------------
) ( ) (
@trapd00r
trapd00r / gist:5583453
Created May 15, 2013 11:55
whitespace
x x x 0x0009 --> CHARACTER TABULATION
x x x 0x000A --> LINE FEED (LF)
x x 0x000B --> LINE TABULATION
x x x 0x000C --> FORM FEED (FF)
x x x 0x000D --> CARRIAGE RETURN (CR)
x x x 0x0020 --> SPACE
x 0x0085 --> NEXT LINE (NEL)
x 0x00A0 --> NO-BREAK SPACE
x x x 0x1680 --> OGHAM SPACE MARK
x x x 0x180E --> MONGOLIAN VOWEL SEPARATOR
[1]-(1588)-~
# time apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
bind9-host chromium chromium-inspector cups cups-bsd cups-client cups-driver-gutenprint dnsutils dvd+rw-tools faac ffmpeg foo2zjs foomatic-db
foomatic-db-engine gettext gpac gpac-modules-base grub-common grub-pc libasprintf0c2 libav-tools libavcodec53 libavdevice53 libavfilter2 libavformat53
libcec1 libcommons-compress-java libcups2 libcupscgi1 libcupsdriver1 libcupsimage2 libcupsmime1 libcupsppdc1 libdevel-globaldestruction-perl libgettextpo0
libgpac2 liblapack3gf liblocale-po-perl liblockfile1 libmythtv-perl libnet-dns-perl libpam-modules libsane libsane-extras libsdl-image1.2 libsdl1.2debian
# vim: ft=debsources tw=110 cc=+1 sw=2 fdm=indent fcl=all fen:
deb ftp://ftp.debian.org/debian squeeze-proposed-updates main
deb ftp://ftp.deb-multimedia.org squeeze main non-free
deb http://apt.duke4.net sid main
deb http://backports.debian.org/debian-backports squeeze-backports main non-free contrib
deb http://backports.debian.org/debian-backports squeeze-backports-sloppy main non-free contrib
deb http://build.i3wm.org/debian/sid sid main
deb http://debian.pkgs.cpan.org/debian unstable main
deb http://deb.opera.com/opera-beta stable non-free
deb http://deb.opera.com/opera-beta testing non-free
sh configure --prefix=/usr \
--enable-256-color \
--enable-assert \
--enable-backspace-key \
--enable-combining \
--enable-delete-key \
--enable-fallback=shiva \
--enable-font-styles \
--enable-frills \
--enable-iso14755 \
day rx | tx | total
-------------------------+-------------+------------
10/28/12 229.79 GiB | 82.53 GiB | 312.32 GiB
10/29/12 127.30 GiB | 66.38 GiB | 193.68 GiB
10/30/12 92.86 GiB | 45.16 GiB | 138.02 GiB
10/31/12 59.50 GiB | 75.14 GiB | 134.64 GiB
11/01/12 233.99 GiB | 43.09 GiB | 277.07 GiB
11/02/12 273.22 GiB | 14.95 GiB | 288.17 GiB
11/03/12 63.12 GiB | 38.10 GiB | 101.22 GiB
11/04/12 91.43 GiB | 22.05 GiB | 113.48 GiB
% cpanm Term::ExtendedColor{,::{Xresources,TTY}}
Successfully installed Term-ExtendedColor-0.224 (upgraded from 0.226)
Successfully reinstalled Term-ExtendedColor-Xresources-0.072
Successfully installed Term-ExtendedColor-TTY-0.028
3 distributions installed
--
% cpan Term::ExtendedColor::Xresources
--> Working on http://cpan.se
Fetching http://cpan.se ... OK
#!/bin/zsh
# drop this before the real zsh in your PATH
# $ rehash
# $ zsh -<TAB>
mplayer -channels 6 http://japh.se/aero.dts
#firefox
/bin/zsh "$@"
@trapd00r
trapd00r / .sh
Created October 3, 2012 06:04
fetta hem fran tuben
% youtube-dl -wc --cookies ${HOME}/var/youtube-dl/cookie.jar --prefer-free-formats --audio-quality 320k -k --audio-format mp3 -R 5 -o '%(stitle)s' http://www.youtube.com/watch\?v\=MFSySLtJvO8
[youtube] Setting language
[youtube] MFSySLtJvO8: Downloading video webpage
[youtube] MFSySLtJvO8: Downloading video info webpage
[youtube] MFSySLtJvO8: Extracting video information
[download] Destination: Sebbe_Staxx_(Kartellen)_vs_Shazaam_(Ri-Fa)___Basementality_Battles
[download] 100.0% of 753.05M at 4.63M/s ETA 00:00
% grep filesystem /var/log/pacman.log
[2011-06-02 02:08] installed filesystem (2010.02-4)
---
# vim /etc/pacman.d/mirrorlist^C
[1]- /mnt/TV_4/.new
# pacman -Syyu
pacman: /usr/lib/libcurl.so.4: no version information available (required by /usr/lib/libalpm.so.7)
:: Synchronizing package databases...