This file contains hidden or 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 | |
# coding=utf8 | |
# author=evi1m0#n0tr00t | |
# Fri Apr 10 14:14:35 2015 | |
import os | |
import re | |
import sys | |
import wget | |
import requests |
This file contains hidden or 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
:w !sudo tee % > /dev/null |
This file contains hidden or 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
# from http://www.thehackeruniversity.com/2014/01/23/pyqt5-beginner-tutorial/ | |
from PyQt5.QtWidgets import * | |
class Form(QWidget): | |
def __init__(self, parent=None): | |
super(Form, self).__init__(parent) | |
nameLabel = QLabel("Name:") | |
self.nameLine = QLineEdit() |
This file contains hidden or 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
/** | |
* Don't forget to add <uses-permission android:name="android.permission.INSTALL_PACKAGES" /> in AndroidManifest.xml | |
* I bind this function with Button | |
* referenced with http://www.trinea.cn/android/android-install-silent/ | |
* @param view | |
*/ | |
public void installAPK(View view) { | |
// assume there is a apk file in /sdcard/ path | |
String filePath = "/sdcard/RootExplorer_99.apk"; | |
String[] args = {"pm", "install", "-r", filePath}; |
This file contains hidden or 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
#include "com_jiezhi_jnitest_MainActivity.h" | |
jclass mClass; | |
jobject mObject; | |
jmethodID mStaticmethodID, mnotStaticMethodID; | |
/* | |
* Class: com_jiezhi_jnitest_MainActivity | |
* Method: nativeInit | |
* Signature: ()V |
This file contains hidden or 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
adb logcat | ndk-stack -sym $PROJECT_PATH/obj/local/armeabi |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
import logging | |
import json | |
import random | |
import math | |
import base64 | |
import requests |
This file contains hidden or 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
! Put user rules line by line in this file. | |
! See https://adblockplus.org/en/filter-cheatsheet | |
|xda-developers.com | |
|img.media.xda-developers.com/ | |
|frescolib.org/ | |
|developer.android.com/ | |
||androidexperiments.com/ | |
||bundlehunt.com | |
||github.io |
This file contains hidden or 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
# Remap key | |
# Defining an Easier Prefix | |
set -g prefix C-a | |
unbind C-b | |
# Changing the Default Delay | |
# set -sg escape-time 1 | |
# Setting the Window and Panes Index set -g base-index 1 set -g pane-base-index 1 |
This file contains hidden or 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 | |
""" | |
Hello world of pyqt | |
""" | |
import sys | |
import cv2 | |
from PyQt4.QtGui import * | |
from PyQt4.QtCore import * |
OlderNewer