Skip to content

Instantly share code, notes, and snippets.

View set-time-server.cmd
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 Feb 16, 2014
Set brightness for secondary / external screen / monitor
View brightness-secondary-monitor.sh
xrandr -q | grep -w connected
xrandr --output VGA1 --brightness 0.8
@miebach
miebach / keyboard-repeat.sh
Created Feb 6, 2014
change keyboaard repeat rrrrrate
View keyboard-repeat.sh
#!/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 Jan 4, 2016
Firefox extensions and settings
View ff-extensions+settings.md

Options

Options - Gerneral - Browsing

  autoscrolling
  smooth scrolling
x hardware acceleration
  check spelling
View py3.patch
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 Jan 11, 2014
Xmind on Ubuntu 13.10 with workaround for missing menus
View xmind-ubuntu.md
@miebach
miebach / byobu hostname display
Last active Jan 1, 2016
Byobu's hostname script modified to show only the short hostname. Use the install script below and activate using F9 -> toggle -> hostname
View byobu hostname display
#!/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 Dec 4, 2013
Start vSphere Client 5.x with english locale set:
View vSphere-Client-english.cmd
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
View post-checkout
#!/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)
View console.xml
<?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"/>