# move to home directory
cd ~
# move the .zsh_history file into another .zsh_history_bad file
mv .zsh_history .zsh_history_bad
# write all printable strings into a new .zsh_history file
strings .zsh_history_bad > .zsh_history| [ | |
| { | |
| "name":"ABAP", | |
| "type":"programming", | |
| "extensions":[ | |
| ".abap" | |
| ] | |
| }, | |
| { | |
| "name":"AGS Script", |
// API End-Point
http://www.one-tab.com/api/createPage
// POST Payload
{
"key": "483e6ba2-08d6-4cb4-b167-550856f4d7c0",
"tabGroups": [{
"id": "aek6X7rnpxWCtUjcfcKTtw",
"tabsMeta": [{
| String.prototype.toPersianDigits = function () { | |
| var id = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']; | |
| return this.replace(/[0-9]/g, function (w) { | |
| return id[+w]; | |
| }); | |
| }; | |
| String.prototype.toEnglishDigits = function () { | |
| var id = { '۰': '0', '۱': '1', '۲': '2', '۳': '3', '۴': '4', '۵': '5', '۶': '6', '۷': '7', '۸': '8', '۹': '9' }; |
| type FilterOperator = 'AND' | 'OR'; | |
| type FiltersBy<T> = { | |
| [K in keyof T]?: (value: T[K]) => boolean; | |
| }; | |
| /** | |
| * Factory function that creates a specialized function to filter | |
| * arrays, by validating all filters (AND operator), | |
| * or validating just one of the filters (OR operator). | |
| * @param operator Method to validate all filters: AND, OR |
I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.
I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.
Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.
How to have some fun using the terminal.
- Install cowsay [0] via :
sudo apt-get install cowsay - Install fortune [1] via :
sudo apt-get install fortune - Install figlet [3] via :
sudo apt-get install figlet - Make sure you have Ruby installed via :
ruby -v - Install the lolcat [2] via : gem
gem install lolcat - (option) Add to .bash_profile and/or .bashrc
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
- A Russian translation of this article can be found here, contributed by Timur Demin.
- A Turkish translation can be found here, contributed by agyild.
- There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.