ReZero's Utopia.

ReZero's Utopia.

Everything is permitted.

Arch enable BBR
Requests: kernel 4.9+ What: https://github.com/google/bbr One Command: sudo modprobe tcp_bbr Turn on: # echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf # echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf # sysctl -p # sysctl net.ipv4.tcp_availabl...
Custom ClassLoader
package com.loader; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; /* /Bootstrap Classloader -> rt.jar Extension Classloader extends Classloader -> %JAVA_HOME%/lib/ext/*.jar App Classloader extends Classloader -> ...
Messy code issue
Source: https://www.ibm.com/developerworks/cn/java/analysis-and-summary-of-common-random-code-problems/index.html?cm_mmc=dwchina-_-homepage-_-social-_-weibo#N101F9 Reason Encode Decode Lack of a font library Analysis phenomenon Caused by encoding In English Windows, u create a txt, type and s...
java-note
重写: 返回值范围小于等于父类,抛出的异常范围小于等于父类,访问修饰符范围大于等于父类 继承: 子类拥有父类非 private 的属性和方法。 子类可以拥有自己属性和方法,即子类可以对父类进行扩展。 子类可以用自己的方式实现父类的方法。 多态:继承(多个子类对同一方法的重写)和接口(实现接口并覆盖接口中同一方法)。 静态代码块—>非静态代码块—>构造方法静态内部类(static修饰类的话只能修饰内部类): 静态内部类与非静态内部类之间存在一个最大的区别: 非静态内部类在编译完成之后会隐含地保存着一个引用,该引用是指向创建它的外围类,但是静态内部类却没有。没有...
Linux note0x02
IpTables & Firewalldiptables PreRouting, Input, Output, Forward, PostRouting 参数 作用 -P 设置默认策略 -F 清空规则链 -L 查看规则链 -A 在规则链的末尾加入新规则 -I num 在规则链的头部加入新规则 -D num 删除某一条规则 -s 匹配来源地址IP/MASK,加叹号“!”表示除这个IP外 -d 匹配目标地址 -i 网卡名称 匹配从这块网卡流入的数据 -o 网卡名称 匹配从这块网卡流出的数据 -p 匹配协议,如TCP、UDP、ICMP –dport num 匹配目标端口号 –spor...
SICP lec1b: # Computing process
Computing process kinds of expressionsnumber symbols lambda definations conditionals combinations conditionif (define (+ x u) (if (= x 0) y (+ (-1 x) (1 y)) ) ) Fibonacci(define (fib n) (if (< n 2) n (+ (fib (- n 1)) (fib (- n 1)) ) ) ) tips: 1+ ...
SICP lec1a: # Lisp overview
origin link sicp 1 Black box(module)(* x (+ a b)) First scene: Every parentheses is a container called black box, we can take a and b as to varible, like number, electric signal, whatever, we add them, then mul or expand them x times. tipsprimitive elements + : operator 17.4 : number means of com...
[Parser] Build: PL By:JS
origin: http://lisperator.net/pltut/ InputStream TokenStream Parse Summaryvar ast = parse(TokenStream(InputStream(code))); Writing a parser is, depending on the language, a moderately complex task. In essence, it must transform a piece of code (which we inspect by looking at the characters) ...
[Initial] Build: PL By: JS
Origin: http://lisperator.net/pltut/ This is a tutorial on how to implement a programming language. If you ever wrote an interpreter or a compiler, then there is probably nothing new for you here. But, if you’re using regexps to “parse” anything that looks like a programming language, then please...
意大利炮待命中(密码我QQ)
https://juejin.im/entry/582b0161c4c97100542e4277 http://gfwrev.blogspot.kr/search?q=GFW https://theinitium.com/article/20150904-mainland-greatfirewall/ 福利: 链接:http://pan.baidu.com/s/1eSvSl9o 密码:0px3 GFW 的封锁方法国内 DNS 服务器的缓存污染 发往国外的 DNS 解析请求的拦截或篡改 IP 黑名单 端口封锁,针对 OpenVPN,SSH,shadowsocks 等,有用到 DPI,多次换...
avatar
ReZero
大屁水饺的理想国.