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| const path = require('path'); | |
| const escapeStringRegExp = require('escape-string-regexp'); | |
| const _debug = require('debug'); | |
| const PLUGIN_NAME = 'AlternativeFileReplacerPlugin'; | |
| const debug = _debug(PLUGIN_NAME); | |
| /** | |
| * Create an "isFileAccessible" function for an `fs` interface that has a `stat` function. |
| git clone [email protected]:docker-library/php.git docker-library-php | |
| ## Go to the specific version you're interested in | |
| cd docker-library-php/7.1/fpm/alpine | |
| ## Edit the .Dockerfile. | |
| ## Change | |
| ## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data | |
| ## to | |
| ## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --enable-debug | |
| ## Comment out or delete: |
| class ScrollMonitor extends React.Component { | |
| constructor() { | |
| this.handleScrollStart = this.startWatching.bind( this ); | |
| this.handleScrollEnd = debounce( | |
| this.stopWatching.bind( this ), | |
| 100, | |
| { leading: false, trailing: true } ); | |
| } | |
| componentDidMount() { |
| defmodule Config do | |
| @moduledoc """ | |
| This module handles fetching values from the config with some additional niceties | |
| """ | |
| @doc """ | |
| Fetches a value from the config, or from the environment if {:system, "VAR"} | |
| is provided. | |
| An optional default value can be provided if desired. |
| import argparse | |
| import boto.sqs | |
| import json | |
| import os | |
| parser = argparse.ArgumentParser(description='Saves all messages from an AWS SQS queue into a folder.') | |
| parser.add_argument( | |
| '-q', '--queue', dest='queue', type=str, required=True, | |
| help='The name of the AWS SQS queue to save.') |
| defmodule Curry do | |
| defmacro defcurry({func_name, _func_ctx, args}, do: body) do | |
| num_args = Enum.count(args) | |
| if num_args - 1 >= 1 do | |
| new_args = Enum.take(args, num_args - 1) | |
| quote do | |
| def unquote(func_name)(unquote_splicing(args)) do | |
| unquote(body) | |
| end |
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