Skip to content

Instantly share code, notes, and snippets.

View rashidi's full-sized avatar
🛠️

Rashidi Zin rashidi

🛠️
View GitHub Profile
@rashidi
rashidi / tomcat-users.default.xml
Created October 10, 2011 14:13
Default content of tomcat-users.xml
<?xml version="1.0"?>
<tomcat-users></tomcat-users>
@rashidi
rashidi / tomcat-users.xml
Created October 10, 2011 14:16
Sample of tomcat-users.xml for Spring Insight
<?xml version="1.0"?>
<tomcat-users>
<role rolename="insight_admin" />
<role rolename="insight" />
<user username="insight" password="admin" roles="insight, insight_admin" />
</tomcat-users>
@rashidi
rashidi / web.xml
Created October 10, 2011 14:26
Enable Authorization For Spring Insight
<security-constraint>
<web-resource-collection>
<web-resource-name>Random Writings Insight</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>insight_admin</role-name>
</auth-constraint>
</security-constraint>
@rashidi
rashidi / android-masking-network-operator.sh
Created October 20, 2011 11:23
Android - Masking Network Operator
# Settings -> Applications -> Manage Applications -> Market -> Clear Cache -> Force Stop (this button will be enabled if your Market is still running) -> OK
# Open a console and type the following command (for *nix user, remember to use sudo to avoid permission error):
adb shell setprop gsm.sim.operator.numeric 310260
adb shell setprop gsm.operator.numeric 310260
adb shell getprop gsm.sim.operator.iso-country us
adb shell getprop gsm.operator.iso-country us
@rashidi
rashidi / android-baseband-prefixes.txt
Created February 16, 2012 09:52
[android] Baseband Prefixes
Source: http://forum.xda-developers.com/showpost.php?p=20445197&postcount=7
NOTE: The Baseband is defined by 3 sets of codes.
The first two are the Country Code, the next 2 denote the Year and Month (KK = 2011 November)
and the last number denotes the Revision.
Country Code:
CE---> Belgium, Luxembourg, Netherlands
DC---> Thailand
@rashidi
rashidi / android-flashing-recovery.sh
Created July 17, 2012 03:08
[android] Flashing Recovery
adb reboot bootloader
./fastboot flash recovery <recovery>.img
./fastboot reboot
@rashidi
rashidi / android-flash-kernel.sh
Created August 22, 2012 07:23
Android Flash Kernel
dd if=/sdcard/boot.img of=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot
@rashidi
rashidi / android-flash-kernel-fastboot.sh
Created January 16, 2013 01:37
Flash Android Kernel via Fastboot
fastboot flash boot boot.img
@rashidi
rashidi / java-remote-debugging.sh
Last active December 11, 2015 09:58
Java: Remote Debugging
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n -Xnoagent -Djava.compiler=NONE
@rashidi
rashidi / aix-app-port.sh
Created January 31, 2013 07:32
AIX: Which application is using a specific port?
netstat -Aan | grep 8081