This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
adb shell am start --ez confirm_credentials false --ei "lockscreen.password_type" 0 com.android.settings/.ChooseLockGeneric |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lb: | |
image: 'dockercloud/haproxy:latest' | |
links: | |
- web | |
ports: | |
- '80:80' | |
roles: | |
- global | |
web: | |
image: 'xperimental/goecho:v1.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"clientId": "", | |
"clientSecret": "", | |
"username": "", | |
"password": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Login to router using SSH | |
# Check if you have an invalid IPv6 address | |
# Should yield something with a mask /64 "in the middle" | |
uci get network.freifunk.ip6addr | |
# Set new prefix and remove invalid address | |
uci set network.globals.ula_prefix='fdef:1701:b5ee:42::/64' | |
uci delete network.freifunk.ip6addr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
readonly _on=default-on # can also be "timer" when you want it to blink | |
readonly _led=/sys/devices/platform/leds-gpio/leds/tp-link:blue:qss/trigger | |
readonly _counter=$(cat /sys/kernel/debug/batman_adv/bat0/transtable_local 2> /dev/null | grep -c 'W') | |
if [ "${_counter}" = "0" ]; then | |
echo "none" > ${_led} | |
else | |
echo "${_on}" > ${_led} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
const ( | |
ScoreFactor = 10 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2011 Benjamin Tissoires <benjamin....@gmail.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget "http://www.sakis3g.org/versions/latest/sakis3g.gz" | |
gunzip sakis3g.gz | |
chmod +x sakis3g | |
./sakis3g --interactive |
NewerOlder