sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| #!/bin/bash | |
| wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz | |
| sudo tar xvzf postman-linux-x64.tar.gz -C /opt | |
| sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
| cat << EOF > ~/.local/share/applications/postman2.desktop | |
| [Desktop Entry] | |
| Name=Postman | |
| GenericName=API Client |
| # Redis Cheatsheet | |
| # Bản này mình fork về và dịch sang tiếng Việt cho dễ đọc | |
| redis-server /path/redis.conf # khởi động redis-server từ file config | |
| redis-cli # Mở redis-cli | |
| # Strings. |
| <?php | |
| #source: http://stackoverflow.com/questions/2934563/how-to-decode-unicode-escape-sequences-like-u00ed-to-proper-utf-8-encoded-char | |
| function replace_unicode_escape_sequence($match) { | |
| return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); | |
| } | |
| function unicode_decode($str) { | |
| return preg_replace_callback('/\\\\u([0-9a-f]{4})/i', 'replace_unicode_escape_sequence', $str); | |
| } |