Posts

Showing posts from July, 2017

Hot Day

Hello, when you saw this post, I'm in a hot day. That's something weird living in this situation. The day is hot, and my heart also hot, I want to do something great. But helplessly nothing I did. 心里的火焰很强烈,但不知从何下手。 或许我该停下来看书,或许我该静下来学习网课。 I don't know.

Bypass great firewall by using shadowsocks

1. Install shadowsocks first(server) apt-get update apt-get upgrade apt install python3-pip pip3 install setuptools --upgrade pip3 install shadowsocks --upgrade vi ss.json { "server": "45.63.80.154", "port_password": {"8000": "passwd1", "6666": "passwd2"}, "timeout": 300, "method": "aes-256-cfb" } ssserver -c ss.json -d start ssserver -d stop ssserver -c ss.json -d restart You can use bbr to speed up: wget https://down.vpsmm.com/shell/bbr.sh && bash bbr.sh 1. Install shadowsocks first(local) apt-get update apt install python3-pip pip3 install shadowsocks --upgrade locate sslocal crontab -e @reboot /usr/local/bin/sslocal -s 45.63.80.154 -p 8000 -k passwd1 -d start sudo reboot 2. Install proxychains for terminal sudo apt install proxychains vim /etc/proxychains.conf [ProxyList] socks5 127.0.0.1 1080 proxychains curl google.com

Why you failed learning C++?

C++ 最蛋疼的就是 somebody 用很多大写缩写 完全是装逼( 现在的电脑哪还在乎那几个字符所占的空间😒) 记一串乱七八糟的字符不如记一段有意义的英文句子 关键在于如果不能在名称上表明其作用 你就得到处翻文档 那是很痛苦的, and also ineffective.

Using zRAM on Deepin system

1. Save this as  debian-install-zram.sh : #! /bin/bash # not_root () { echo " ERROR: You have to be root to execute this script " exit 1 } zram_exists () { echo " ERROR: /etc/init.d/zram already exists " exit 1 } # Check if user is root [ $EUID != 0 ] && not_root # Check if zram file already exists [ -f /etc/init.d/zram ] && zram_exists cat > /etc/init.d/zram << EOL #!/bin/sh ### BEGIN INIT INFO # Provides: zram # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: S # Default-Stop: 0 1 6 # Short-Description: Use compressed RAM as in-memory swap # Description: Use compressed RAM as in-memory swap ### END INIT INFO # Author: Antonio Galea <antonio.galea@gmail.com> # Thanks to Przemysław Tomczyk for suggesting swapoff parallelization FRACTION=75 MEMORY=\`perl -ne'/^MemTotal:\s+(\d+)/ && print \$1*1024;' < /proc/meminf