Skip to content

Instantly share code, notes, and snippets.

View klaxa's full-sized avatar

klaxa

  • Germany
View GitHub Profile
[root@localhost klaxa]# smartctl --all /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.6-1-ARCH] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MK..55GSX
Device Model: TOSHIBA MK5055GSX
Serial Number: X958F7GES
LU WWN Device Id: 5 000039 216b00e0c
Firmware Version: FG001A
General
Unique ID : 54473042442071591303272632370512604571 (0x28FB205922CBDA7B80150A7B18692D9B)
Complete name : matchday.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 3.33 GiB
Duration : 5h 43mn
Overall bit rate : 1 388 Kbps
Writing application : Lavf55.22.100
Writing library : Lavf55.22.100
#!/usr/bin/python
import sys
if len(sys.argv) < 2:
print("Specify input file.")
sys.exit(1)
INPUT = sys.argv[1]
$ wget -O /dev/null http://cachefly.cachefly.net/100mb.test
--2014-01-19 02:01:57-- http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net (cachefly.cachefly.net)... 205.234.175.175
Connecting to cachefly.cachefly.net (cachefly.cachefly.net)|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’
100%[======================>] 104,857,600 6.97MB/s in 15s
$ cat root.proj
CONFIG_FILE config.h
PLATFORM_FILES corec/tools/coremake
WORKSPACE ebml
{
USE ebml2
USE ebmltests
}
$ cat Lets\ Play\ Trails\ in\ the\ Sky/setup_audio.bash
#!/bin/bash
pacmd load-module module-null-sink
pacmd set-default-sink null
pacmd set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo
pacmd load-module module-loopback
pacmd set-default-source alsa_input.usb-0d8c_Generic_USB_Audio_Device-00-Device.analog-mono
pacmd load-module module-loopback
pacmd set-default-source null.monitor
ffmpeg version N-59288-g911676c Copyright (c) 2000-2013 the FFmpeg developers
built on Dec 22 2013 22:23:39 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/root/tools/8-bit/build --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libvorbis --enable-libx264 --extra-cflags=-I/root/tools/8-bit/build/include --extra-ldflags=-L/root/tools/8-bit/build/lib
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 46.100 / 55. 46.100
libavformat 55. 22.100 / 55. 22.100
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.100 / 4. 0.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
#!/usr/bin/python2
import json
import urllib
import sys
import re
MAX_OUTPUT_LENGTH = 300
if len(sys.argv) < 2:
print "Usage: !define word"
ffprobe version 2.1.1 Copyright (c) 2007-2013 the FFmpeg developers
built on Nov 20 2013 15:42:03 with gcc 4.8.2 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libavresample 1
@klaxa
klaxa / irc.py
Last active January 8, 2022 16:33
#!/usr/bin/python
import socket
import sys
import re
import select
import queue
import string
import time
import threading