Skip to content

Instantly share code, notes, and snippets.

View Noisyfox's full-sized avatar
🦊
I'm just a fox

Noisyfox Noisyfox

🦊
I'm just a fox
View GitHub Profile
@Noisyfox
Noisyfox / build.gradle
Last active February 10, 2020 11:36
Gradle generate web3j truffle wrapper
buildscript {
ext.WEB3J_VERSION = "4.5.14"
repositories {
mavenCentral()
}
dependencies {
// Pull the web3j codegen lib
classpath group: 'org.web3j', name: 'codegen', version: WEB3J_VERSION
}
@Noisyfox
Noisyfox / SQLiteOpenHelper.java
Created February 25, 2019 23:54
SQLiteOpenHelper for MOE
package android.database.sqlite;
import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.util.Log;
/**
* A helper class to manage database creation and version management.
*

Keybase proof

I hereby claim:

  • I am noisyfox on github.
  • I am noisyfox (https://keybase.io/noisyfox) on keybase.
  • I have a public key ASDA1SJU0bDrBeWCu0Vzg3dvfKqICeEoxHGuoXPotTSLfgo

To claim this, I am signing this object:

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name yoursite.com www.yoursite.com;
location /{
rewrite ^(.*) https://$host$request_uri permanent;
}
}
0447db83996f60e25420b8d46c3860149a94f70d12452707676c727cb5f373bc96e7d3e9d9faa67025df0084bd596aab1845e095b2975dd219d06d5851337cb81e
@Noisyfox
Noisyfox / ss-install.md
Created December 12, 2016 14:51 — forked from aa65535/ss-install.md
shadowsocks-libev install at Debian or CentOS

Debian

cd /tmp
# 下载源码
git clone https://github.com/shadowsocks/shadowsocks-libev.git
# 开始编译
cd shadowsocks-libev
./autogen.sh
./configure --prefix=/usr && make
make install
@Noisyfox
Noisyfox / proguardVerify.py
Last active August 4, 2018 16:35
Verify missing delegate keep rules for MOE when proguardLevel higher than 'app'
#!/usr/bin/python2.7
import os
import re
re_import = re.compile(r'^import (apple\.[^\s]+[^.\s]Delegate);?$')
re_proguard = re.compile(r'^-keep +interface (apple\.[^\s]+[^.\s]Delegate) ?\{.*}$')