Skip to content

Instantly share code, notes, and snippets.

View xperimental's full-sized avatar

Robert Jacob xperimental

View GitHub Profile
@xperimental
xperimental / gist:5814422
Created June 19, 2013 13:42
defaults read com.apple.BluetoothAudioAgent
{
"Apple Bitpool Max (editable)" = 64;
"Apple Bitpool Min (editable)" = 2;
"Apple Initial Bitpool (editable)" = 30;
"Negotiated Bitpool" = 30;
"Negotiated Bitpool Max" = 53;
"Negotiated Bitpool Min" = 2;
"Stream - Flush Ring on Packet Drop (editable)" = 0;
"Stream - Max Outstanding Packets (editable)" = 30;
"Stream Resume Delay" = "0.75";
@xperimental
xperimental / GetSystemProperty.java
Created January 14, 2011 11:49
Simple program to view system property
/**
* Simple program to get the value of a single system property.
*
* @author xperimental
*/
class GetSystemProperty {
public static void main(String[] args) {
if (args.length != 1) {
System.out.println("usage: java GetSystemProperty property-name");
./sakis3g recompile
wget "http://www.sakis3g.org/versions/latest/sakis3g.gz"
gunzip sakis3g.gz
chmod +x sakis3g
./sakis3g --interactive
Alias /weave /<vollständiger Pfad zum Weave-Server>/index.php
@xperimental
xperimental / switch-all.py
Created April 1, 2010 07:23
Simple script to switch multiple working copies to a new URL
# Simple script to switch multiple working copies to a new URL
import glob
import os
from optparse import OptionParser
import subprocess
import re
print "switch-all SVN mass switch script\n"
$ lsusb
Bus 002 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
$ which usb_modeswitch
/usr/sbin/usb_modeswitch
$ grep 1446 /lib/udev/rules.d/40-usb_modeswitch.rules
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="usb_modeswitch '%b/%k'"
/etc/usb_modeswitch.d$ cat 12d1\:1446
########################################################
# Huawei E270+ (HSPA+ modem)
DefaultVendor= 0x12d1
DefaultProduct=0x1446
TargetVendor= 0x12d1
TargetProductList="1001,1406,140c,14ac"