Skip to content

Instantly share code, notes, and snippets.

View giuseppebarba's full-sized avatar

Giuseppe Barba giuseppebarba

  • STMicroelectronics
  • Milan
View GitHub Profile
create an executable script /usr/bin/gitproxy.sh:
#!/bin/sh
proxy="proxy.company.com"
user="user name"
pass="password"
proxyport=8080
proxytunnel -p $proxy:$proxyport -d $1:$2 -P $user:$pass
@giuseppebarba
giuseppebarba / gist:10149571
Last active November 4, 2015 12:04
Usefull tips.
Usefull tips.
-------------------------------------------------
Linux System using tar and netcat
On the receiving end do:
# netcat -l 7000 | tar x
And on the sending end do:
# tar cf - * | netcat otherhost 7000
@giuseppebarba
giuseppebarba / gist:10149352
Last active March 22, 2018 14:25
Android Debugging
Some system properties:
--------------------------------------------------------------------------------
setprop debug.db.uid 32767
That will cause the crash catcher (debuggerd) to freeze the process,
allowing you to use gdb/gdbserver to debug it.
In the source tree, after you "source build/envsetup.sh" and use
"lunch" or "choosecombo", you will have a shell command called
"gdbclient". By default, it expects to debug "app_process" on port