reST online Editor: http://rst.ninjs.org/
reST Quickref 1: http://docutils.sourceforge.net/docs/user/rst/quickref.html
reST Quickref 2: http://sphinx-doc.org/rest.html
Watir installation on windows | |
(following more or less https://github.com/zeljkofilipin/watirbook/blob/master/installation/windows.md ) | |
1) go to http://rubyinstaller.org/downloads and downloaad latest RubyInstaller and the "development kit" | |
2) Execute RubyInstaller, installing to c:\Ruby - add to path -> yes | |
3) Unpack devcelopment kit to c:\Ruby\devkit |
def host_up_ping_nt?(host) | |
# Checks if a host is up by pinging it. | |
# Version for windows. See "man ping" for other systems. | |
# inspired by http://stackoverflow.com/a/3561831/362951 | |
ping_max_try = 10 | |
cmd = "ping -n 1 #{host}" | |
#puts cmd | |
isup = false | |
ping_max_try.times do | |
result = `#{cmd}` |
#!/bin/bash | |
# see http://serverfault.com/a/363745/45819 | |
start() { | |
echo "Starting iptables." | |
EXT="eth0" | |
TUNNELS="tun+" | |
iptables -F |
http://stackoverflow.com/questions/9210765/any-way-to-start-google-chrome-in-headless-mode | |
http://e-method.blogspot.co.uk/2010/11/google-chrome-with-xvfb-headless-server.html | |
Install xvfb: | |
sudo aptitude install xvfb | |
Normal start: |
http://www.baylus.com/a-nice-visual-log-for-git-command-line/ | |
A nice visual log for Git command line | |
I like having a quick visual log for Gits command line. Here’s a little git alias which’ll display a brief and colorful summary for your projects. | |
Enter the following code in terminal or git bash. | |
You can now generate a visual tree style log, open your shell |
sudo aptitude install monit | |
sudo aptitude remove monit | |
Now we have the basic config and the init script. | |
Download the latest monit source and untar. | |
./configure | |
Install missing dependencies at this point. |
WebSocket Test | |
CONNECTED | |
SENT: WebSocket rocks | |
RESPONSE: WebSocket rocks | |
DISCONNECTED |
Allow colours and other inline styles in Redmine | |
================================================ | |
Textile inline styles are disabled in Redmine >=0.8 for security reasons. | |
If you want this feature and don't fear XSS attacks as you don't have projects with public write access, you can change this in /lib/redmine/wiki_formatting/textile/formatter.rb : | |
self.filter_styles=false | |
Restart Redmine after the change! |
Download http://cygwin.org/setup.exe | |
Save as c:\opt\cygwin\setup.exe | |
Store packages at c:\opt\cygwin\package | |
---- | |
See also https://gist.github.com/1059810 for a "cygwin-here" registry modificatioon. | |
---- |
reST online Editor: http://rst.ninjs.org/
reST Quickref 1: http://docutils.sourceforge.net/docs/user/rst/quickref.html
reST Quickref 2: http://sphinx-doc.org/rest.html