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 | |
#git fetch --prune # run fetch --prune to update local refs that were removed on orign | |
BRANCHES=$(git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}') | |
echo Branches that are gone on origin: | |
echo $BRANCHES | tr " " "\n" | |
read -p "Delete these branches (y/n)? " answer |
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 | |
MAIN=develop | |
BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|develop\|\*') | |
echo Branches merged into $MAIN: | |
echo $BRANCHES | tr " " "\n" | |
read -p "Delete these branches (y/n)? " answer |
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
totalmethods=0 | |
for jar in `find . -type f -name "*.jar"`; do | |
echo $jar | |
dx --dex --output=temp.dex $jar 2> /dev/null | |
jarmethods=$(cat temp.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"') | |
echo $jarmethods | |
totalmethods=$(($a+$totalmethods)) | |
#echo $totalmethods | |
done |
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
// JAVA | |
public static void main(String[] args) | |
{ | |
ClassLoader cl = ClassLoader.getSystemClassLoader(); | |
URL[] urls = ((URLClassLoader)cl).getURLs(); | |
for(URL url: urls){ | |
System.out.println(url.getFile()); | |
} |
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
============== Android with split application binary enabled | |
Application.dataPath: /storage/emulated/0/Android/obb/im.getsocial.testapp.unity/main.1.im.getsocial.testapp.unity.obb | |
Application.persistentDataPath: /storage/emulated/0/Android/data/im.getsocial.testapp.unity/files | |
Application.streamingAssetsPath: jar:file:///storage/emulated/0/Android/obb/im.getsocial.testapp.unity/main.1.im.getsocial.testapp.unity.obb!/assets | |
============== Android with split application binary DISabled | |
Application.dataPath: /data/app/im.getsocial.testapp.unity-2/base.apk |
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
using System; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Nravo.Editors.Utils { | |
public class EditorStateWindow : EditorWindow { | |
static string _currentState = ""; | |
static GUIStyle _lableStyle = new GUIStyle(); |
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
# =============== # | |
# Unity generated # | |
# =============== # | |
Temp/ | |
obj/ | |
Library/ | |
# ===================================== # | |
# Visual Studio / MonoDevelop generated # | |
# ===================================== # |
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
#define DEBUG_CONSOLE | |
#define DEBUG_LEVEL_LOG | |
#define DEBUG_LEVEL_WARN | |
#define DEBUG_LEVEL_ERROR | |
#if (UNITY_EDITOR || DEVELOPMENT_BUILD) | |
#define DEBUG | |
#endif | |
#if (UNITY_IOS || UNITY_ANDROID) |