Skip to content

Instantly share code, notes, and snippets.

@arawas
arawas / cache_table_create.sql
Last active August 29, 2015 14:10
misc; create_cache.php for tiarraMetro
CREATE TABLE url (
id INTEGER NOT NULL AUTO_INCREMENT,
url TEXT NOT NULL,
shorten TEXT,
created DATETIME,
updated TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@arawas
arawas / 30_key_bl_htc
Created July 26, 2014 05:50
init.d script for disable hw key backlight on HTC One M7
#!/system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness
echo 0 > /sys/class/leds/button-backlight/max_brightness
@arawas
arawas / loki.sh
Last active August 29, 2015 13:57
LGL22_CwmTools
#!/system/bin/sh
#
# This leverages the loki_patch utility created by djrbliss which allows us
# to bypass the bootloader checks on jfltevzw and jflteatt
# See here for more information on loki: https://github.com/djrbliss/loki
#
export C=/data/local/tmp/
bb="$C/busybox_file"
/*
for iPad
*/
@media only screen and (device-width: 768px) and (max-device-height: 1024px) and (orientation: portrait) {
body,div,span,font,input,select {
font-size: 16px;
}
}
@media only screen and (max-device-width: 768px) and (device-height: 1024px) and (orientation: landscape) {
body,div,span,font,input,select {
@arawas
arawas / system_rw.sh
Created October 3, 2012 04:06
F-10D rw mount system pertition for Gscript
#!/bin/sh
echo Initializing...
flag=true
while $flag
do
isRW=`mount | grep "/system ext4 rw" | grep -v grep | wc -l`
if [ $isRW = 1 ]; then
echo "/system is now writable."
flag=false
@arawas
arawas / gist:2342514
Created April 9, 2012 09:34
tiarraMetro's custom menu sample
#### 0
log_popup_menu:
separator: '@'
network:
@i: 'quickpost'
@f: 'quickpost'
@r: 'quickpost'
@t: 'tig_menu'
@k: 'fig_menu'
@arawas
arawas / iphone4.css
Created September 24, 2011 09:15
mobirc 3.0 iphone.css alternative
/* place for mobirc/assets/static/iphone.css */
@charset "UTF-8";
body {
margin: 0;
padding: 0;
word-break: break-all;
font-family: sans-serif;
background: #FCFCFC;
}
@arawas
arawas / bkrs.sh
Created July 23, 2011 20:08
Backup/restore for apt/Cydia repos and packages, libactivator/libhide/libiconsupport settings.
#!/bin/sh
#
# @(#) bkrs.sh
# $Id: bkrs.sh,v.0.03 2012/05/28 00:00:00 arawas Exp $
#
# Usage:
# [su; |sudo] $CMDNAME -[b|r] [-o <DIR>]
# -b Backup
# -r Restore
#
@arawas
arawas / irchat.nb
Created November 7, 2010 21:05 — forked from trapezoid/irchat.nb
IrcJabberGateway mod
require 'rubygems'
require 'xmpp4r'
require "iconv"
require "nkf"
require "kconv"
require "uri"
/*
# in nadokarc (NADOKA_Config)
BotFiles = [