Skip to content

Instantly share code, notes, and snippets.

View ZweiSteinSoft's full-sized avatar

Ann ZweiSteinSoft

  • ZweiSteinSoft
  • Germany
View GitHub Profile
netsh interface ipv6 set privacy state=disabled store=active
netsh interface ipv6 set privacy state=disabled store=persistent
netsh interface ipv6 set global randomizeidentifiers=disabled store=active
netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent
@ZweiSteinSoft
ZweiSteinSoft / xul-alert.js
Created June 22, 2013 11:48
xulrunner: Show alert box
var prompt = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
prompt.alert(null, "Title", "Text");
@ZweiSteinSoft
ZweiSteinSoft / gist:5525314
Created May 6, 2013 13:55
OSX Terminal command for getting past Wi-Fi networks
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | egrep -o '(SSID_STR|_timeStamp).+' | sed 's/^.*= \(.*\);$/\1/' | sed 's/^"\(.*\)"$/\1/' | sed 's/\([0-9]\{4\}-..-..\).*/\1/'
@ZweiSteinSoft
ZweiSteinSoft / CustomVideoMode.sh
Created February 19, 2013 20:08
Set screen resolution of VirtualBox virtual machine
VBoxManage setextradata "OSX_108" "CustomVideoMode1" "2048x1536x32"
@ZweiSteinSoft
ZweiSteinSoft / push_destinations.json
Created February 7, 2013 19:49
/account/push_destinations endpoint, API 1.0
{
"available_levels": 1021,
"environment": 3,
"udid": "FC9C22DC-0301-4421-A26A-2DB95985B962",
"enabled_for": 5,
"created_at": "Thu Jan 03 17:25:48 +0000 2013",
"display": 7,
"lang": null,
"id": 1736398994,
"token": "buWWQDx46io1\/1jFRphV4gH9YjrqnhUmWehQ5gF267I=",
@ZweiSteinSoft
ZweiSteinSoft / new-empty-branch.sh
Created December 6, 2012 13:23
Create new empty branch in Git repo
#!/bin/bash
git symbolic-ref HEAD refs/heads/BRANCHNAME
rm .git/index
git clean -fdx
@ZweiSteinSoft
ZweiSteinSoft / mynetx.ini
Created November 19, 2012 14:26
Custom settings file for MacType
; Only for MacType (NOT SUPPORT THE OLD VERSION OF GDI++/HE)
; maxchow@qq.com
; Modified by mynetx <me@mynetx.net>
[Preview]
Font=Segoe UI
Color=$990000
Text=mynetx
Size=10
Align=Center
@ZweiSteinSoft
ZweiSteinSoft / card-in-tweet.json
Created November 12, 2012 14:10
New cards field in Tweet objects
{
"cards": {
"summaries": [{
"url": "http:\/\/t.co\/WuTxlJeV",
"title": "Verkn\u00fcpfung auf der Windows-8-Startseite anheften",
"description": "Viele Nutzer legen sich Verkn\u00fcpfungen auf ihrem Desktop an, um schnell auf Dateien oder Programme zuzugreifen. Solche Verkn\u00fcpfungen k\u00f6nnen Sie auch auf der Windows-8-Startseite ablegen. Ein Klick auf...",
"author_user": {
/* a User object of the twitter:creator tag in the Twitter card */
},
"site_user": {
@ZweiSteinSoft
ZweiSteinSoft / new-youtube-design.js
Created September 22, 2012 19:32
New YouTube design, install this cookie
document.cookie="VISITOR_INFO1_LIVE=u8uWhAyPa3U";
@ZweiSteinSoft
ZweiSteinSoft / black-or-white.js
Created September 17, 2012 18:47
Find out if black or white text is better to read on a certain background color
var color = parseInt('0x' + label.color) > (0xffffff / 2) ? 'black' : 'white';