Skip to content

Instantly share code, notes, and snippets.

@miebach
miebach / set-time-server.cmd
Created March 4, 2014 03:23
set time server
rem # Zeit-Dienst anhalten:
net stop w32time
rem # Extern Zeitsever manuell hinzufügen:
rem # w32tm /config /syncfromflags:manual /manualpeerlist:"0.ntp.pool.org,0x1 1.ntp.pool.org,0x1"
w32tm /config /syncfromflags:manual /manualpeerlist:"0.ntp.pool.org 1.ntp.pool.org"
rem # Den Clients verfügbar machen:
w32tm /config /reliable:yes
rem # Zeit-Dienst starten:
@miebach
miebach / brightness-secondary-monitor.sh
Created February 16, 2014 16:51
Set brightness for secondary / external screen / monitor
xrandr -q | grep -w connected
xrandr --output VGA1 --brightness 0.8
@miebach
miebach / keyboard-repeat.sh
Created February 6, 2014 20:25
change keyboaard repeat rrrrrate
#!/bin/sh
xset r rate 130 70
# 130 is the delay before the keypress starts repeating
# 70 is the pause between the repeaats
@miebach
miebach / ff-extensions+settings.md
Last active January 4, 2016 21:59
Firefox extensions and settings

Options

Options - Gerneral - Browsing

  autoscrolling
  smooth scrolling
x hardware acceleration
  check spelling
diff -r 961ac99baa29 couchdb/client.py
--- a/couchdb/client.py Sun Aug 18 18:41:46 2013 +0200
+++ b/couchdb/client.py Fri Jan 17 11:03:56 2014 +0100
@@ -13,9 +13,9 @@
>>> doc_id, doc_rev = db.save({'type': 'Person', 'name': 'John Doe'})
>>> doc = db[doc_id]
>>> doc['type']
-'Person'
+u'Person'
>>> doc['name']
@miebach
miebach / xmind-ubuntu.md
Created January 11, 2014 13:27
Xmind on Ubuntu 13.10 with workaround for missing menus
@miebach
miebach / byobu hostname display
Last active January 1, 2016 01:49
Byobu's hostname script modified to show only the short hostname. Use the install script below and activate using F9 -> toggle -> hostname
#!/bin/sh -e
#
# hostname: report a host's name
#
# Copyright (C) 2008-2011 Canonical Ltd.
# Copyright (C) 2011 Dustin Kirkland
#
# Authors: Dustin Kirkland <kirkland@ubuntu.com>
#
# This program is free software: you can redistribute it and/or modify
@miebach
miebach / vSphere-Client-english.cmd
Created December 4, 2013 12:28
Start vSphere Client 5.x with english locale set:
rem Start vSphere Client 5.x with english locale set:
rem see http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1016403
"C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -locale en_US
#!/usr/bin/env bash
# gist at https://gist.github.com/miebach/7391024
# save this file to .git/hooks/post-checkout
# and also to .git/hooks/post-merge
# and make it executable
# Delete .pyc files and empty directories from root of project
cd ./$(git rev-parse --show-cdup)
@miebach
miebach / console.xml
Last active December 27, 2015 19:39
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="20" columns="98" buffer_rows="500" buffer_columns="0" init_dir="c:\" start_hidden="0" save_size="1" shell="c:\bip\git\bin\sh.exe --login -i">
<colors>
<color id="0" r="0" g="43" b="54"/>
<color id="1" r="38" g="139" b="210"/>
<color id="2" r="133" g="153" b="0"/>
<color id="3" r="42" g="161" b="152"/>
<color id="4" r="220" g="50" b="47"/>
<color id="5" r="211" g="54" b="130"/>