Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
require("lsqlite3") | |
-- Igmar: Wanneer closen we dat DB object eigenlijk ? | |
db = sqlite3.open('/etc/asterisk/users.sqlite') | |
--CONSOLE = "Console/dsp" -- Console interface for demo | |
--CONSOLE = "DAHDI/1" | |
--CONSOLE = "Phone/phone0" | |
TRUNK = "DAHDI/G1" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# /etc/sysctl.conf | |
# Clemens Gruber, 2014 | |
# | |
# Uncomment this to prevent users from seeing information about processes that | |
# are being run under another UID. | |
security.bsd.see_other_uids=0 | |
## I/O |
#!/bin/bash | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my @dmesg_new = (); | |
my $dmesg = "/bin/dmesg"; | |
my @dmesg_old = `$dmesg`; | |
my $now = time(); | |
my $uptime = `cat /proc/uptime | cut -d"." -f1`; |
// General | |
sensitivity 1.15 // 1200 DPI | |
zoom_sensitivity_ratio_mouse 1 | |
cl_autowepswitch 0 | |
cl_disablehtmlmotd 1 | |
net_graph 1 | |
net_graphpos 3 | |
net_graphproportionalfont 0 | |
viewmodel_offset_y 2 |
#!/bin/sh | |
modprobe vfio-pci | |
for dev in "$@"; do | |
echo Handling device "$dev" | |
devpath="/sys/bus/pci/devices/$dev" | |
if ! [ -d $devpath ]; then | |
echo "$devpath doesn't exist" | |
exit 1 | |
fi | |
if [ -L $devpath/driver/module ]; then |
protocol ospf dn42 | |
{ | |
table vm; | |
instance id 1; | |
export all; | |
import all; | |
area 0 | |
{ | |
interface "dn42" | |
{ |