Skip to content

Instantly share code, notes, and snippets.

View bfgits's full-sized avatar

Simon bfgits

  • Shenzhen
View GitHub Profile
JAVA_HOME=/usr/java/jdk1.8.0_73
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
update-alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_73/bin/java 100
update-alternatives --config java
update-alternatives --install /usr/bin/javac java /usr/java/jdk1.8.0_73/bin/javac 100
update-alternatives --config javac
@bfgits
bfgits / dd
Created April 25, 2017 06:18
linux dd command create a large file
dd if=/dev/zero of=/tmp/test bs=1M count=2048
dd
使用dd这个linux命令可以创建一定大小文件。
linux创建文件命令:dd命令
把指定的输入文件拷贝到指定的输出文件中,并且在拷贝的过程中可以进行格式转换。语法:
CODE:[Copy to clipboard]dd 〔选项〕
@bfgits
bfgits / webrtc.md
Last active April 28, 2017 08:33
webrtc setup

webrtc 配置过程

webrtc github URL

dev environment初步配置 (20170427)

  1. Install google sdk for python
@bfgits
bfgits / curl_check_web_access
Created May 26, 2017 06:19
使用Curl命令查看请求响应时间方法
curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}"\n" http://www.minniapp.net
time_namelookup:DNS 解析域名www.36nu.com的时间
time_commect:client和server端建立TCP 连接的时间
time_starttransfer:从client发出请求;到web的server 响应第一个字节的时间
time_total:client发出请求;到web的server发送会所有的相应数据的时间
@bfgits
bfgits / wooyun
Created July 3, 2017 07:10
wooyun
https://github.com/hanc00l/wooyun_public
虚拟机1:在2016年6月底爬的wooyun全部漏洞库和知识库内容,集成了Elasticsearch搜索,总共35G(压缩后约14G),网盘地址为: http://pan.baidu.com/s/1kVtY2rX ,提取密码:5ik7(8.5更新)
使用方法:
1、压缩包解压后是一个vmware虚拟机的镜像,可以由vmware直接打开运行;
2、由于在制作压缩包时虚拟机为“挂起”状态,当前虚拟机的IP地址可能和宿主机的IP地址段不一致,请将虚拟机重启后重新获取IP地址,虚拟机用户密码为hancool/qwe123;
3、进入wooyun_public目录,先用git更新一下到最新的代码git pull(如果提示merge冲突,先进行git reset --hard origin/master后再git pull);
Hacker tools
链接:http://pan.baidu.com/s/1hsQQOyK 密码:9tm9
@bfgits
bfgits / sslocal-command
Created July 18, 2017 06:13
sslocal command line script in zsh
#zsh alias
alias 'ss1=nohup sslocal -q -c ~/.ss-config1.json > /dev/null 2>&1 &'
kill-sslocal
cat /usr/local/bin/ks
#!/bin/bash
proxy_process_id=`ps -ef |grep -v grep |grep 'sslocal'|awk '{print $2}'`
#echo $proxy_process_id
download url is:: http://www.zimuku.net/download/OTE1NDl8ZTEzMWZhODk2MjY1NjcxNTg0YzliMDFjfDE1MDA4OTAyOTJ8OTVhNDgxYjZ8cmVtb3Rl
@bfgits
bfgits / migrate-redis.py
Created August 4, 2017 06:39 — forked from thomasst/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@bfgits
bfgits / qq.txt
Created August 11, 2017 12:05
qq旋风下载
http://www.lvyoubbs.com/home.php?mod=space&uid=4&do=blog&id=6711309