This file contains hidden or 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
/* | |
* NOTE: | |
* - The use of browser-specific styles (-moz-, -webkit-) should be avoided. | |
* If used, they may not render correctly for people reading the email in | |
* a different browser than the one from which the email was sent. | |
* - The use of state-dependent styles (like a:hover) don't work because they | |
* don't match at the time the styles are made explicit. (In email, styles | |
* must be explicitly applied to all elements -- stylesheets get stripped.) | |
*/ |
This file contains hidden or 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 | |
# Sample usage is as follows; | |
# ./signapk myapp.apk debug.keystore android androiddebugkey | |
# | |
# param1, APK file: Calculator_debug.apk | |
# param2, keystore location: ~/.android/debug.keystore | |
# param3, key storepass: android | |
# param4, key alias: androiddebugkey | |
USER_HOME=$(eval echo ~${SUDO_USER}) |
This file contains hidden or 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
VERSION=$(git branch | sed -n -e 's/^\* release\/\(.*\)/\1/p') | |
if [ "$VERSION" == "" ]; then | |
echo "Develop branch" | |
VERSION="DEV" | |
else | |
VERSION="V$VERSION" | |
fi | |
BUILD=`git log --pretty=format:'' | wc -l | tr -d '[[:space:]]'` | |
HASH=`git log --pretty=format:'%h' -n 1` | |
TIME=`date '+%y%m%d%H%M'` |
This file contains hidden or 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
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
sudo sysctl -w net.inet.tcp.delayed_ack=0 | |
sudo sysctl -w net.inet.tcp.mssdflt=1440 | |
sudo sysctl -w net.inet.tcp.sendspace=250000 | |
sudo sysctl -w net.inet.tcp.recvspace=250000 |
This file contains hidden or 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 | |
# Make a temp file | |
keyfile=`mktemp` | |
# Get repository to push | |
repository="$1" | |
# Create the private key | |
while shift; do |
This file contains hidden or 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 | |
######################################## | |
# | |
# Tommy DnsPod DDNS Client v0.2.0 | |
# | |
# Author: Tommy Lau <[email protected]> | |
# | |
# Created: 2015-02-23 08:52:00 UTC | |
# Updated: 2016-07-15 15:48:00 UTC |
This file contains hidden or 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
# max open files | |
fs.file-max = 51200 | |
# max read buffer | |
net.core.rmem_max = 67108864 | |
# max write buffer | |
net.core.wmem_max = 67108864 | |
# default read buffer | |
net.core.rmem_default = 65536 | |
# default write buffer | |
net.core.wmem_default = 65536 |
This file contains hidden or 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 | |
# Setup the directory name | |
DIRNAME=GitBook | |
# Remove the old GitBook directory | |
rm -fr $DIRNAME | |
mkdir $DIRNAME | |
# Generate the README.md | |
cat <<-EOF >$DIRNAME/README.md |
This file contains hidden or 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 | |
# Check whether apt-get support https | |
[ -e /usr/lib/apt/methods/https ] || { | |
apt-get update | |
apt-get install apt-transport-https | |
} | |
# Add offical key | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 |