How to Remove Old Kernels in Ubuntu
sudo apt install byobu sudo purge-old-kernels Reference: Remove Old Kernels (https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels)
sudo apt install byobu sudo purge-old-kernels Reference: Remove Old Kernels (https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels)
It is a hack. Set Jira Administration -> System -> Announcement Banner -> Announcement: <style type="text/css"> pre { white-space: pre-wrap!important; } </style>
mongo --eval "JSON.stringify(db.currentOp(true))" | \ tail -n +3 | \ jq -r .inprog[].client | \ sed 's/\(.*\):.*/\1/' \ | sort | uniq -c | sort -nr dump connection information in standard JSON format remove MongoDB header extract IP:port as a list trim port sort IPs by freqencies
cat book.txt | \ tr '!()[]{};:",<.>?“”‘’*/\r' ' ' | \ tr ' ' '\n' | \ grep -a -P "^[\p{L}\p{N}\-']+\$" | \ grep -a -P -v "^[\p{N}\-']+\$" | \ sed "s/'s\$//" | \ sed "s/^'//" | sed "s/'\$//" > words.txt cat words.txt | \ sort | uniq -c | \ sort -nr | \ cut -c9- > words_desc.txt replace punctuations with space; remove \r from `\r\n' one word per line keep only words composed of unicode letters, numbers, hyphen and apostrophe remove pure numbers remove ’s remove starting and ending apostrophe output words.txt sort and count unique words ...
Mobi Format Description: http://wiki.mobileread.com/wiki/MOBI Python lib: https://github.com/kroo/mobi-python
Design The UA detection algorithm is a pipeline containing 3 steps: Scan: scan products and its corresponding comments from a UA string. Parse: parse device info from products. Detect: detect device model by looking up in a database and get related info, e.g. screen resolution. Scan The scanner scans the user agent string into products. Each product has its own name, version and comments. e.g. For user agent string: Mozilla/5.0 (Linux; U; Android ROM v3; en-us; ALCATEL ONE TOUCH 991 Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 Its products are: ...
This is an insightful list from [Henry Ward](Henry Ward): How do I get employees to perform better? Tell them what they are doing well. How do I give negative feedback? By being curious. How do I decide what to delegate? Delegate the work you want to do. How should I prioritize? Fix problems. Then prevent problems. How should I grade employees? Don’t. Teach them to self-evaluate. When do I fire somebody? When you know they can’t succeed. How do I fire somebody? By apologizing for our failures. Why can’t I just tell people what to do? Because the more responsibility you have, the less authority you have. How do I know if I am a good manager? Employees ask you for advice. How do I know if I have good management team? Shit rolls uphill.
A short investigation on reliable persistence: Crash consistency is hard but possible at a huge performance cost Data safty must rely on distributed solution Raft Perhaps we should just give up manual fsync and rely on OS background flush corruption detection & correction at startup replication
Obtain OpenWRT Find the device model at the Table of Hardware (Huawei HG556a C) Open Device Techdata for Firmware OpenWrt Install URL Open Device Page for Installation instructions Computer - Cable - Router Connect the computer to the router with a cable. Install OpenWRT Follow the instructions to install OpenWRT. SSH First login: telnet 192.168.1.1 Change password to enable SSH: passwd exit For public key authentication, add the public key: ssh-copy-id [email protected] ssh [email protected] mv ~/.ssh/authorized_keys /etc/dropbear exit WiFi In /etc/config/wireless: ...
JSON cat xxx.json | jq . XML cat xxx.xml | xmllint --format -