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
| # built application files | |
| *.apk | |
| *.ap_ | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |
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 | |
| git branch -d $(git branch --merged) |
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
| //http://stackoverflow.com/a/19597101/617028 | |
| private static char[] VALID_CHARACTERS = | |
| "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456879".toCharArray(); | |
| // cs = cryptographically secure | |
| public static String csRandomAlphaNumericString(int numChars) { | |
| SecureRandom srand = new SecureRandom(); | |
| Random rand = new Random(); | |
| char[] buff = new char[numChars]; |
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 python3 | |
| import urllib.request | |
| import sys | |
| import argparse | |
| import configparser | |
| def main(parsed_args): | |
| url = get_rn_url(parsed_args) |
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 bash | |
| SDK_LINUX=https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| SDK_MAC=https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip | |
| if [ -z ${JAVA_HOME+x} ]; then | |
| echo "\$JAVA_HOME environmental variable is not set." | |
| echo "Find the location of your Java directory, and then put it in your" | |
| echo "~/.bash_profile (or any other shell equivalent)" | |
| exit 0 |
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
| adb shell -c "bugreport > /sdcard/bugreport.txt" | |
| adb pull /sdcard/bugreport.txt |
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 | |
| set -ea | |
| # Function to generate a random string for making a temp folder with our repo contents | |
| function randomstring { | |
| echo $(openssl rand -base64 12) | |
| } | |
| # Check parameters | |
| if [ "$#" -lt "2" ]; then |
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
| rtmp { | |
| server { | |
| listen 1935; | |
| chunk_size 4096; | |
| application live { | |
| live on; | |
| exec ffmpeg -threads 16 -re -i rtmp://localhost:1935/$app/$name -an -vcodec h264 -s 320x240 -f flv rtmp://localhost:1935/real/${name}; | |
| exec ffmpeg -threads 16 -re -i rtmp://localhost:1935/$app/$name -vn -acodec mp3 -q:a 9 -f flv rtmp://localhost:1935/audio/${name}; | |
| } |
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
| CD /d %userprofile%\AppData\Local | |
| DEL IconCache.db /a | |
| EXIT | |
| explorer.exe |
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 | |
| # First argument is the video file with the black borders that need to be removed | |
| # Second argument is the resulting video | |
| ffmpeg -i $1 -vf "$(ffmpeg -i $1 -t 1 -vf cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tail -1)" $2 |