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 python | |
# 1. Save this file in your ~/.gimp-2.8/plug-ins/ directory | |
# 2. Run gimp from terminal | |
# 3. Go to Filters/Python-Fu/IPython Console | |
# 4. Go back to terminal to enjoy interactive Gimp scripting | |
# | |
import gimpfu | |
import gimp | |
from gimpfu import pdb |
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 python | |
# | |
# Converts color codes from text to html | |
# so that colors can be visible in a browser | |
# | |
import re | |
import sys | |
HTML_START="<html><head /><body><pre>" |
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
# Display a list of all installed avd, | |
# prompt user to select, | |
# then run emulator with option -avd set | |
# Example of use : # emulator-avd | |
function emulator-avd() | |
{ | |
avds=($(for f in `find ~/.android/avd/*.ini -iname "*.ini"`; do echo `basename $f .ini`; done)) | |
select avd in ${avds[*]} | |
do |
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
# Display a list of all connected Android devices | |
# Set ANDROID_SERIAL environment from selected item | |
# Example of use : # adb-setdev && adb install -r myapp.apk | |
function adb-setdev() | |
{ | |
devices=($(adb devices|grep "device$"|cut -f1)) | |
devices_count=${#devices[*]} | |
if [ "$devices_count" -eq "0" ] | |
then | |
unset ANDROID_SERIAL |
NewerOlder