NOTE: These are updated to Android 5.0.1 | |||
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
function color(A, R, G, B) { | |
var color = (A & 0xff) << 24 | (R & 0xff) << 16 | (G & 0xff) << 8 | (B & 0xff); | |
console.log(color); | |
} |
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 | |
ping -c 1 10.200.0.1 | |
if [ "$?" -eq 0 ];then | |
echo "$(date) --> OK" | |
else | |
echo "$(date) --> ERROR" | |
/etc/init.d/shadowvpn-cn restart | |
fi |
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 | |
ping -c 1 10.200.0.1 | |
if [ "$?" -eq 0 ];then | |
echo "$(date) --> OK" | |
else | |
echo "$(date) --> ERROR" | |
/etc/init.d/shadowvpn-cn restart | |
fi |
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 | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 1 |
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
find * -type f -print0 | xargs -0 stat -c "%20s %n" |
I hereby claim:
- I am xdtianyu on github.
- I am xdtianyu (https://keybase.io/xdtianyu) on keybase.
- I have a public key whose fingerprint is EAB3 35E1 67A6 7396 77E1 8796 0929 5FD1 F1C6 8AB4
To claim this, I am signing this object:
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 | |
# | |
# vlmcsd - this script starts and stops the vlmcsd-server daemon | |
# | |
# Run level information: | |
# chkconfig: 2345 99 99 | |
# description: KMS Emulator in C | |
# processname: vlmcsd | |
# Source function library |
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
# $Id: PKGBUILD 289024 2017-02-15 21:13:17Z bpiotrowski $ | |
# Maintainer: Bartłomiej Piotrowski <[email protected]> | |
# Contributor: Sébastien Luttringer | |
# Contributor: Drew DeVault | |
pkgname=nginx-mainline | |
pkgver=1.11.10 | |
pkgrel=1 | |
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, mainline release' | |
arch=('i686' 'x86_64') |