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
// install and or goto adb | |
// download from device (usb) -d | |
// list full path of third party packages | |
adb -d shell pm list packages -f -3 | |
// package:/data/app/com.google.android.inputmethod.japanese-1/base.apk=com.google.android.inputmethod.japanese | |
// download apk to path | |
adb -d pull /data/app/com.google.android.inputmethod.japanese-1/base.apk path/to/ |
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 python3 | |
import sqlite3 | |
import re | |
# find your 'History' file | |
conn = sqlite3.connect('c:/Users/username/AppData/Local/Google/Chrome/User Data/Default/History') | |
c = conn.cursor() | |
print("history length", c.execute('SELECT count(1) FROM urls').fetchone()[0]) |
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 python3 | |
# this is python 2 and 3 compatible | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
import datetime | |
COMMASPACE = ', ' | |
sender = '[email protected]' |
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
package pw.dschmidt.helper; | |
import android.os.Bundle; | |
public class Bundler { | |
private Bundle bundle; |
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
// copy paste and enter to clear current page | |
for (i = 0; i < 150;i++) document.getElementById("checkbox-" + i).checked = true; | |
document.getElementById("remove-selected").disabled = false; | |
document.getElementById("remove-selected").click(); | |
document.getElementById("alertOverlayOk").click(); |
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/python | |
# -*- coding: utf-8 -*- | |
# see https://github.com/rvalles/brntool | |
#Keep python2 working | |
from __future__ import division #1/2 = float, 1//2 = integer | |
from __future__ import print_function #print("blah", file=whatever) | |
#Keep python2 working end | |
from optparse import OptionParser | |
import serial | |
import sys |
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
package main | |
import ( | |
"net/http" | |
"log" | |
) | |
func redirect(w http.ResponseWriter, req *http.Request) { | |
// remove/add not default ports from req.Host | |
target := "https://" + req.Host + req.URL.Path | |
if len(req.URL.RawQuery) > 0 { |
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
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath | |
// http://stackoverflow.com/questions/1880321/why-does-the-260-character-path-length-limit-exist-in-windows | |
// converts a relative path like "abc\" or a filename like "savehere.zip" | |
// to full escaped path \\?\c:\currentdir\abc\ | |
// note that all slashes have to be backslashes | |
func FuckWin(path string) string { | |
pwd, err := os.Getwd() | |
if err != nil { panic(err) } | |
result := pwd + "\\" + path |
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
import random | |
import __future__ | |
a = 'abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWYXZ23456789$%&()=?+#-}][{*/:<>~' #0Ol1!I | |
b = 'abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWYXZ23456789' | |
d = 'abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWYXZ23456789@#%_-&*()' | |
all = "".join((chr(i) for i in range(33,127))) | |
def doa(l = 20, chars = a): | |
return "".join(chars[int(random.random() * (len(chars[:-1])+1))] for i in range(l)) |
NewerOlder