Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # export PATH=$PATH:/Developer/android-ndk-r8/prebuilt/darwin-x86/bin
- # export PATH=$PATH:/Developer/android-ndk-r8/toolchains
- # export PATH=$PATH:/Developer/android-ndk-r8/tools
- # export PATH=$PATH:/Developer/android-ndk-r8
- export PATH=$PATH:/Developer/emsdk/emsdk-portable/emsdk_portable/emscripten/1.7.8/
- export PATH=$PATH:/Developer/adt-bundle-mac/sdk/build-tools/19.0.2
- export PATH=$PATH:/Developer/adt-bundle-mac/sdk/platform-tools
- export PATH=$PATH:/Developer/adt-bundle-mac/sdk/tools
- export PATH=$PATH:/Developer/LostPrequel/LostChapters
- export PATH=$PATH:/Developer/SyncGraph/LostChapters/tools/gifts
- # export ANDROID_HOME="/Developer/adt-bundle-mac/sdk"
- # export NDKROOT="/Developer/android-ndk-r8"
- export STORM_FIRE_ROOT=/Developer/StormFire
- ##
- # Your previous /Users/aarsentiev/.bash_profile file was backed up as /Users/aarsentiev/.bash_profile.macports-saved_2012-03-23_at_16:25:37
- ##
- # MacPorts Installer addition on 2012-03-23_at_16:25:37: adding an appropriate PATH variable for use with MacPorts.
- export PATH=$PATH:/opt/local/bin:/opt/local/sbin:$PATH
- # Finished adapting your PATH environment variable for use with MacPorts.
- # Setting PATH for Python 3.2
- # The orginal version is saved in .bash_profile.pysave
- export PATH=$PATH:"/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
- # add Python 2.7.6
- #export PATH="/usr/local/Cellar/python/2.7.6_1/bin/":$PATH
- #export PATH=$PATH:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin
- #export PATH=$PATH:/Developer/android-ndk-r8/toolchains/llvm-3.1/prebuilt/darwin-x86/bin
- #export PATH=$PATH:/Developer/android-ndk-r8/toolchains/llvm-3.2/prebuilt/darwin-x86/bin
- #export ANT_HOME="/Developer/NVPACK/apache-ant-1.8.2"
- #export PATH=$PATH:/Developer/NVPACK/apache-ant-1.8.2/bin
- #export PATH=$PATH:/Deveoper/NVPACK/apache-ant-1.8.2/bin
- #export PATH=$PATH:/Developer/Dasha/boost/boost_1_54_0_rc1/boost_1_54_0/stage/lib
- # Setting PATH for Python 2.7
- # The orginal version is saved in .bash_profile.pysave
- # PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
- export PATH
- export EDITOR=nano
- source "`brew --prefix`/etc/grc.bashrc"
- function tab_name {
- printf "\e]1;$1\a"
- }
- function h.cdLost {
- cd "/Developer/LostPrequel/LostChapters"
- }
- function h.cdLostAndroid {
- cd "/Developer/LostPrequel/LostChapters/android"
- }
- function h.cdApkDropbox {
- cd ~/Dropbox/Projects/nexters/apk
- }
- function h.logLostJava {
- tab_name "Lost_Java"
- adb logcat | grep D/lost
- }
- function h.logLostCpp {
- tab_name "Lost_Cpp"
- adb logcat | grep cocos2d
- }
- function h.log {
- adb logcat | grep -e 'I/DEBUG' -e 'System.err' -e 'Fatal' -e 'D/lost' -e 'D/cocos2d-x' -e 'ABORTING' -e "InApp" -e "Error" -e "died" -e "crashed" -e "SIG" -e "stack" -e "dalvikvm" #| highlights 'I/DEBUG|System.err|Fatal|error' 'D/cocos2d-x|ok|true|success' 'D/lost|warning|false' '0|1|2|3|4|5|6|7|8|9' '' '[|]|(|)|<|>'
- }
- function h.updateProfile {
- source ~/.bash_profile
- }
- function h.config {
- subl "~/.bash_profile"
- }
- function h.sshTest {
- ssh socexp@socexp-test.i
- }
- function h.sshDev {
- ssh socexp@socexp-dev.i
- }
- function h.sshRc1 {
- ssh socexp@socexp-rc1.i
- }
- function h.sshRelease {
- ssh socexp@socexp-w1.i
- }
- function h.sshAdmin {
- ssh mobclient@mobclient.i
- }
- function subl {
- "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $@
- }
- function h.test {
- echo "you make it" > tmp
- echo "you take it" >> tmp
- echo "you cake it" >> tmpƒ
- echo "you bake it" >> tmp
- echo "you wake it" >> tmp
- GREP_COLOR='1;32' grep -P "(take|cake|bake)" --color=always tmp | GREP_COLOR='1;33' grep -P "(cake|bake)" --color=always -A10000 -B10000 | GREP_COLOR='1;34' grep -P "(bake)" --color=always -A10000 -B10000
- }
- function h.rmGameMac {
- rm -r /Users/aarsentiev/Library/Caches/cocos2dx/*
- }
- function h.crashlyticsDeployIE {
- /Developer/LostPrequel/LostChapters/ios/Crashlytics.framework/submit dfe07f3b548d9a23415ad5a49c4842e463375708 2c7036c51a42232e256dd6314088d7e60bd2e96d6a6472dea32eeee2bcdd60b4 -ipaPath /Users/aarsentiev/Desktop/ie2.ipa -groupAliases nexters-mobile-testers
- }
- function h.chmodAtlBuildXAndBuild {
- chmod -R +x /Developer/SyncGraph/LostChapters/tools
- chmod +x /Developer/SyncGraph/LostChapters/build_atlases.sh
- /Developer/SyncGraph/LostChapters/build_atlases.sh
- }
- function h.h {
- echo " version deploy:"
- echo "php /home/socexp/wwwroot/socexp.web/utils/client_deploy.php release_an 4.0055"
- echo " make proto symlink:"
- echo "ln -s ../deploy_fb/proto/ proto"
- }
- function h.valgrind {
- valgrind \
- --dsymutil=yes \
- --gen-suppressions=yes \
- --leak-check=yes \
- --suppressions=/Developer/LostPrequel/LostChapters/tools/profiles/ie_valgrind.supp \
- /Developer/LostPrequel/LostChapters/ios/DerivedData/LostChapters/Build/Products/Debug/LostChapters_mac.app/Contents/MacOS/LostChapters_mac
- }
- function h.getCrashes {
- sudo sh /Developer/SyncGraph/LostChapters/tools/sync_crashes.sh
- }
- function h.chmodWXFolder {
- sudo chmod -R +rw $@
- }
- function h.openSubl.canvas {
- subl "/Developer/socexp_client/ -n"
- }
- function h.openSubl.proto {
- subl "/Developer/socexp_proto/ -n"
- }
- function h.openSubl.ie.tools {
- subl "/Developer/LostPrequel/LostChapters/tools/ -n"
- }
- function h.assets_manager {
- "/Developer/LostPrequel/LostChapters/tools/assets_manager.py" $@
- }
- function h.assets_manager.update_remote_assets {
- "/Developer/LostPrequel/LostChapters/tools/assets_manager.py" "update_remote_assets" $@
- }
- function h.assets_manager.remove_remote_archives {
- "/Developer/LostPrequel/LostChapters/tools/assets_manager.py" "remove_remote_archives" $@
- }
- function h.assets_manager.upload_so {
- "/Developer/LostPrequel/LostChapters/tools/assets_manager.py" "upload_so" $@
- }
- function h.assets_manager.build_upload_assets {
- "/Developer/LostPrequel/LostChapters/tools/assets_manager.py" "build_upload_assets" $@
- }
- function h.assets_manager.build_remote {
- "/Developer/LostPrequel/LostChapters/tools/assets_manager.py" "build_remote" $@
- }
- #!/bin/bash
- # DESCRIPTION:
- # * h highlights with color specified keywords when you invoke it via pipe
- # * h is just a tiny wrapper around the powerful 'ack' (or 'ack-grep'). you need 'ack' installed to use h. ack website: http://beyondgrep.com/
- # INSTALL:
- # * put something like this in your .bashrc:
- # . /path/to/h.sh
- # * or just copy and paste the function in your .bashrc
- # TEST ME:
- # * try to invoke:
- # echo "abcdefghijklmnopqrstuvxywz" | h a b c d e f g h i j k l
- # GITHUB
- # * https://github.com/paoloantinori/hhighlighter
- highlights() {
- _usage() {
- echo "usage: YOUR_COMMAND | h [-idn] args...
- -i : ignore case
- -d : disable regexp
- -n : invert colors"
- }
- local _OPTS
- # detect pipe or tty
- if test -t 0; then
- _usage
- return
- fi
- # manage flags
- while getopts ":idnQ" opt; do
- case $opt in
- i) _OPTS+=" -i " ;;
- d) _OPTS+=" -Q " ;;
- n) n_flag=true ;;
- Q) _OPTS+=" -Q " ;;
- # let's keep hidden compatibility with -Q for original ack users
- \?) _usage
- return ;;
- esac
- done
- shift $(($OPTIND - 1))
- # check maximum allowed input
- if (( ${#@} > 12)); then
- echo "Too many terms. h supports a maximum of 12 groups. Consider relying on regular expression supported patterns like \"word1\\|word2\""
- exit -1
- fi;
- # set zsh compatibility
- [[ -n $ZSH_VERSION ]] && setopt localoptions && setopt ksharrays && setopt ignorebraces
- local _i=0
- if [ -z $n_flag ]; then
- #inverted-colors-last scheme
- _COLORS=( "underline bold red" "underline bold green" "underline bold yellow" "underline bold blue" "underline bold magenta" "underline bold cyan" "bold on_red" "bold on_green" "bold black on_yellow" "bold on_blue" "bold on_cyan" "bold on_magenta" )
- else
- #inverted-colors-first scheme
- _COLORS=( "bold on_red" "bold on_green" "bold black on_yellow" "bold on_blue" "bold on_magenta" "bold on_cyan" "bold black on_white" "underline bold red" "underline bold green" "underline bold yellow" "underline bold blue" "underline bold magenta" )
- fi
- # build the filtering command
- for keyword in "$@"
- do
- local _COMMAND=$_COMMAND"ack $_OPTS --noenv --flush --passthru --color --color-match=\"${_COLORS[$_i]}\" '$keyword' |"
- _i=$_i+1
- done
- #trim ending pipe
- _COMMAND=${_COMMAND%?}
- #echo "$_COMMAND"
- cat - | eval $_COMMAND
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement