history | \
awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | \
grep -v "./" | \
column -c3 -s " " -t | \
sort -nr | nl | head -n 5
Install OpenResty in mac.
brew update
brew install pcre openssl
wget http://openresty.org/download/openresty-1.9.7.3.tar.gz
tar xzvf openresty-1.9.7.2.tar.gz
cd openresty-1.9.7.2
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
hit_endpoint(1); | |
function hit_endpoint(index) { | |
const https = require('https'); | |
var options = { | |
'method': 'GET', | |
'hostname': 'maps.googleapis.com', | |
'path': '/maps/api/staticmap?key=AIzaSyCpIsvxgwckHapA49RLMMY4J6PGywEVNcA&size=700x260¢er=29.482335113697%2C-95.502632805762&zoom=12&path=fillcolor%3A0x53b3c7%7Ccolor%3A0xFFcbFF23%7C29.486787995753%2C-95.498544893472%7C29.485864356482%2C-95.49813576139%7C29.484417707098%2C-95.498327444127%7C29.482719808979%2C-95.498796640291%7C29.481565456884%2C-95.50016418606%7C29.480186020647%2C-95.501230943591%7C29.47873184675%2C-95.502898515942%7C29.477547675077%2C-95.505792255051%7C29.477863357552%2C-95.506395942493%7C29.479291420875%2C-95.505882394674%7C29.480868898862%2C-95.505540508232%7C29.481950418416%2C-95.50580087292%7C29.482733063019%2C-95.506232898986%7C29.483569862094%2C-95.507440273871%7C29.484406654258%2C-95.50899097151%7C29.485295723128%2C-95.511448636624%7C29.486110070753%2C-95.512189687969%7C29.486935586265%2C-95.500432406961%7C29.487085929543% |
Javascript browser builtin base64 function :
const a = btoa("1234") // MTIzNDU=
const b = atob("MTIzNDU=") // 12345
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
You can use ldconfig -p to see all library ldconfig currently know about. | |
You can add the path to ldconfig with | |
sudo echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf | |
& | |
sudo ldconfig |
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
TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLgoK | |
v55x8o4lce8ayvm0w7r-bx | |
LKjdi87AzKJHAKAJA-N | |
TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHR |
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
#TAG | NAME IN REPO (or git url) | PURPOSE (should be a verb phrase to sound right while installing) | |
---|---|---|---|
xorg-server | is the graphical server. | ||
xorg-xwininfo | allows querying information about windows. | ||
xorg-xinit | starts the graphical server. | ||
V | xorg-minimal | is the graphical server. | |
V | xorg-fonts | is a font package. | |
V | xinit | starts the graphical server. | |
V | xdg-utils | are filetype utilities. | |
V | libX11-devel | is required for the compilation of some programs. | |
V | libXft-devel | is required for the compilation of some programs. |
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
#!/bin/sh | |
IN=$1 | |
if [[ -z "$IN" ]]; then | |
echo -e "Avaliable song: \n\t\tarmada \n\t\ts7 \n\t\tpeterpan" | |
fi | |
play () { | |
mpv --no-video $1 &>/dev/null & | |
} |