Skip to content

Instantly share code, notes, and snippets.

View fulicat's full-sized avatar

Jack Chan fulicat

  • Social Power Information Technology(Shanghai) Co.,Ltd.
  • Shanghai, China
View GitHub Profile
@fulicat
fulicat / format-detection.html
Created March 11, 2024 09:54 — forked from yuezk/format-detection.html
HTML format-detection meta tag
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="date=no">
<meta name="format-detection" content="address=no">
<meta name="format-detection" content="email=no">
@fulicat
fulicat / postFakeAppleID-Parameter Ver
Last active January 9, 2024 07:05 — forked from chitanda/postFakeAppleID-Parameter Ver
循环往钓鱼网站库里写虚假帐号和密码。目前自动模式只支持form表格提交的钓鱼网站。使用方法:在钓鱼网站页面打开浏览器开发者工具,将下面的代码复制到`console`中运行即可。自定义效果的话只需要按照函数说明的样式填写四个参数即可。eg loopPost(10,12,2000,2000)
/**
* [loopPost 循环往钓鱼网站库里写虚假帐号和密码。目前自动模式只支持form表格提交的钓鱼网站]
* @param {[type]} min [帐号和密码的最小长度,默认为6]
* @param {[type]} max [帐号和密码的最大长度,默认为12]
* @param {[type]} timeGap [发送数据的时间间隔,单位为ms,不需要填写单位。默认为500]
* @param {[type]} times [一共发送的虚假帐号个数,默认为5000]
* @return {[type]} [description]
*/
function loopPost(min,max,timeGap,times){
@fulicat
fulicat / nginx-proxy_pass
Created August 23, 2019 05:11
nginx代理授权验证访问的站点(伪造User-Agent、Cookie验证)
server {
listen 66;
location / {
# 允许跨域
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
proxy_set_header X-Real-IP $remote_addr;
@fulicat
fulicat / webpack.nginx.conf
Created August 23, 2019 02:47 — forked from SiZapPaaiGwat/webpack.nginx.conf
webpack-dev-server configuration in nginx on development server
upstream ws_server {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name 10.1.2.225;
location / {
proxy_pass http://ws_server/;
@fulicat
fulicat / default.conf
Created May 17, 2019 07:42
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@fulicat
fulicat / .bash_profile
Created May 3, 2016 15:22
Install NGINX, PHP-FPM (5.5.6), Mongo and MySql
#############################################################################
# current prompt
#############################################################################
# \d – Current date
# \t – Current time
# \h – Host name
# \# – Command number
# \u – User name
# \W – Current working directory (ie: Desktop/)
# \w – Current working directory, full path (ie: /Users/Admin/Desktop)
@fulicat
fulicat / export-html-table-to-excel.md
Created January 13, 2016 03:03 — forked from umidjons/export-html-table-to-excel.md
Export HTML table to Excel in AngularJS

Export HTML table to Excel in AngularJS

myApp.factory('Excel',function($window){
		var uri='data:application/vnd.ms-excel;base64,',
			template='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
			base64=function(s){return $window.btoa(unescape(encodeURIComponent(s)));},
			format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p];})};
		return {