Skip to content

Instantly share code, notes, and snippets.

View oozman's full-sized avatar

Oozman oozman

View GitHub Profile
@oozman
oozman / how-to-root-cherrymobile-thunder
Created September 8, 2013 10:57
How to root Cherry Mobile Thunder
Rooting Cherry Mobile Thunder
* Do this http://www.technodify.com/how-to-root-micromax-a91-and-cherry-mobile-thunder/
* Note: You need to copy Bin4ry file to C: and rename the folder to something else. ex: (rootandroid)
You need to run RunMe.bat as Administrator
* Install SQLITE for Root in Playstore
* Follow this http://forum.xda-developers.com/showthread.php?t=1835056
@oozman
oozman / fix-innodb-failed-xampp
Last active December 21, 2015 08:09
How to fix Plugin 'InnoDB' registration as a STORAGE ENGINE failed on XAMPP in Windows 8
I wrote an article about this on my blog, check it here:
http://omarusman.com/blog/tutorials/xampp-innodb-storage-engine-failed-windows8
@oozman
oozman / dropdown-menu
Created May 27, 2013 01:09
A simple CSS-only dropdown menu.
.dropdown-menu {
list-style: none;
font-weight: bold;
width: 100%;
position: relative;
z-index: 5;
font-family: Sans-serif;
}
.dropdown-menu li {
float: left;
@oozman
oozman / shadow-text
Created May 9, 2013 08:44
A little subtle shadow on a text.
.shadow-text {
text-align: left;
color: #fff;
text-shadow: black 0.1em 0.1em 0.2em;
}
@oozman
oozman / custom-domain-localhost-xampp
Last active September 1, 2022 06:07
How to add a custom domain name on your localhost using XAMPP. Codes are based on Windows, but Step 2 onwards are pretty much applicable on other operating system.
Step 1:
Go to: C:\Windows\System32\Drivers\etc\hosts
And add this to the bottom of the file:
=============
127.0.0.1 your.domain.com
=============
Step 2:
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf
@oozman
oozman / tropo-scripting-on-gist
Last active December 16, 2015 04:29
GlobeLabs API
<?php
ask("What's your four or five digit pin? Press pound when finished", array(
"choices"=>"[4-5 DIGITS]",
"terminator" => "#",
"timeout" => 15.0,
"mode" => "dtmf",
"interdigitTimeout" => 5,
"onChoice" => "choiceFCN",
"onBadChoice" => "badChoiceFCN"
)
@oozman
oozman / LongRunningGetIO
Created March 14, 2013 07:08
Getting data from API URL using GET in Android (AsyncTask). Credits: http://goo.gl/5hgFC
private class LongRunningGetIO extends AsyncTask <Void, Void, String>{
protected String getASCIIContentFromEntity(HttpEntity entity) throws IllegalStateException, IOException{
InputStream in = entity.getContent();
StringBuffer out = new StringBuffer();
int n = 1;
while (n>0) {
byte[] b = new byte[4096];
n = in.read(b);
if (n>0){