Skip to content

Instantly share code, notes, and snippets.

View Jiezhi's full-sized avatar
:shipit:
Working hard

Jiezhi.G Jiezhi

:shipit:
Working hard
View GitHub Profile
#!/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
@Jiezhi
Jiezhi / sudo w!
Created April 29, 2015 03:37
以sudo方式强行保存
:w !sudo tee % > /dev/null
@Jiezhi
Jiezhi / pyqt5-beginner-tutorial-part-1
Created May 15, 2015 09:09
pyqt5-beginner-tutorial-part-1
# 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()
@Jiezhi
Jiezhi / silence_install_apk
Created May 18, 2015 11:59
install apk just in silence
/**
* 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};
@Jiezhi
Jiezhi / ndk_c_call_java_method
Created May 28, 2015 08:25
how c/c++ call java method in android by jni
#include "com_jiezhi_jnitest_MainActivity.h"
jclass mClass;
jobject mObject;
jmethodID mStaticmethodID, mnotStaticMethodID;
/*
* Class: com_jiezhi_jnitest_MainActivity
* Method: nativeInit
* Signature: ()V
adb logcat | ndk-stack -sym $PROJECT_PATH/obj/local/armeabi
@Jiezhi
Jiezhi / nesign.py
Created October 24, 2015 15:11 — forked from abrasumente233/nesign.py
网易云音乐签到(pc android)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import json
import random
import math
import base64
import requests
! 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
# 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
#!/usr/bin/python
"""
Hello world of pyqt
"""
import sys
import cv2
from PyQt4.QtGui import *
from PyQt4.QtCore import *