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 | |
# set -x | |
# Jesse Pearson | |
# Shell script to output all Confluence Spaces to PDF and optionally | |
# push them to a SMB or some other share. | |
# | |
# Dependencies: | |
# wget | |
# | |
# Optional dependencies: |
unicorn_profiles="dev prod" | |
unicorn_dev_enable="yes" | |
unicorn_dev_user="devuser" | |
unicorn_dev_listen="/tmp/unicorn.dev.socket" | |
unicorn_dev_dir="/usr/local/www/dev" | |
unicorn_dev_config="/usr/local/www/dev/config.ru" | |
unicorn_dev_env="development" | |
unicorn_dev_flags="" # any additional flags | |
unicorn_dev_rails="YES" # For rails |
launch=pipe | |
pipe-command=/path/to/xipio-pipe.rb | |
pipe-timeout=200 | |
pipe-regex=^.*.ip.ipq.co;.*$ |
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 | |
DICT="/usr/share/dict/words" | |
NUM_WORDS=$(wc -l $DICT | awk -F " " '{print $1}') | |
NUM_DIGITS=${#NUM_WORDS} | |
while true | |
do | |
NUM="" |
<!-- | |
Author: Vikas Sharma, https://twitter.com/VikasSharma | |
This user macro allows a user to embed a watch space blog button within a blog post on Confluence. | |
At Twitter we use this to encourage folks to watch the blog of the space they are on. | |
--> | |
<button id="twtr-watch-space-blog" class="aui-button">Watch the $space.getName() Blog</button> | |
<script> | |
AJS.toInit(function(){ | |
AJS.$('#twtr-watch-space-blog').on('click', function(){ |
The aim was to be able to: