Skip to content

Instantly share code, notes, and snippets.

View gyk001's full-sized avatar

gyk001 gyk001

View GitHub Profile
#!name=健康河北
#!desc=健康河北
#!openUrl=https://github.com/app2smile/rules
[Rule]
DOMAIN,118.89.204.198,REJECT
IP-CIDR,118.89.204.198/32,REJECT,no-resolve
IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve
[Mitm]
opkg install lsof bind-dig
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
# 批量格式转换
for file in *.jpg; do convert $file dist/${file%%.*}.jpg; done
@gyk001
gyk001 / 0_reuse_code.js
Created February 1, 2016 08:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
@gyk001
gyk001 / SoapUI-Pro-5.0-Crack
Created July 16, 2014 05:31
SoapUI Pro 5.0.0 Crack
package com.eviware.soapui;
import java.awt.Dimension;
import java.io.File;
import java.io.InputStream;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
@gyk001
gyk001 / gist:7557096
Last active December 28, 2015 20:28
Linux下SQLPlus支持历史记录的工具rlwrap
[root@centos]~# yum install readline readline-devel
[root@centos]~# wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
[root@centos]~# tar -xzvf rlwrap-0.37.tar.gz
[root@centos]~# cd rlwrap-0.37
[root@centos]~/rlwrap-0.37# ./configure
[root@centos]~/rlwrap-0.37# make && make install
[root@centos]~/rlwrap-0.37# #测试一下,有如下输出说明安装成功
[root@centos]~/rlwrap-0.37# /usr/local/bin/rlwrap
Usage: rlwrap [options] command ...
@gyk001
gyk001 / gist:7527953
Created November 18, 2013 13:42
获取verycd上所有的ed2k下载链接, command+option+i ,粘贴到console里,回车,弹出框里就是所有链接,直接粘到迅雷里OK
urls = '';
$.each($('a[href^=ed2k]'),function(i,aa){
urls = urls +$(aa).attr('href')+'\n';
});
alert(urls);
@gyk001
gyk001 / sshd_config
Last active December 28, 2015 13:49
ssh远程登录输入密码之前等好久
vim /etc/ssh/sshd_config
# 添加或更改为如下配置
UseDNS no
GSSAPIAuthentication no
# 重启SSH服务
service sshd restart