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
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
To remove a submodule you need to:
var githubapi = require("github"), | |
async = require("async"), | |
AWS = require('aws-sdk'), | |
secrets = require('./secrets.js'); | |
// the 'handler' that lambda calls to execute our code | |
exports.handler = function(event, context) { | |
// config the sdk with our credentials | |
// http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html |
#!/bin/bash | |
# This Works is placed under the terms of the Copyright Less License, | |
# see file COPYRIGHT.CLL. USE AT OWN RISK, ABSOLUTELY NO WARRANTY. | |
# | |
# COPYRIGHT.CLL can be found at http://permalink.de/tino/cll | |
# (CLL is CC0 as long as not covered by any Copyright) | |
OOPS() { echo "OOPS: $*" >&2; exit 23; } | |
[ -z "`pidof openssl`" ] || OOPS "openssl running, consider: killall openssl" |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
syntax on | |
filetype plugin indent on | |
"Get the 2-space YAML as the default when hit carriage return after the colon | |
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
set is hlsearch ai ic scs | |
nnoremap <esc><esc> :nohls<cr> | |
"https://vim.fandom.com/wiki/Moving_lines_up_or_down |