This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type X *X | |
| func main() { | |
| var x X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <bits/stdc++.h> | |
| using namespace std; | |
| namespace Solve { | |
| template<class T> inline bool _min(T& data, const T& comp) { | |
| if (comp < data) { | |
| comp = data; | |
| return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Definition] | |
| _daemon = shadowsocks | |
| failregex = ^\s+ERROR\s+can not parse header when handling connection from <HOST>:\d+$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| src_color = (231, 20, 26) | |
| target_color = (0, 0, 0xFF) | |
| im = Image.open('9_019.png') | |
| w, h = im.size | |
| for x in range(w): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import time | |
| import datetime | |
| api_key = 'YOUR_APIKEY_HERE' | |
| url = 'https://api.linode.com/?api_key=%s&api_action=linode.create&PlanID=1&DatacenterID=8&PaymentTerm=1' % api_key | |
| sess = requests.Session() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # /etc/sysctl.conf - Configuration file for setting system variables | |
| # See /etc/sysctl.d/ for additonal system variables | |
| # See sysctl.conf (5) for information. | |
| # | |
| #kernel.domainname = example.com | |
| # Uncomment the following to stop low-level messages on console | |
| #kernel.printk = 3 4 1 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Start: Wed Apr 8 18:35:44 2015 | |
| HOST: Eve-PC Loss% Snt Last Avg Best Wrst StDev | |
| 1.|-- 175.186.104.1 0.0% 100 1.8 6.5 1.7 68.6 12.3 | |
| 2.|-- 10.250.1.29 0.0% 100 4.3 3.9 1.3 41.2 6.3 | |
| 3.|-- 10.6.0.253 0.0% 100 1.6 5.3 1.3 91.8 13.8 | |
| 4.|-- 140.207.196.1 0.0% 100 1.7 3.5 1.5 29.6 3.6 | |
| 5.|-- 211.95.77.29 0.0% 100 20.5 10.4 4.1 44.9 8.8 | |
| 6.|-- 140.207.207.201 0.0% 100 5.3 5.3 2.8 22.4 2.9 | |
| 7.|-- 139.226.195.205 0.0% 100 3.7 5.3 3.2 18.8 2.7 | |
| 8.|-- 139.226.193.33 63.0% 100 23.7 8.0 3.1 47.7 8.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name interface.bilibili.com; | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| resolver 114.114.114.114; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| # Author: Yifu Yu <[email protected]> | |
| import math | |
| import re | |
| import sys | |
| deg2rad = lambda deg : deg / 180.0 * math.pi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HOST: misaka.eve.moe Loss% Snt Last Avg Best Wrst StDev | |
| 1.|-- 10.8.14.105 0.0% 50 1.3 1.3 1.1 1.5 0.1 | |
| 2.|-- 10ge-1.04-c86.buf1.colocr 0.0% 50 0.9 1.0 0.6 4.9 0.6 | |
| 3.|-- host.colocrossing.com 0.0% 50 0.5 3.3 0.4 36.5 8.8 | |
| 4.|-- 207.86.156.45 0.0% 50 0.7 3.4 0.6 35.2 7.6 | |
| 5.|-- 216.156.1.126.ptr.us.xo.n 0.0% 50 49.8 51.8 49.6 74.2 5.7 | |
| 6.|-- 216.156.0.253.ptr.us.xo.n 0.0% 50 51.9 51.5 49.7 53.5 1.2 | |
| 7.|-- 207.88.12.28.ptr.us.xo.ne 0.0% 50 49.6 53.1 49.4 83.0 9.8 | |
| 8.|-- 207.88.12.175.ptr.us.xo.n 0.0% 50 52.4 52.2 49.4 88.4 6.7 | |
| 9.|-- 207.88.12.89.ptr.us.xo.ne 0.0% 50 51.6 51.8 49.6 65.1 2.2 |