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
#!/bin/bash | |
# Much of this came from a few blog articles and one base script that I can't find now | |
# It is updated for the current VHD files (which supposedly expired on Aug 9th, 2011 | |
# but still work. | |
# | |
# Requirements: Virtual Box installed, unrar (from homebrew is fine) | |
# | |
# If you want to remove stuff, open up Virtual Box and remove the VM and delete files. | |
# |
#!/bin/sh | |
# Credits to: | |
# - http://vstone.eu/reducing-vagrant-box-size/ | |
# - https://github.com/mitchellh/vagrant/issues/343 | |
aptitude -y purge ri | |
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide | |
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30 | |
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5 |
function reopenTransportOnHupSignal(fileTransport) { | |
process.on('SIGHUP', function() { | |
var fullname = path.join(fileTransport.dirname, fileTransport._getFile(false)); | |
function reopen() { | |
if (fileTransport._stream) { | |
fileTransport._stream.end(); | |
fileTransport._stream.destroySoon(); | |
} |
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
# files/env: | |
Defaults env_keep += "SSH_AUTH_SOCK" | |
# tasks/main.yml | |
- name: ensure sudo keeps SSH_AUTH_SOCK in environment | |
copy: src=env | |
dest=/etc/sudoers.d/env | |
mode=0440 | |
owner=root | |
group=root |
- name: Testing variables with SUDO=NO | |
hosts: "*" | |
sudo: no | |
tasks: | |
- name: "PLAYBOOK SUDO=NO, TASK SUDO=NO" | |
command: whoami | |
register: whoami_output | |
sudo: no | |
- debug: var=whoami_output.stdout |
# ベースにするイメージ | |
FROM ubuntu:14.04 | |
MAINTAINER hasehiro | |
ADD resource/80Proxy /etc/apt/apt.conf.d/80Proxy | |
RUN apt-get install -y apache2 openjdk-7-jdk | |
RUN apt-get install -y git-core build-essential wget curl libcurl4-openssl-dev | |
# kibana3 + elasticsearch install |
# using VirtualBox version $VBOX_VERSION | |
FROM boot2docker/boot2docker | |
RUN apt-get install p7zip-full | |
RUN mkdir -p /vboxguest && \ | |
cd /vboxguest && \ | |
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \ | |
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \ | |
sh VBoxLinuxAdditions.run --noexec --target . && \ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# 內容 | |
# repo 位置 | |
- https://github.com/facebook/react | |
- https://github.com/facebook/flux | |
# 官網 | |
- React | |
* http://facebook.github.io/react/ |