This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i3status | while : | |
do | |
read line | |
if [[ "$line" == *"full_text"* ]] ; then | |
if ! amixer sget 'Capture',0 | grep '\[on\]' > /dev/null 2>&1 ; then | |
if [[ "$line" == ","* ]]; then | |
echo -n "," | |
fi | |
echo $line | sed s/^,//g | jshon -n object -i 0 -e 0 -s "name" -i "micmute" -s "mic muted" -i "full_text" -p | tr '\n' ' ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
urxvt -bg black -fg green -e ssh -D 2323 HOST & | |
pkill google-chrome | |
killall google-chrome | |
google-chrome --proxy-server=socks4://localhost:2323& |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from mpd import (MPDClient, CommandError) | |
import sys | |
import datetime | |
import Skype4Py | |
from time import sleep | |
if len(sys.argv) < 2: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Debian lighttpd configuration file | |
# | |
############ Options you really have to take care of #################### | |
## modules to load | |
# mod_access, mod_accesslog and mod_alias are loaded by default | |
# all other module should only be loaded if neccesary | |
# - saves some time | |
# - saves memory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program unbenannt; | |
{$mode objfpc}{$H+} | |
uses sysutils; | |
var i, nums: integer; | |
var a, b, now: real; | |
BEGIN |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
$start = microtime(1); | |
for($i = 0; $i < 1000000; $i++){ | |
echo "abc", "def", "ghi", "jkl", "mno", "pqr"; | |
} | |
$end = microtime(1); | |
ob_end_clean(); | |
echo "Kommas: ".(($end-$start)/1000000)."\n"; |
NewerOlder