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
| server { | |
| listen 80; | |
| server_name ama.phanbook.com; | |
| root /usr/share/nginx/html/images/; | |
| location ~ /images/.*\.jpg$ { | |
| if ($query_string ~ .*=.*) { | |
| rewrite ^/images/(.*\.jpg)$ /image_filter/$1 last; | |
| } | |
| } |
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
| nvram unset login_ip_str | |
| nvram unset login_timestamp | |
| nvram unset login_ip | |
| nvram commit |
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
| last -f /var/log/wtmp.1 |
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
| Chặn quảng cáo như hd sau: | |
| Trong LAN > DHCP > Advance Setting > Custom configuration file "dnsmasq.conf" thêm các slot cho host như sau: | |
| addn-hosts=/tmp/hosts1 | |
| addn-hosts=/tmp/hosts2 | |
| addn-hosts=/tmp/hosts3 | |
| addn-hosts=/tmp/hosts4 | |
| addn-hosts=/tmp/hosts5 |
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
| jQuery.validator.addMethod("kanji", function (value, element) { | |
| pattern = /^[\u3400-\u4DB5\u4E00-\u9FCB\uF900-\uFA6A]+$/g; | |
| return this.optional(element) || pattern.test(value); | |
| }, "※漢字で、入力してください"); | |
| jQuery.validator.addMethod("kana", function (value, element) { | |
| pattern = /^[\u3040-\u30ff]+$/g; | |
| return this.optional(element) || pattern.test(value); | |
| }, "※ひらがな及びカタカナで、入力してください"); |
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
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
NewerOlder