静下心来是不容易的事情,前有生活忧虑虎视眈眈,后有诸多诱惑饿狼扑食。
人与人之间藏着很多谎言,坦不坦白都不会减轻各自的孤独。
喜欢在大雪中漫步,没人会关心我到骨髓里,所以我让自己在热闹之中安静地流浪,雪天就是一个很好的背景。《Nero》这首曲子完美贴合到心里。
有时候,我对快乐的追求轻浮于所有感觉之上,那让我尤其疲惫,我也想停下来。
寄希望于,合眼可以看到世界,看到自己,看到未来,但合眼只是一片血色的黑。
依旧是那么地在乎别人的眼光,在乎别人做什么,在乎刻薄的人的话语和行为,现在真的该放下了。因为这些东西跟我的生命没有任何关系。
准备学习一些有趣的东西,趁着年轻。
其实珍惜缘分,可是做的事情似乎在推走缘分。
Dizzy Dream of Android Development
These are my personal notes.
Sign APK
1. Generate Keystore (Only Once)
1 | keytool -genkey -v -keystore chaos.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias app |
2. Zipalign
1 | /home/chaos/Android/Sdk/build-tools/26.0.1/zipalign -p -v 4 '/home/chaos/Websites/App/chaos/app-release.apk' '/home/chaos/Websites/App/chaos/chaos-1.0.6-aligned.apk' |
3.Sign & Verify
The script file can be found in %ANDROID_HOME%/sdk/build-tools/24.0.3/ (the .jar is in the /lib subfolder). Use it like this
1 | /home/chaos/Android/Sdk/build-tools/26.0.1/apksigner sign --ks '/home/chaos/.apkstudio/vendor/chaos.keystore' --out '/home/chaos/Websites/Nethunter/themes/Dreamhunter/source/app/download/chaos-1.0.6.apk' '/home/chaos/Websites/App/chaos/chaos-1.0.6-aligned.apk' |
Verify:
1 | /home/chaos/Android/Sdk/build-tools/26.0.1/apksigner verify '/home/chaos/Websites/App/chaos/chaos-1.0.6.apk' |
Kick Other SSH Clients on Linux
Show Online Users:
1 | [root@test ~]# w |
00:41:47 up 15 min, 2 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 162.16.16.155 00:28 8:42 0.07s 0.07s -bash
root pts/1 1162.16.16.156 00:41 0.00s 0.02s 0.00s w
Show which is this connected client:
1 | [root@test ~]# who am i |
root pts/0 2013-12-31 14:30 (162.16.16.155)
pkill others:
1 | [root@test ~]# pkill -kill -t pts/1 |
Check again:
1 | [root@test ~]# w |
00:42:12 up 16 min, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 162.16.16.155 00:28 4.00s 0.02s 0.00s w
Notice:
If the other users are not disconnected, I suggest you kill the connection forcely:
1 | [root@test ~]# pkill -9 -t pts/1 |
Change SSH Server Port
Root user:
1 | vim /etc/ssh/sshd_config |
Find the content:
1 | # Port 22 |
Delete the # and change 22 to the port you need.
Restart the sshd service:
1 | service sshd restart |