Skip to content

Instantly share code, notes, and snippets.

View inmyfree's full-sized avatar

inmyfree inmyfree

View GitHub Profile
@inmyfree
inmyfree / curlproxy.sh
Created November 4, 2016 08:44
curlproxy.sh
#!/bin/bash
cd /mnt/media_a/proxyconfig/
mkdir tmp html result
for ((i=1;i<8;i++))
do
@inmyfree
inmyfree / no_ad_baidu.css
Created June 1, 2016 01:22 — forked from funsunz/no_ad_baidu.css
去推广广告,多列卡片显示的百度搜索stylish样式
body {
overflow-x: hidden;
min-width: 600px;
/*background-color: rgb(248,248,248);*/
}
#container {
width: 100%
}
#content_right {
display: none
@inmyfree
inmyfree / rules.conf
Created October 27, 2015 01:23 — forked from janlay/README.md
Yet another config for Surge.app (build 245+)
# This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet.
# This file depends on the main.conf which defines your own proxy.
# Your main.conf will look like this:
# ---- START ----
# #!PROXY-OVERRIDE:rules.conf
# [Proxy]
# Proxy = https,server.address,port,username,password
# ---- END ----
#
@inmyfree
inmyfree / surge_main.conf
Created October 27, 2015 00:57
Config for surge.app
# This config file was created for myself (@shanskc). You may want to add or remove some rules to make efficient use of the Internet.
# NOTE: this config requires Surge.app build 246+ or newer version.
# Update: Rules and configuration tuning
# 从243开始Surge 加入了proxy和rule分离的配置Override,此文件为rules main.conf,在你的proxy中你可以引入此conf
# eg: 下面为你的proxy.conf,只需引入此main.conf 即可.
# -----START-----
# #!PROXY-OVERRIDE:main.conf
#
# [Proxy]
# Proxy = custom, ip, port, Methor, password
eyJ2ZXJzaW9uIjoxLjMsImZlYXR1cmVzIjp7ImxvY2F0aW9uIjp7InJvb20iOnRydWUsIm91dHNpZGUiOnRydWUsIndvcmxkIjp0cnVlLCJzcGFjZVNoaXAiOnRydWV9fSwic3RvcmVzIjp7IuacqOWktCI6MTE1NTIsIuavm+eariI6MTQxOTIsIuivsemltSI6OTUxMCwi6IKJIjoxMzQxMiwi54mZ6b2/Ijo5OTcwLCLluIPljLkiOjk5NTUsIumznueJhyI6OTE4OCwi5oqk6Lqr56ymIjo4OTgsIue9l+ebmCI6MSwi55qu6Z2pIjo4OTk5LCLohYzogokiOjk1MDEsIueBq+eCrCI6OTkwNSwi6aqo5p6qIjo5ODksIuaXheihjOWMhSI6OTEwLCLmsLTooosiOjEwMCwi55qu55SyIjo5OSwi6ZOBIjo5NjYyLCLpk77nkIMiOjkyNzcsIumSoiI6OTIzMCwi6ZOB5YmRIjo5NzIsIuawtOahtiI6OTEwLCLljLvnlpfoja/liYIiOjk2OSwi5aSn6LSn6L2mIjoxMCwi6ZKi5YmRIjo5MjQsIumTgeeUsiI6OTEwLCLpkqLnlLIiOjEsIui0p+i9piI6MSwi5rC0566xIjoxLCLlrZDlvLkiOjk3ODMsIuatpeaeqiI6OTA5OSwi56Gr56O6Ijo5OTUwLCLlpJbmmJ/lkIjph5EiOjk2MzV9LCJjaGFyYWN0ZXIiOnsiZGVoeWRyYXRlZCI6Miwic3RhcnZlZCI6NywicGVya3MiOnsi6ZmN6b6Z5Y2B5YWr5o6MIjp0cnVlLCLljYPph4znnLwiOnRydWV9fSwiaW5jb21lIjp7ImdhdGhlcmVyIjp7ImRlbGF5IjoxMCwic3RvcmVzIjp7IuacqOWktCI6NDB9LCJ0aW1lTGVmdCI6Mn0sIuW3peS6uiI6eyJkZWxheSI6MTAsInN0b3JlcyI6eyLmnKjlpLQiOjJ9LCJ0aW1lTGVmdCI6M30sIuaN
####################################################
###欢迎您选用 WWW.HOST700.com VPS 低价 稳定 实惠 ###
####################################################
#开始先配置shadowsocks这个就大概说下
git clone git://github.com/clowwindy/shadowsocks.git
#然后进入
cd shadowsocks
#然后配置下config.json文件
vim config.json #具体的配置自己看很简单
#运行服务端
package cn.stocking.main;
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@inmyfree
inmyfree / copyfile
Last active December 14, 2015 09:09
public static void copyFile(String f1, String f2) throws IOException {
File sourceFile = new File(f1);
File targetFile = new File(f2);
BufferedInputStream inBuff = null;
BufferedOutputStream outBuff = null;
try {
// 新建文件输入流并对它进行缓冲
inBuff = new BufferedInputStream(new FileInputStream(sourceFile));
// 新建文件输出流并对它进行缓冲
outBuff = new BufferedOutputStream(new FileOutputStream(targetFile));
package com.jtonphone.main;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Configuration;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
data:text/html,
<style type="text/css">
#e {
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
font-size:16px;
}