Skip to content

Instantly share code, notes, and snippets.

View 0polar's full-sized avatar

0polar

  • ZeroNet
View GitHub Profile
@0polar
0polar / list.txt
Last active June 17, 2019 08:50
List of Autonomous System Numbers (ASN) of commom VPS
AS16509 Amazon
AS45102 Alibaba
AS15169 Google
AS13335 Cloudflare
AS54290 Hostwinds
AS63949 Linode
AS14061 DigitalOcean
AS20473 Choopa (Vultr)
AS47583 Hostinger
AS51167 Contabo
@0polar
0polar / 1.txt
Last active April 15, 2019 06:21
support@support.digitalocean.com
NYC3 Emergency Droplet Migration 2019-04-12 20:00 UTC
Start: 2019-04-12 20:00 UTC
Hello,
We have identified an issue on the physical machine hosting one or more of your Droplets, which are listed below. In order to minimize disruption, we will be attempting a migration of the Droplets to a healthier physical machine. Throughout the migration, control panel and API events will not succeed for the affected Droplet(s) including power offs, resizes, and attempts to destroy the Droplet.
In order to minimize downtime, we will first attempt to perform live migrations in all possible cases. A live migration would result in no downtime, but minor performance decreases in disk I/O and a second or less of packet loss as the network is switched over to the new physical host.
Originally shared by Carter Gibson - 65 comments
I'm writing this knowing it will be my last post on Google+
From the day I was invited to the beta, I spent a lot of time trying to explain what drew me to this platform to others. Sometimes I'd do that to laughs. Other times to people who were genuinely curious. Every time people were legitimately dumbstruck that this platform could have so much influence on my life. From my journey here as a humble college student to a writer with over 1.2M followers to the Program Manager in charge of this platform's community and content, I've learned so much, had an incredible time along the way, and got to for some lifelong connections.
This post won't be another post trying to convince anyone why Google+ was worthwhile - or even ahead of its time. This will be a post about how much I appreciated the time we all spent here.
Google+ as a College Student
Google+ came out while I was senior in college. I was absolutely freaking out about what I was going to do with my li
@0polar
0polar / userdata.sh
Last active March 31, 2019 17:58
follow this link: https://m.do.co/c/af5c4718b77e, sign up, create 10 droplets, each with 1GB RAM & 3 vCPU
#!/bin/sh
cd /var
touch swap.img
chmod 600 swap.img
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img
echo "/var/swap.img none swap sw 0 0" >> /etc/fstab
sysctl -w vm.swappiness=5
@0polar
0polar / cloudflare_firewall_rule.lua
Last active March 25, 2024 06:08
Black list for user agent of Chinese web browsers, quick block all access from Chinese web browsers / 国产浏览器UA黑名单,一键屏蔽所有国产浏览器访问
(http.user_agent contains "QQ/")
or (http.user_agent contains "MicroMessenger")
or (http.user_agent contains "TaoBrowser")
or (http.user_agent contains "Redmi")
or (http.user_agent contains "XiaoMi")
or (http.user_agent contains "MiuiBrowser")
or (http.user_agent contains "HUAWEI")
or (http.user_agent contains "HONOR")
or (http.user_agent contains "OPPO")
@0polar
0polar / client_config_kcp.json
Last active January 6, 2023 15:24
v2ray config simplified
{
"log": {
"loglevel": "warning"
},
"inbounds": [{
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth"
}
00.00.bit 15DoUzapXLvwTxmjgSePYKiDWnsev7L4KK
00.bit 15DoUzapXLvwTxmjgSePYKiDWnsev7L4KK
www.0000.bit 1A1A1A19EiiERuJs72vgyTQv8rrYWgQoRF
0000.bit 1A1A1A19EiiERuJs72vgyTQv8rrYWgQoRF
000000000.bit 1FCKmw72Q7ioEtSefBvg6QCjSXLFLNSM5B
0000000000.bit 1FCKmw72Q7ioEtSefBvg6QCjSXLFLNSM5B
001002.bit 1N1VBLWkxsNC9oUHS3HVnPHBdtQngLTc7j
00111.bit 1QFEUKG7R5P91rneMJDUPmmJMChGvHVxtt
0054sec.bit 18ojEsmhYajchg9g435pf5WWKgqnTz6Kdv
010101.bit 112iQaJoXzdjk8gZPEKCmHbuWW29P6cxwjQ