|\1|' |
+ grep -Ev '(^Tabel van|^Lijst van|Nederland)'
+```
+这个脚本可以从维基百科上获取荷兰基层政权的列表。几年前我写了这个临时的脚本,用来快速生成一个数据库,到现在它仍然可以正常运行,当时写它并没有花费我多少精力。但要用 Ruby 完成同样的功能则会麻烦得多。
+
+现在来说说 shell 的缺点吧。随着代码量的增加,你的脚本会变得越来越难以维护,但你也不会想用别的语言重写一遍,因为你已经在这个 shell 版上花费了很多时间。
+我把这种情况称为“Shell 脚本编程陷阱”,这是[沉没成本谬论](https://youarenotsosmart.com/2011/03/25/the-sunk-cost-fallacy/)的一种特例(LCTT 译注:“沉没成本谬论”是一个经济学概念,可以简单理解为,对已经投入的成本可能被浪费而念念不忘)。
+实际上许多脚本会增长到超出预期的大小,你经常会花费过多的时间来“修复某个 bug”,或者“添加一个小功能”。如此循环往复,让人头大。
+如果你从一开始就使用 Python、Ruby 或是其他类似的语言来写这个程序,你可能会在写第一版的时候多花些时间,但以后维护起来就容易很多,bug 也肯定会少很多。
+以我的 [packman.vim](https://github.com/Carpetsmoker/packman.vim) 脚本为例。它起初只包含一个简单的用来遍历所有目录的 `for` 循环,外加一个 `git pull`,但在这之后就刹不住车了,它现在有 200 行左右的代码,这肯定不能算是最复杂的脚本,但假如我一上来就按计划用 Go 来编写它的话,那么增加一些像“打印状态”或者“从配置文件里克隆新的 git 库”这样的功能就会轻松很多;添加“并行克隆”的支持也几乎不算个事儿了,而在 shell 脚本里却很难实现(尽管不是不可能)。事后看来,我本可以节省时间,并且获得更好的结果。
+出于类似的原因,我很后悔写出了许多这样的 shell 脚本,而我在 2018 年的新年誓言就是不要再犯类似的错误了。
+# 附录:问题汇总
+需要指出的是,shell 编程的确存在一些实际的限制。下面是一些例子:
+- 在处理一些包含“空格”或者其他“特殊”字符的文件名时,需要特别注意细节。绝大多数脚本都会犯错,即使是那些经验丰富的作者(比如我)编写的脚本,因为太容易写错了,[只添加引号是不够的](https://dwheeler.com/essays/filenames-in-shell.html)。
+- 有许多所谓“正确”和“错误”的做法。你应该用 `which` 还是 `command`?该用 `$@` 还是 `$*`,是不是得加引号?你是该用 `cmd $arg` 还是 `cmd "$arg"`?等等等等。
+- 你没法在变量里存储空字节(0x00);shell 脚本处理二进制数据很麻烦。
+- 虽然你可以非常快速地写出有用的东西,但实现更复杂的算法则要痛苦许多,即使用 ksh/zsh/bash 扩展也是如此。我上面那个解析 HTML 的脚本临时用用是可以的,但你真的不会想在生产环境中使用这种脚本。
+- 很难写出跨平台的通用型 shell 脚本。`/bin/sh` 可能是 `dash` 或者 `bash`,不同的 shell 有不同的运行方式。外部工具如 `grep`、`sed` 等,不一定能支持同样的参数。你能确定你的脚本可以适用于 Linux、macOS 和 Windows 的所有版本吗(无论是过去、现在还是将来)?
+- 调试 shell 脚本会很难,特别是你眼中的语法可能会很快变得记不清了,并不是所有人都熟悉 shell 编程的语境。
+- 处理错误会很棘手(检查 `$?` 或是 `set -e`),排查一些超过“出了个小错”级别的复杂错误几乎是不可能的。
+- 除非你使用了 `set -u`,变量未定义将不会报错,而这会导致一些“搞笑事件”,比如 `rm -r ~/$undefined` 会删除用户的整个家目录([瞅瞅 Github 上的这个悲剧](https://github.com/ValveSoftware/steam-for-linux/issues/3671))。
+- 所有东西都是字符串。一些 shell 引入了数组,能用,但是语法非常丑陋和费解。带分数的数字运算仍然难以应付,并且依赖像 `bc` 或 `dc` 这样的外部工具(`$(( .. ))` 这种方式只能对付一下整数)。
+
+# 反馈
+你可以发邮件到 ,或者在 [GitHub 上创建 issue](https://github.com/Carpetsmoker/arp242.net/issues/new) 来向我反馈,提问等。
+
+---
+
+译者: [jdh8383](https://linux.cn/lctt/jdh8383)
+翻译:
+源:[The shell scripting trap](https://arp242.net/weblog/shell-scripting-trap.html)
diff --git a/_posts/2019-04-27-antiban.md b/_posts/2019-04-27-antiban.md
new file mode 100644
index 0000000..02e60d2
--- /dev/null
+++ b/_posts/2019-04-27-antiban.md
@@ -0,0 +1,60 @@
+---
+layout: post
+title: Mayx的Anti-Ban计划
+tags: [Mayx, Anti-Ban]
+---
+
+经过研究,网关管理没什么好怕的!
+
+# 起因
+ 众所周知,由于某些原因,互联网总是被上层网关所限制,所以为了解决这个问题,我研究了一下Ban的原理和Anti-Ban的方法。
+
+# Ban的原理
+ Ban网站的原理大概分为以下几点:
+ 1.DNS缓存污染(Ban域名)
+ 2.IP地址或传输层端口封锁(BanIP)
+ 3.TCP重置攻击
+
+ 具体内容请自行前往[Wikipedia](https://zh.wikipedia.org/wiki/%E4%BA%92%E8%81%94%E7%BD%91%E5%AE%A1%E6%9F%A5
+)自行查询(这个链接可没有特指哦~),在此不再详述。
+
+# Anti-Ban的方案
+## 针对Ban域名的方案
+ DNSSEC、DNSCrypt、DoT、DoH等等都可以解决这个问题,或者是不通过DNS,直接获得IP,然后发送Host头来获取网页内容也可以。我的想法是建立一个本地Proxy,先通过前面几种方案获得IP,然后发送Host,这里需要注意的是要通过HTTPS发送但是不使用SNI,因为SNI是不加密的,而且用代理就没必要一定要获得正确的证书。
+ 防火墙会对SNI进行拦截,所以需要注意。
+
+## 针对BanIP的方案
+ BanIP是真的绝,因为网络控制毕竟在网关,Ta要丢包谁也没办法,不过可以试试CloudFlare,CloudFlare可以不使用原网站的IP,而且很多网站都使用CloudFlare,所以BanCloudFlare的IP肯定不是好选择。
+
+## TCP重置攻击
+ HTTPS基本上可以避免这个问题,除了会受SNI没加密的影响(TLS1.3可解),但是证书……没关系,靠本地Proxy对证书的要求不是很多。这个解决方案基本上就是加密,让网关不知道你在干什么,也就不能对你发RST包了。
+
+# 计划
+ 制作一个本地Proxy小程序,用Python是个不错的选择,绕过DNS和TCP Reset,再配上CloudFlare,基本上网关应该就Ban不了你了。
+ 不过Python的学习成本还挺高的,感觉比PHP难……回头有时间可以试试看。
+
+# 结果
+ Python对我来说果然还是太难了QAQ,所以,我觉得使用Nginx就够用了,配置如下:
+```
+location / {
+ proxy_pass https:// #填写目标IP;
+ proxy_redirect off ;
+ proxy_set_header Host #填写目标域名;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header REMOTE-HOST $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_connect_timeout 300; #跟后端服务器连接超时时间,发起握手等候响应时间
+ proxy_send_timeout 300; #后端服务器回传时间,就是在规定时间内后端服务器必须传完所有数据
+ proxy_read_timeout 600; #连接成功后等待后端服务器的响应时间,已经进入后端的排队之中等候处理
+ proxy_buffer_size 256k; #代理请求缓冲区,会保存用户的头信息以供nginx进行处理
+ proxy_buffers 4 256k; #同上,告诉nginx保存单个用几个buffer最大用多少空间
+ proxy_busy_buffers_size 256k; #如果系统很忙时候可以申请最大的proxy_buffers
+ proxy_temp_file_write_size 256k; #proxy缓存临时文件的大小
+ proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
+ proxy_max_temp_file_size 128m;
+}
+```
+ 果然,搞事情还是用自己熟悉的搞比较好~23333
+
+# 事实
+ 我果然还是图样图森破了~我想的方案其实就是[域前置](https://zh.wikipedia.org/wiki/%E5%9F%9F%E5%89%8D%E7%BD%AE),所以,该计划作废QAQ
diff --git a/_posts/2019-05-03-origip.md b/_posts/2019-05-03-origip.md
new file mode 100644
index 0000000..6c84a93
--- /dev/null
+++ b/_posts/2019-05-03-origip.md
@@ -0,0 +1,19 @@
+---
+layout: post
+title: 如何“人肉”服务器?
+tags: [服务器, CDN, IP]
+---
+
+没错,我就是来安利Censys的!
+
+# 起因
+ 当今有不少网站都喜欢在外面套CDN,因为CDN既能加速,又能节约服务器带宽,还能保护服务器(没错,说的就是Cloudflare,不过不止Ta一家)。但是用了CDN后就不知道源站IP了,这还是挺糟糕的,那怎么办呢?
+
+# 方案
+ 不错,接下来该[Censys](https://censys.io)出场了,假如我对[ESUWiki](https://esu.wiki)感觉很不爽 ~~(我花火学园服务器加域名一年也花不了$100,你ESUWiki倒好,一年$1000+,是在搞什么?)~~ ,然后我发现Ta也套了一层Cloudflare。好,那么接下来就让我们打开Censys搜一下Ta吧!
+ 以esu.wiki为关键词搜索,搜到IP:`149.56.110.126` 然后实际访问一下,果然跳转到了ESUWiki,看来就是Ta了?
+ 不过好像也不完全是这样,Ta先跳到,然后才跳到,这就很麻烦了……算啦,反正这个服务器肯定和ESUWiki脱不了干系~
+
+# 结果
+ 通过Censys可以找到不少Cloudflare后面的IP,但也不代表这就没救了,只要设置防火墙白名单就能解决!
+ Censys还有更多功能,像端口扫描之类的都可以,虽然也有其他类似的网站,不过既然Censys用的顺手, ~~而且名字又好听23333,~~ 所以,就好好用Ta吧!
diff --git a/_posts/2019-05-12-baidu.md b/_posts/2019-05-12-baidu.md
new file mode 100644
index 0000000..0c89172
--- /dev/null
+++ b/_posts/2019-05-12-baidu.md
@@ -0,0 +1,21 @@
+---
+layout: post
+title: 如何不使用百度App打开搜索结果?
+tags: [百度, 不使用]
+---
+
+ 在中国,还是百度用的多啊~
+
+# 起因
+ 不知何时起,百度的搜索结果几乎都要下载App才能查看,虽然不是很喜欢CSDN,但是百度全是CSDN的内容……百度用了很多年也实在是没心用其他的搜索引擎,但是百度App做的是公认的烂,实在不想用。
+ 对于这个问题,我该怎么办呢?
+
+# 研究
+我发现,在百度跳转页面的地址里,有一个参数叫做`web_url`,这记录了实际要跳转的页面,虽然用插件应该更好,但是我不会~,所以我想了想,打算用JS解决这个问题。
+
+# 代码
+ [baidu.html](https://raw.githubusercontent.com/Mabbs/mabbs.github.io/master/baidu.html)
+
+# 用法
+ 打开[Baidu移动页面转换器](https://mabbs.github.io/baidu.html),然后打开百度移动版搜索的结果,一般要求下载百度App的URL开头是`mbd.baidu.com`。复制这个URL,粘贴到转换器里,提交后就会自动跳转到真正的页面了。
+
diff --git a/_posts/2019-05-27-wikipic.md b/_posts/2019-05-27-wikipic.md
new file mode 100644
index 0000000..98c3478
--- /dev/null
+++ b/_posts/2019-05-27-wikipic.md
@@ -0,0 +1,37 @@
+---
+layout: post
+title: 使用PHP批量下载Mediawiki站点的图片
+tags: [PHP, Mediawiki, 图片]
+---
+
+ 又是万能的PHP!不过还是Mediawiki API的功劳
+ 最近我为了备份一下[某个Wiki站](http://zh.moegirl.org/)(Ta们把R18名字空间的东西删的一干二净 ~~后来才知道原来转移到了[一个Wiki上](https://www.hmoegirl.com/),真的是好久没关注了~~ ),然后学习了一下Mediawiki API来下载整个Wiki(Ta们把站点导出也给弄没了QAQ)
+ 文本很好下载,但是Mediawiki的图片我不知道存在哪里,API文档翻烂了也没找到把图片解析成地址的API,那怎么办呢?
+
+# 解决方案
+ “解析”?emmmm……parse?不错,正好有这么一个action,好的,那就这样搞吧!
+
+# Code
+```php
+
+```
+
+# P.S.
+如果需要获取该Wiki的所有图片,可以从`api.php?action=query&list=allimages`这里获取。
diff --git a/_posts/2019-05-30-exam.md b/_posts/2019-05-30-exam.md
new file mode 100644
index 0000000..4a99d5d
--- /dev/null
+++ b/_posts/2019-05-30-exam.md
@@ -0,0 +1,19 @@
+---
+layout: post
+title: 高考即将来临
+tags: [高考]
+---
+
+ 都要高考了,看什么Mediawiki API文档?!对此,我也实在是无言以对。而且[上一篇博客](/2019/05/27/wikipic.html)写的那个代码实在是太智障了,就和我现在在高考(2019.06.07)马上来临时还在智障的写着博客一样的智障,而更加智障的是,我的成绩那么差,差本来就很智障,而我现在的行为可谓是智障中的智障,再加上看了文档后写的那智障代码,我真不知道该怎么描述自己的智障了……
+
+# [上一篇博客](/2019/05/27/wikipic.html)的智障之处
+ 多少图片就要请求多少次,简直是太智障了吧!为什么不一次性POST过去,然后用`preg_match_all`一解析不就完事了嘛!还非得等好几分钟一个一个解析那些地址……
+
+# 现在的智障之处
+ 2019年高考日的倒计时:
+距今还有8天 (2019年06月07日 星期五,己亥年(猪年)五月初五)
+这就不用解释了吧!
+
+# 怎么办?
+ ~~我能怎么办?我也很绝望啊~~~
+ 如果以后有工作的话,说不定会变成工作狂吧(LOL)!
diff --git a/_posts/2019-06-10-cheat.md b/_posts/2019-06-10-cheat.md
new file mode 100644
index 0000000..36542bc
--- /dev/null
+++ b/_posts/2019-06-10-cheat.md
@@ -0,0 +1,227 @@
+---
+layout: post
+title: Mayx被外国人骗了?!
+tags: [Mayx, 外国人, 骗子]
+---
+
+ 简直不可思议,我要把这个锅扔给百度翻译!~~(百度翻译表示不接这个锅23333)~~
+
+# 事件发展
+ 这个事件发生在高考前,现在高考结束了来总结一下
+ 有一天,有一个叫做[Lori Robinson](mailto:lori.j.robinson@usa.com)的外国人给我发了一封邮件,内容如下:
+
+> Hello dear,
+>
+> Thanks so much for coming into my life the time I needed you most. I have decided to spend the rest of my energy in building a home with you, firstly, we have to accept our faith that this journey of love will not be so easy or rosy, but be assured that nothing good comes very easy and we need to be strong and be ready to stand for each other. I have decided to moving my assets to your country so I can forward for my retirement but I want to take an official leave so I can visit you in your country ,I have made some good fortune in this war zone, You know I offer contract security network for the crude oil lifting in Iraq and also I fund local miners to mine and extract gold and diamonds, at least 150 people are working in my mining concession legally given to me by the Afghan government, in return I have an NGO housing, clothing, feeding and education 100 motherless kids.
+>
+> I am interested to moving my generated funds, gold and diamonds and The funds is $3.5,000,000 ( Three Million, five hundred thousand US Dollars) the Gold is 1730kgs of gold and the diamonds is 25,000carats parcel of uncut diamonds,I am a woman who does things according to the guidelines of my spirit, you was chosen to be my partner and also to help me to get this box, because my mind testify that you are the right person for me and I know you will not disappoint me , I chose to use you as a partner in this deal, because I'm not allowed to send the package to all of my friends or relatives as i am still in the military outside the United States, though at the end if i send anything to the USA it will be suspicious and I be will query for the action, so I chose you because I know you are the ideal person for this deal as a foreigner who is not a US citizen.
+>
+> Please put away the fear or doubt, and make up your mind to help me in this matter, I promise you will not regret it been part of this matter, I do not know what else I can say to convince you and make you believe me, but I I pray that God will give you the grace to make up your mind,Once again I want you to know that there is no complication in the way, if you follow my instructions everything will go smoothly and well in the process of receiving the case, please try to keep this secret matter between you and me, to avoid making space to the enemy, because if you and I should agree on one thing with our heart with seriousness we must surely achieve success in the end.
+>
+> Please I want to mention once again that any disposition toward this project is intact between each of us and in no circumstances should you let the security company to know the contents of the box, remember that the box was registered as a diplomat for the package security company and that is what they believe to be in the box, so you should not let them know that the content of the box is money.
+>
+> Please I will like you to send your information to me so that I can pass on to security cargo company to allow them to proceed to your country for the final delivery of cash at your door step. Send your information to me urgently;
+>
+> Your full names: ...........
+Your age: ...........
+Your Address: ..............
+ZIP CODE: .................
+City: ......................
+Country: ...................
+Phone number: .........
+Profession: ................
+>
+> Once i am done with my official assignment, I will come to meet you one on one in your country, and after that we will have to decide how to carry on with our lives, but for now, please, I appreciate us to pay more attention to this issue, you receive the delivery and keep it safe until I come over to discuss with you on how best to invest it in your country
+>
+> I await your immediate response
+Kiss
+Loris Robinson
+
+ emmmm写的不错,不过看不太懂……算啦,丢到百度翻译上看看吧,结果大意就是她有好多好多钱、钻石、金块和矿,然后想给我,让我把我的地址发给她,好让她邮过来。
+ 不过这不是最重要的,重要的是她想和我结婚?!要知道我才高中刚毕业,于是我向她提出了这个疑问,得到的回答是:
+
+> Remember that distance or color does not matter even our age but love matters a lot in life , I am a woman who does things according to the guidelines of my spirit, you was chosen to be my partner and also to help me to get this fund, because my mind testify that you are the right person for me and I know you will not disappoint me , I chose to use you as a partner in this deal, because I'm not allowed to send the package to all of my friends or relatives as i am still in the military outside the United States.
+
+ 哦,说的很有道理的样子,年龄无所谓,那是不是Lolicon也可以满足了?反正我的信息也值不了多少钱,那就给吧,于是我给她发了我的收件地址。然后她给我回信:
+
+> PLEASE CONTACT THE TRADING COMPANY NOW
+>
+> I have contacted the courier company (Express Delivery Parcel Service ) that they are reliable and reliable.Once again I want you to know that there is no complication in the way, if you follow my instructions everything will go smoothly and well in the process of receiving the case, please try to keep this secret matter between you and me, to avoid making space to the enemy, because if you and I should agree on one thing with our heart with seriousness we must surely achieve success in the end.
+>
+> This delivery is going to be handle legally by the Express Delivery Parcel Service and there will be no form of risk in the process and the money will be sealed pack safely in a Diplomatic Box and the Diplomatic Box will be deliver to you in your country by a Diplomat. I have decide to compensate you with 30% of the total money once after the $3.5,000,000 ( Three Million, five hundred thousand US Dollars), the Gold is 1730kgs of gold and the diamonds is 25,000carats parcel of uncut diamonds.is delivered to you, while the rest balance shall be my investment capital in your country.
+>
+> Please I want to mention once again that any disposition toward this project is intact between each of us and in no circumstances should you let the security company to know the contents of the box, remember that the box was registered as a diplomat for the package security company and that is what they believe to be in the box, so you should not let them know that the content of the box is money.
+>
+> I have chosen this fast service so that you can receive the package within 72 hours after departure, bring the package to your home address, the bank have registered it to Express Delivery Parcel Service shipping and handed it to the company through their agent here, The company is with all your details,
+Here at our military base, the government provides everything we need, our paycheck is paid to our bank account in the United States until we return home after the mission as long as I stay in Afghanistan, I can not receive or send The money you paid , I have paid for the registration of the shipment and I placed a shipment order to the shipping company for delivery of the box at your door step in your country. Please note that the diplomat does not know the contents of the box for security reasons and below is the company's contact details,
+Please contact them now, tell them your name and country, that you are the right person to receive the cargo from Lory Robinson, a US Army officer.
+>
+> Fill in this information and send it to the security company and inform me:
+> ```
+> -------------------------------------------------
+> My name is ............. Permanent resident ........................ I'm communicating with Lori's report Robinson, Email:
+> lori.j.robinson@usa.com The company registers the shipment to the following address:
+> Full names:
+> Age:
+> Address:
+> Occupation:
+> POSTCODES:
+> City:
+> Country:
+> Phone number:
+> Profession:
+> --------------------------------------------------
+> The delivery company's information is below:
+> GLOBAL FASTWAY COURIER SERVICES / SAFETY COMPANY.
+> E-MAIL: express.global@uymail.com
+> E-MAIL: express.global@linuxmail.org
+> Av. Del General Perón, 32
+> 28008 Madrid,
+> Spain
+> Tel. +34 612 520330
+> DIRECTOR OF PARTICIPATION
+> Mr. William Anderson
+> ----------------------------------------------- --- -------
+> ```
+> Just write to the company in the above email immediately, the company will be provided as soon as you contact them, I have begun with the agreement to meet you in your country before it expires month.
+Allow me to stop so far and expect to receive your positive feedback once you contact the company. God bless you and your family.
+>
+> Love you and Kisses.
+Love and care from,
+Lori Robinson
+
+ 大意就是让我把我的信息再转发给邮递公司吧,反正信息已经发过一次了,那再发一次也无所谓了吧,于是我给这个所谓的邮递公司发了我的信息,那个公司给我回复:
+
+> EUROPE HEAD OFFICE,
+GLOBAL BRAND EXPRESS COURIER SERVICES,
+INTERNATIONAL AND LOCAL SHIPPING SERVICES,
+Av. del General Perón, 32
+28008 Madrid,
+Spain,
+Tel +34 612 520330,
+E-mail:express.global@uymail.com
+>
+> HE SHIPMENT / DELIVERY SITUATION REPORT OF YOUR CONSIGNMENT IN SPAIN:
+>
+> ATTENTION:
+ADDRESS : .....
+CITY : ..............
+COUNTRY .............China
+TELL ................+86
+>
+> HE SHIPMENT / DELIVERY SITUATION REPORT OF YOUR CONSIGNMENT IN SPAIN:
+>
+> The above subject matter refers,
+>
+> The management of Global Fast Way Courier Service want to notify you that your consignment/one cargo box has been registered with our shipment company with Registration ID: AFGH55870199SJH for delivery to your country as soon as the necessary shipment logistics and requirement are obtained.
+>
+> we have earlier been informed about you by Your partner Loris Robinson , that she appointed you as the beneficiary to receive her shipment labelled (FAMILY TREASURE) a CONSIGNMENT/ONE CARGO BOX to your destination.
+>
+> OUR SERVICE TYPE DELIVERY DURATION CHARGES/FEES:
+>
+> Handling & Delivery Cost......570 Euro
+Insurance..........................690 Euro
+Total Cost........................1,260 Euro
+Length of Days...........................Two Days
+Order Number................................UESTNL
+>
+> Finally you are required to send the shipment and Insurance fee of 1,260 Eur to enable a proper facilitation and delivery of your consignment to your address in your country and note that the charges are best substantial because of the insurance cover we have undertaken in case of loss, damage or package breakage of your high priority consignment. We assume all responsibilities in case of any eventualities.
+>
+> YOU CAN MAKE THE PAYMENT TO US THROUGH MONEYGRAM WITH OUR ACCOUNT AUDITOR'S INFORMATION,BUT THAT WILL BE WHEN YOU SEND US YOUR SCANNED COPY OF YOUR INTERNATIONAL PASSPORT OR DRIVER’S LICENSE,BEFORE WE CAN SEND YOU OUR ACCOUNT AUDITOR'S INFORMATION YOU WILL USE TO SEND THE 1,260 Euro.
+> Thanks for your Co-operation.
+> WE PROMISE TO GRANT THE BEST OF OUR SERVICES TO ALL OUR CUSTOMERS & YOUR SATISFACTION IS OUR REPUTATION.
+>
+> Yours Faithfully,
+Global Fast Way Courier Services
+DIRECTOR IN CHARGE
+Mr William Anderson
+Tel +34 612 520330
+
+ 然后还非常用心的配了一张快递单:
+
+
+
+ 注:由于隐私原因,涉及隐私的地方已经被删除 ~~(尽管大家都知道我的手机号)~~
+ 这个邮件当时也没细看,然后就给Lori Robinson说了我已经给他们发了我的信息,过了几天,她给我发:
+
+
+> Hello my love how are you doing ? Am so sorry you did not hear from me i was on duty i have not hear from you today i hope all is well with you? I plead with you in the name of God to try your best to negotiate with the security delivery company I'm worried because I can't live without you right here. You're my everything and Last night I did not sleep am worry about you my love.
+>
+> The delivery of the box to you holds a lot for us in the future. Once you receive the box, I will commence on the process of tendering resignation and once it is granted, I will come to your country for the sharing of the fund and planning a better future and life together. I cannot wait to be on your arms.
+>
+>
+> Kiss
+> Lori J Robinson
+
+ 嗯,不错,她又强调了一遍这个邮件,顺带着表现了一下关心,不过我当时在学校,然后我就和她说我在学校,不方便收Email。
+ 当我回到家里,那个破公司给我发了一份邮件:
+
+> EUROPE HEAD OFFICE,
+GLOBAL BRAND EXPRESS COURIER SERVICES,
+INTERNATIONAL AND LOCAL SHIPPING SERVICES,
+Av. del General Perón, 32
+28008 Madrid,
+Spain,
+Tel +34 612 520330,
+E-mail:express.global@uymail.com
+>
+> ATTENTION: ,
+>
+>YOU HAVE HAVE TO SEND US YOUR SCANNED COPY OF YOUR INTERNATIONAL PASSPORT OR DRIVER’S LICENSE AND YOU CAN USE THIS INFORMATION AND SEND THIS MOREY TO OUR OFFICE 1,260 EURO AS SOON AS YOU MAKE THE PAYMENT SEND US THE PAYMENT DETAILS TO NABLE US PROCESS AND COMMECE YOUR SHIPMENT TO ARRIVE AT YOUR DOOR STEI IN YOUR COUNTRY WITHIN THE NEXT 3 WORKING DAYS. THE DATE AND CONFIRMED OF ARRIVAL WILL BE ISSUED TO YOU. YOU CAN MAKE THE PAYMENT TO US WITH OUR ACCOUNT AUDITOR'S INFORMATION AN STATED BELOW:
+>
+> BANK : BBVA.
+ACC/IBAN: ES3501822659150201596186.
+Swift : BBVAESMMXXX.
+ACC NAME : ARCHER SAMUEL.
+Address: Bulevard Ciudad de VICAR 1245.
+Spain.
+>
+> Thanks for your Co-operation.
+WE PROMISE TO GRANT THE BEST OF OUR SERVICES TO ALL OUR CUSTOMERS & YOUR SATISFACTION IS OUR REPUTATION.
+>
+>Yours Faithfully,
+Global Fast Way Courier Services
+DIRECTOR IN CHARGE
+Mr William Anderson
+Tel +34 612 520330
+
+ 啊,要交钱的么……~~于是Mayx就立马付款,上当受骗了~~(才怪,我哪有那么多钱?)到这里一看就知道是骗子了,其实之前那个快递单仔细一看就是假的,那个条形码画的乱七八糟……
+ 不过我还想聊下去,于是我给Lori Robinson说我付不起啊!于是她给我回复:
+
+> Hello sweetheart,
+>
+>Hello how are you doing and your school i hope you are doing good in school? I am very sorry my darling for late response to you, I had a hectic day and was very sick that was why I couldn't get back to you, but I am fine and healthy again , Actually you are really trying for the success of this delivering box to you, in fact i thank you for all the efforts you have put on this already.But one thing you must know and understand is this, the express global company does not know that the content of the box is money and on no account should you tell them that what is inside the box is money, i received massage from delivery company the asking you to pay the fee of 1260 .
+>
+>I beg you to do anything within your means to comply with the security company so that you will receive this box, I have no access to money here and i do not know what else to do in this matter, the successful delivery of this box to you will determine how soon we will meet.
+The U.S government provides everything that we need in the military base here, our salary are being paid into our Account via Bank of American Military banking in the United States, so i only have access to my account in U.S, but that will be after our assignment here in Syria, that's why i cannot make any payment and i decided to ask for your help. I cannot access my bank account in America while in the battle field, I can only access my account when I am back to the states for security reasons, please understand me and do something OK.
+>
+> My dear, i know you might not be happy with the response of the security delivery company asking you for some payment. so please i am counting and depending on you for the success of the fund. I believe in your ability to handle the project amicably with no delay so please i need your cooperation here to complete the security delivery company as soon as possible. I hope to hear from you as soon as you make the payment to them.
+>
+> And remember this is our future and our love that we are talking about OK,
+Please kindly look for means even if it means to borrow or sale something, do it to sort out the bill so that the security delivery company will deliver the box to you, once I come back I really want to see you so that we will build life together.
+>
+> Please you really have to try your best, you are the only hope i have now. and remember do not take this matter lighly.
+>
+> Once the delive the funds, to you I will come to meet you one on one in your country, and after that we will have to decide how to carry on with our lives, but for now, please, I appreciate us to pay more attention to this issue, you receive the delivery and keep it safe until I come over to discuss with you on how best to invest it in your country
+>
+> I await your immediate response
+Kiss
+Loris Robinson
+
+ 看这个意思是让我砸锅卖铁也要付这个钱?我可不干,然后她回复:
+
+> Dearest,
+>
+> Hello thanks you for your message you send to me,I plead with you in the name of God to try your best to negotiate with the security delivery company and pay the fee, At this very point we have no other option than to comply with the delivery company because if they open the box, it will be a very big problem for us. Sweetheart, please lets you do the needful at this very stage before the military seal on the box expires.
+>
+> I want you to kindly write to the security company and tell them the amount of money you have with you and plead with them that you will send the balance to them as soon as you receive the box. Tell them the amount you can pay presently no matter how little let us see their response.
+>
+>
+> I await your immediate response
+Kiss
+Loris Robinson
+
+ ……emmmm懒得理她了,于是这个事件到此为止。
+
+# 结果
+ Mayx没有任何损失,怎么能叫骗呢?可是她给我带来了希望,又给我绝望,是想当QB吗?(LOL)
diff --git a/_posts/2019-06-11-encrypt.md b/_posts/2019-06-11-encrypt.md
new file mode 100644
index 0000000..076d34b
--- /dev/null
+++ b/_posts/2019-06-11-encrypt.md
@@ -0,0 +1,8 @@
+---
+layout: encrypt
+title: Jekyll也可以加密文章啦!
+tags: [Jekyll, 加密]
+tips: 请输入Mayx
+excerpt: Jekyll赛高!
+---
+bbb68859d4e2a8a508932f48a440c894858154b96b3d5113a4488dd2425a709caf3795dcbd4aac25d9ab0f1628b85944cd69b28aae96bdb59a0c792cd9d93bf833e126f474642909164907daef803ecac7753ea5e85000521f80b85fa787e49d8b51faaef35ee728e007253b1a97880987127df248818f295da374a7c7d30950e3ad696f5ccb8c59fe274d4c3a5a3da65c35802d5c00d11be0936498ff4130fb61853bf9f0e8f28d446d612478edf050ebf826a293cd6941dacf40aea5482b74555c1daf052903e7cf6e5d5084842a47e80f31a11d3d542d3cdb4fa9dc20c9ce27f9b2c04fd31a79e1affd503316852073336dd8f446690c08335a93f8e19777ae4441d2d1dd37acd8039fae938f7eaf1a3173c5bd21e1b507d9522b517cd3dc0709bbbad11e0a7ca1f7bc7b8c40ecc20d765227b34d46d9c00c3ce928c1c561f4147f7e4ab975c9a8dc6bb1e10dea990b9a88abecf32046c5d52ea9f8025ce657d91ef35670c516df3d8e1c4f34fa6c4c90a3bb067981d380b3af65bf3273be699ff3831c62ce85de36f03b51f5e767
diff --git a/_posts/2019-06-22-counter.md b/_posts/2019-06-22-counter.md
new file mode 100644
index 0000000..e0fad06
--- /dev/null
+++ b/_posts/2019-06-22-counter.md
@@ -0,0 +1,130 @@
+---
+layout: post
+title: 如何自己写一个博客计数器
+tags: [计数器]
+---
+
+ 都怪LeanCloud,我得自己写计数器了!
+
+# 事件起因
+ 我之前用的博客计数器是用的LeanCloud作为后台制作的计数器,然后嘛……代码是抄的。结果最近[LeanCloud凉了](https://blog.avoscloud.com/6841/),这让我无法忍受,之前的代码我也看不懂,改也不会改……
+ 那好吧,我只好自己写计数器了。
+ 于是我花了很长时间,自己写了一个计数器,另外还得把原来的计数器信息转移过来……
+
+# 使用方法
+## 前端部分
+ 主页显示点击数:
+```html
+{% raw %}Hits: Loading...{% endraw %}
+```
+ 内页显示点击数:
+```html
+{% raw %} Hits: Loading...{% endraw %}
+```
+ JS代码:(需要Jquery)
+```js
+var auxiliaryHost = "你的域名";
+function showHitS(hits){
+ $.get(auxiliaryHost+"/counter.php?action=show&id="+hits.id,function(data){
+ hits.innerHTML=Number(data);
+ });
+}
+function showHitCount() {
+ var visitors=$(".visitors-index");
+ for(var i = 0; i < visitors.length; i++){
+ showHitS(visitors[i]);
+ }
+
+}
+function addCount() {
+var visitors=$(".visitors");
+ $.get(auxiliaryHost+"/counter.php?action=add&id="+visitors[0].id,function(data){
+ visitors[0].innerHTML=Number(data);
+ });
+}
+if ($('.visitors').length == 1) {
+ addCount();
+} else if ($('.visitors-index').length > 0){
+ showHitCount();
+}
+```
+ 2021.03.23更新:修复了一些BUG并且支持异步了
+
+## 后端部分
+ MySQL建表:
+```sql
+CREATE TABLE `counter` (
+ `url` char(50) NOT NULL,
+ `counter` int(11) NOT NULL,
+ UNIQUE KEY `url` (`url`)
+);
+```
+ PHP:
+```php
+query($sql);
+
+if ($result->num_rows > 0) {
+ while($row = $result->fetch_assoc()) {
+ echo $row["counter"];
+}
+} else {
+
+$sql = "INSERT INTO `counter` (`url`, `counter`)
+VALUES ('".$hid."', '0')";
+
+if ($con->query($sql) === TRUE) {
+ echo "0";
+}else{
+echo "Error";
+}
+
+}
+
+} elseif ( $_GET['action'] == "add" ) {
+
+
+$sql = "SELECT * FROM `counter` WHERE `url` = '".$hid."' ";
+$result = $con->query($sql);
+if ($result->num_rows > 0) {
+ while($row = $result->fetch_assoc()) {
+$sql = "UPDATE `counter` SET `counter` = '".($row["counter"]+1)."' WHERE `url` = '".$hid."'";
+$con->query($sql);
+ echo ($row["counter"]+1);
+}
+} else {
+
+$sql = "INSERT INTO `counter` (`url`, `counter`)
+VALUES ('".$hid."', '1')";
+
+if ($con->query($sql) === TRUE) {
+ echo "1";
+}else{
+echo "Error";
+}
+
+}
+
+
+} else {
+header("HTTP/1.1 301 Moved Permanently");
+header("Location: https://mabbs.github.io");
+}
+mysqli_close($con);
+```
+
+# 结果
+ 看来还是自己写代码放心,至少服务是自己维护的,不像垃圾LeanCloud坏掉之后我就无能为力了……
+ 不过说实话我根本不会JS(虽然我之前说我学这个),编写之中遇到了不少问题,所以在此感谢各位帮助我的各位大佬们,让我最终完成了这个计数器。
diff --git a/_posts/2019-06-24-up.md b/_posts/2019-06-24-up.md
new file mode 100644
index 0000000..dbbc429
--- /dev/null
+++ b/_posts/2019-06-24-up.md
@@ -0,0 +1,100 @@
+---
+layout: post
+title: 如何利用MySQL数据库制作一个图站
+tags: [MySQL, 数据库, 图站, PHP]
+---
+
+最近白嫖了一个500GB的数据库,想想怎么利用一下?
+
+# Talk is cheap,show me the code
+
+ 数据库建表:
+```sql
+CREATE TABLE `FileUP` (
+ `ID` int(11) NOT NULL AUTO_INCREMENT,
+ `Name` text NOT NULL,
+ `File` longblob NOT NULL,
+ `Size` int(11) NOT NULL,
+ PRIMARY KEY (`ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=gb2312;
+```
+
+ PHP代码:
+```php
+query($sql);
+ if ($result->num_rows > 0) {
+ while($row = $result->fetch_assoc()){
+ Header ( "Content-type: application/octet-stream" );
+ Header ( "Accept-Ranges: bytes" );
+ Header ( "Accept-Length: " . $row["Size"] );
+ Header ( "Content-Disposition: attachment; filename=" . $row["Name"] );
+ echo $row["File"];
+ }
+}
+ else {
+ header('HTTP/1.1 404 NOT FOUND');
+}
+} else {
+echo 'Mayx图床
+