$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
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 | |
| IP="" | |
| OS=`uname` | |
| case "${OS}" in | |
| Linux) | |
| IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'` | |
| ;; | |
| FreeBSD|OpenBSD) |
API Request Headers:
GET http://api.example.com/posts
X-App-Ver: 1.2.0
URL Based:
GET /api/v1/xxxx
GET /api/v2/xxxx
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
| function http-ping { | |
| SLEEP=${2:-5} | |
| while true; do echo "$(date +'%Y-%m-%d %H:%M:%S') - GET $1 - $(curl -sL -w "%{http_code}" -o /dev/null $1)"; sleep $SLEEP; done | |
| } |
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 | |
| from_repo=$1 | |
| to_repo=$2 | |
| repo_dir=${from_repo##*/} | |
| echo "Git Mirror: $from_repo -> $to_repo" | |
| git clone --bare $from_repo | |
| cd $repo_dir | |
| git push --mirror $to_repo |
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
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| prefix_input = ARGV[0] | |
| prefix_output = ARGV[1] | |
| suffixes = [".png", "@1.5x.png", "@2x.png", "@3x.png", "@4x.png"] | |
| output_dirs = { |
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 | |
| from_repo=$1 | |
| to_repo=$2 | |
| repo_dir=${from_repo##*/} | |
| echo "Git Mirror: $from_repo -> $to_repo" | |
| git clone --bare $from_repo | |
| cd $repo_dir | |
| git push --mirror $to_repo |