I hereby claim:
- I am spences10 on github.
- I am spences10 (https://keybase.io/spences10) on keybase.
- I have a public key whose fingerprint is B8C6 7F63 C1B8 1EDF 48BC BDFD 28EE 1E46 7902 7FF6
To claim this, I am signing this object:
package com.spences10apps.SScript; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Environment; | |
import android.view.Menu; | |
import android.view.MenuInflater; | |
import android.view.MenuItem; | |
import android.widget.EditText; |
public static boolean hasRootPermission() { | |
Process process = null; | |
DataOutputStream os = null; | |
boolean rooted = true; | |
try { | |
process = Runtime.getRuntime().exec("su"); | |
os = new DataOutputStream(process.getOutputStream()); | |
os.writeBytes("exit\n"); | |
os.flush(); | |
process.waitFor(); |
## Acer | |
#SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0600", OWNER="<username>" | |
## ASUS | |
#SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0600", OWNER="<username>" | |
## Dell | |
#SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0600", OWNER="<username>" | |
## Foxconn |
#!/bin/bash | |
# | |
#Android ADB Installer 2 for Linux Mint 11 and Ubuntu 11.04 | |
#This version is intended to be an improvement on previous version and give the user more installation options and bring more ease to people that want to develop, | |
#theme, or just whatever other purpose you may want to use something that is in my script for. | |
#Script written by @ArchDukeDoug and parts of @_CorCor67's scripting code used with permission as well. | |
#Thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script. | |
#Script version: 2.0.0 | |
menu= |
#!/bin/sh | |
# Sources: | |
# http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html | |
# http://askubuntu.com/questions/272314/setup-and-install-intellij-with-jdk | |
# https://gist.github.com/tahl/1658401 | |
# guide on setting up IntelliJ from Tony Owen | |
# http://droidapp.co.uk/2012/12/29/switching-to-intellij-installation-and-setup/ | |
# I have amended for my own purposes please refer to considerations in the Ask Ubuntu post | |
sudo apt-get update | |
sudo apt-get upgrade | |
// install dropbox | |
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf - | |
~/.dropbox-dist/dropboxd | |
sudo apt-get install yakuake vim vlc gimp sqlite3 curl git-core git-gui gparted filelight xclip kubuntu-restricted-extras gparted wine pidgin libqt4-webkit build-essential hardinfo | |
// add programs to startup : System Settings -> Startup |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
var delay = 250; | |
var until = 'faux123'; | |
var a = new Array(); | |
$('button[class*=follow-btn]').each(function() { | |
var attr = $(this).parent().attr('data-screen-name'); | |
if (attr != undefined) { | |
if (attr == until) { | |
return false; | |
} |
I hereby claim:
To claim this, I am signing this object:
def generate_comment(self): | |
c_list = list(itertools.product( | |
["this", "the", "your"], | |
["photo", "picture", "pic", "shot", "snapshot"], | |
["is", "looks", "feels", "is really"], | |
["great", "super", "good", "very good", | |
"good", "wow", "WOW", "cool", | |
"GREAT", "magnificent", "magical", "very cool", | |
"stylish", "so stylish", "beautiful", | |
"so beautiful", "so stylish", "so professional", |