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
# /etc/fstab | |
defaults,ssd,noatime,compress=lzo | |
# defrag/recompress post-install | |
btrfs filesystem defragment -r -v -c lzo / /home | |
# fstrim (weekly trim) | |
cp /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system | |
systemctl enable fstrim.timer |
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
# Block facebook.com mon-fri, 08:00 - 17:00, from desktop net | |
# Fetches all subnets registered to Facebook and it's domain aliases | |
for i in $(whois -h whois.radb.net -- '-i origin AS32934' | | |
awk '/^route:/ { if(!uniq[$2]++) print $2 }'); do | |
$ipt -A FORWARD -s $desktop_net -d $i \ | |
-m time --timestart 08:00 --timestop 17:00 --weekdays Mon,Tue,Wed,Thu,Fri \ | |
-j DROP | |
done |
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
[auth] | |
client_id= | |
client_secret= | |
access_token= | |
refresh_token= | |
[general] | |
notify=False | |
clipboard=True | |
browser=True |
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
~ > cpulow | |
~ > for i in {1..5}; do time vim -c q .vimrc; done | |
real 0m0.526s | |
user 0m0.472s | |
sys 0m0.020s | |
real 0m0.479s | |
user 0m0.412s | |
sys 0m0.040s |
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
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x1e | |
CPU Stepping: 0x5 | |
CPU Type: 0x0 | |
Speed: 2794 Mhz | |
4 logical processors | |
4 physical processors | |
HyperThreading: Unsupported |
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
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x1e | |
CPU Stepping: 0x5 | |
CPU Type: 0x0 | |
Speed: 2794 Mhz | |
4 logical processors | |
4 physical processors | |
HyperThreading: Unsupported |
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
$ DEBUGGER=gdb steam | |
Running Steam on debian 64-bit | |
STEAM_RUNTIME is enabled automatically | |
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". |
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
$ mediainfo 06.Black Sun Empire - The Rat (Kemal Remix).flac | |
General | |
Complete name : 06.Black Sun Empire - The Rat (Kemal Remix).flac | |
Format : FLAC | |
Format/Info : Free Lossless Audio Codec | |
File size : 43.3 MiB | |
Duration : 6mn 55s | |
Overall bit rate mode : Variable | |
Overall bit rate : 873 Kbps | |
Album : Driving Insane CD1 |
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 bash | |
# generates a valid [host] configuration file for Icinga | |
# based off a template, for all the hosts in the subnet | |
icinga_root="/etc/icinga/objects" | |
subnet="10.0.0.1.*" | |
template="template_icinga.cfg" | |
alias_file="alias.txt" | |
# navigate to the Icinga configuration directory |
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 | |
import html2text | |
import re | |
import sys | |
import urllib2 | |
def get_ip(host): | |
trac = "http://www.ip-adress.com/ip_tracer/" | |
pat = "ISP of this IP \[\?\]:\n\n([a-zA-Z ]+)" |