Command | Description |
---|
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 | |
} |
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
#!/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) |
Configuring your application for release
- At a minimum you need to remove
Log
calls and remove theandroid:debuggable
attribute from your manifest file. - You should also provide values for the
android:versionCode
andandroid:versionName
attributes, which are located in the<manifest>
element. - Building and signing a release version of your application.
- Testing the release version of your application.
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
# Dump all postgres database without specific scheme (-N topology) | |
pg_dump -N topology -U $DATABASE_USERNAME -h $DATABASE_HOST -f /path/to/output.sql $DATABASE_NAME |