Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| docker-machine create \ | |
| --driver=digitalocean \ | |
| --digitalocean-access-token=$DO_TOKEN \ | |
| --digitalocean-size=512mb \ | |
| --digitalocean-region=nyc3 \ | |
| --digitalocean-private-networking=true \ | |
| --digitalocean-image=ubuntu-15-04-x64 \ | |
| docker-swarm-kv-store | |
| docker $(docker-machine config docker-swarm-kv-store) run -d \ |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => { | |
| return [1, 2, 3]; |
| sysctl -w fs.file-max=12000500 | |
| sysctl -w fs.nr_open=20000500 | |
| ulimit -n 4000000 | |
| sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000' | |
| sysctl -w net.ipv4.tcp_rmem='1024 4096 16384' | |
| sysctl -w net.ipv4.tcp_wmem='1024 4096 16384' | |
| sysctl -w net.core.rmem_max=16384 | |
| sysctl -w net.core.wmem_max=16384 | |
| wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| sudo dpkg -i erlang-solutions_1.0_all.deb |
| export function retrieve(nodeId) { | |
| return { type: 'RETRIEVE_NODE', payload: { nodeId: nodeId } } | |
| } | |
| export function show(nodes) { | |
| return { type: 'SHOW_NODE', payload: { nodes: nodes } } | |
| } |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| const React = require('react') | |
| const Landing = require('./Landing') | |
| const Search = require('./Search') | |
| const Layout = require('./Layout') | |
| const Details = require('./Details') | |
| const ReactRouter = require('react-router') | |
| const data = require('../public/data') | |
| const { Router, Route, hashHistory, IndexRoute } = ReactRouter | |
| const Store = require('./Store') | |
| const { store } = Store |
| import { PUSH, REPLACE, GO, GO_BACK, GO_FORWARD, LOCATION_CHANGE } from './constants'; | |
| export const push = (href) => ({ | |
| type: PUSH, | |
| payload: href, | |
| }); | |
| export const replace = (href) => ({ | |
| type: REPLACE, | |
| payload: href, |
| require('babel-register') | |
| const express = require('express') | |
| const React = require('react') | |
| const ReactDOMServer = require('react-dom/server') | |
| const ReactRouter = require('react-router') | |
| const ServerRouter = ReactRouter.ServerRouter | |
| const App = require('./src/App').default | |
| const path = require('path') | |
| const Helmet = require('react-helmet') | |
| const compression = require('compression') |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)git reset vs git rm --cached)