This file contains 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
#!/bin/bash | |
# Written by lithid for FF7 | |
pro_path=$(find ~/ -iname firefox |grep .mozilla) | |
short=$(grep 'Path' ~/.mozilla/firefox/profiles.ini |cut -f 2 -d'=') | |
doesit=$(find $pro_path/$short -type f |grep .mozilla | egrep -ico userChrome.css) | |
if [ "$doesit" = "0" ]; then | |
mkdir -p $pro_path/$short/chrome | |
echo_path="$pro_path/$short/chrome" |
This file contains 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
#!/bin/bash | |
# Lithid | |
while true; do | |
# Title of the google voice window to look for | |
# Gmail | |
#MESSAGE=$(xwininfo -tree -root |grep -c "Gmail - Inbox ([1-999])") | |
# Google Voice | |
MESSAGE=$(xwininfo -tree -root |grep -c "Google Voice - Inbox ([1-999])") |
This file contains 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
$ndb = mysqli_connect ( | |
'localhost', | |
'user', | |
'pw', | |
'db') or die ('Error connecting. Check yo factz!'); | |
$output_form = false; | |
$content=$_POST['content']; | |
$content = mysql_real_escape_string($content); | |
This file contains 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
$ndb = mysqli_connect ( | |
'localhost', | |
'user', | |
'pw', | |
'db') or die ('Error connecting. Check yo factz!'); | |
$output_form = false; | |
$content = mysql_real_escape_string($_POST['content']); | |
if (isset($_POST['submit'])) { |
This file contains 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
$ndb = mysqli_connect ( | |
'localhost', | |
'user', | |
'pw', | |
'db') or die ('Error connecting. Check yo factz!'); | |
$output_form = false; | |
$content=$_POST['content']; | |
$content = "mysql_real_escape_string($content, $ndb)"; | |
This file contains 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
#!/bin/bash | |
# Installing Boot 2 Gecko Nexus S 4g | |
# Lithid | |
ROOTDIR=$(pwd) | |
ADB="sudo ${ROOTDIR}/tools/Linux/adb" | |
FASTBOOT="sudo ${ROOTDIR}/tools/Linux/fastboot" | |
SADB="sudo ${ADB} start-server" | |
KADB="sudo ${ADB} kill-server" |
This file contains 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
#!/system/bin/sh | |
# Remove busybox hardlinks. | |
for i in `ls /system/xbin/` | |
do | |
INODE=`stat $i | grep Inode | awk '{print $4}'` | |
if [ "$INODE" = "`stat /system/xbin/busybox | grep Inode | awk '{print $4}'`" ] | |
then |
This file contains 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
String[] checkRom = {"gapps-geek.sh check-rom"}; | |
String[] checkGapps = {"gapps-geek.sh check-gapps"}; | |
// On check rom Preference | |
RunAsRoot(checkRom); | |
// On check gapps Preference | |
RunAsRoot(checkGapps); | |
public void RunAsRoot(String[] cmds){ |
This file contains 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
#!/bin/bash | |
# Written by Lithid | |
URL="http://downloads.sourceforge.net/project/java-game-lib/Official%20Releases/LWJGL%202.6/lwjgl-2.6.zip" | |
FILE="lwjgl-2.6.zip" | |
FOLDER="lwjgl-2.6" | |
DIR="$HOME/.minecraft" | |
if [ -d $DIR ]; then | |
cd $DIR |
This file contains 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 | |
import sys | |
import platform | |
p = platform.dist() | |
distro = p[0] | |
version = p[1] | |
name = p[2] | |
check = (sys.maxsize > 2**32) |
OlderNewer