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
@Jiezhi
Jiezhi / tmux.conf.bak
Last active April 11, 2022 02:07
tmux configure file from 《tmux:Productive Mouse-Free Development》
# Setting the prefix from C-b to C-a
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -sg escape-time 1
# Ensure that we can send Ctrl-A to other apps
#!/usr/bin/python
"""
color transfer ui
"""
import os
import sys
import cv2
import tempfile
#!/usr/bin/python
"""
Hello world of pyqt
"""
import sys
import cv2
from PyQt4.QtGui import *
from PyQt4.QtCore import *
# 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
! 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
@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
adb logcat | ndk-stack -sym $PROJECT_PATH/obj/local/armeabi
@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
@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 / 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()