This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| #as root | |
| apt-get install iptables-persistent -y | |
| iptables -F #Clears most IPTables entries | |
| iptables -A INPUT -p tcp --dport 27017 -s localhost -j ACCEPT | |
| iptables -A INPUT -p tcp --dport 27017 -s 134.3.208.8 -j ACCEPT | |
| iptables -A INPUT -p tcp --dport 27017 -j DROP | |
| iptables-save > /etc/iptables/rules.v4 |
| #!/bin/bash | |
| # | |
| # This script will transplie our code using babel and evaluates it using node.js | |
| # | |
| # Steps: | |
| # 1) Install babel globally: | |
| # npm install -g babel-cli | |
| # or | |
| # yarn global add babel-cli | |
| # 2) Create a new language in Coderunner preferences (eg. Javascript (Babel)). |
| package main | |
| import ( | |
| "bytes" | |
| "compress/gzip" | |
| "encoding/gob" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]By the way, I'm available for tutoring and code review :)
new Promise?.then callback yet?](https://gist.github.com/joepie91/4c3a10629a4263a522e3bc4839a28c83#6-but