View rvm_dump
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
+ cd current | |
+ builtin cd current | |
+ [[ -n '' ]] | |
+ true | |
+ __rvm_do_with_env_before | |
+ [[ -n '' ]] | |
+ [[ -n /usr/local/rvm ]] | |
+ source /usr/local/rvm/scripts/initialize | |
++ : rvm_trace_flag:0 | |
++ (( rvm_trace_flag > 0 )) |
View repo_forall_path_example
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
repo forall -c 'echo $REPO_PROJECT $REPO_PATH' | |
platform/abi/cpp abi/cpp | |
platform/bionic bionic | |
device/fsl/bootloader/uboot bootable/bootloader/uboot-imx | |
platform/bootable/recovery bootable/recovery | |
platform/build build | |
platform/cts cts | |
platform/dalvik dalvik |
View LS_COLORS
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
#set lots of bash shell ls colors | |
wget https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -O $HOME/.dircolors | |
echo 'eval $(dircolors -b $HOME/.dircolors)' >> $HOME/.bashrc | |
. $HOME/.bashrc | |
#To set if it was setup correctly | |
dircolors -p |
View dropbox monitor
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
echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches |
View create_gerrit_branch
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
repo init -u git://server/manifest -b <tag> android-4.1.2_r1 | |
repo sync | |
repo forall -c 'git branch company/branchname" | |
repo forall -c 'git checkout company/branchname" | |
repo forall -c 'git push ssh://cpiekarski@server:29418/$REPO_PROJECT company/branchname:company/branchname' |
View android_apk_location
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
$ adb shell pm list packages -f | grep com.occipital.panorama | |
package:/data/app-private/com.occipital.panorama-2.apk=com.occipital.panorama | |
$ adb pull /data/app-private/com.occipital.panorama-2.apk ~/tmp |
View ruby_twitter_crunch
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
> redis-server | |
> vi ./examples/Rakefile | |
@app_token = '' | |
@app_secret = '' | |
@user_accounts = {:name_one => { :token => '', | |
:secret => '', | |
:filter => ['cubs', '#baseball']}, |
View compile_off_proc_cpuinfo
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
# record build time and multiprocess build for machine | |
time make -j$(egrep '^processor' /proc/cpuinfo | wc -l) 2>&1 | tee my_make.out |
View git log alias
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
#http://www.jukie.net/bart/blog/pimping-out-git-log | |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
#other git log commands | |
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short | |
#see short changes for a commit id | |
git diff --stat b78c27ee675356a309cb5d0e3edf1462e1764a44 |
View add_new_android_permission
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
To add a new permission to Android modify the frameworks/base/core/res/AndroidManifest.xml file. Make sure you add the strings too. After rebuilding check that the api/current.txt file was updated to include the new permissions. | |
<!-- Allows an application to write the company system settings. --> | |
<permission android:name="android.permission.WRITE_COMPANY_SETTINGS" | |
android:permissionGroup="android.permission-group.DEVELOPMENT_TOOLS" | |
android:protectionLevel="signature|system|development" | |
android:label="@string/permlab_writeCompanySettings" | |
android:description="@string/permdesc_writeCompanySettings" /> | |
<!-- Allows an application to read the company system settings. --> |
OlderNewer