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 generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#********************************************* | |
# デーモン化テスト | |
#********************************************* | |
# | |
class TestDaemon | |
def initialize | |
# 割り込みフラグ | |
@flag_int = false | |
# ファイル名 | |
@pid_file = "./test_daemon.pid" # PID ファイル |
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
<h1> | |
Stop the App Store upgrade prompt</h1> | |
<p> | |
Fortunately I saved my copy of Skitch (version 1.0.12) after hearing <a href="http://twitter.com/danielpunkass">Daniel Jalkut</a> (developer at <a href="http://www.red-sweater.com/">Red Sweater Software</a> best known for <a href="http://www.red-sweater.com/marsedit/">MarsEdit</a> and <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a>) mention that a brief stint with Skitch 2.0 had sent him back to Skitch version 1.</p> | |
<p> | |
The only problem is that the Mac App Store app kept telling me that Skitch needs to be updated. I even went into my Purchases list and '"hid" Skitch, but still the App Store kept telling me that it wanted to update Skitch.</p> | |
<p> | |
I seem to have found a solution, which was to quit Skitch.app, and then locate the app in /Applications/ using the Finder. Once there, I control-clicked on the app and chose "Show Package Contents":</p> | |
<p style="text-align:center"> | |
<img alt="" border="0" height="143" src="htt |
#!/bin/bash | |
# node.js using PPA (for statsd) | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
# Install git to get statsd | |
sudo apt-get install git |
$ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
$ curl https://gist.githubusercontent.com/paulnicholson/2050941/raw/7e4d2178e3733bed18fdfe737277c3cb72241d39/powssl > ~/bin/powssl
$ chmod +x ~/bin/powssl
$ powssl
[daniel@Europa:Desktop]: python riak_test.py | |
Inserting 0 | |
Inserting 1000 | |
Inserting 2000 | |
Inserting 3000 | |
Inserting 4000 | |
Inserting 5000 | |
Inserting 6000 | |
Inserting 7000 | |
Inserting 8000 |