These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
# pfreixes, 2012-07-27 | |
# Add to /etc/bash_completion.d/supervisorctl | |
_supervisor() | |
{ | |
local cur prev opts base | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" |
#!/usr/bin/env python | |
import os,sys | |
sys.path.append("<%= node['graphite']['doc_root']%>/graphite") | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' | |
from django.contrib.auth.models import User | |
username = sys.argv[1] | |
email = sys.argv[2] | |
password = sys.argv[3] |
Configuring Nginx to serve SSL content is straight forward, once you have your certificate and key ready:
server {
listen 443 default ssl;
root /path/to/source;
server_name mydomain;
ssl_certificate /path/to/cert;
ssl_certificate_key /path/to/key;
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Taken from http://damsteen.nl/blog/how-to-use-a-serial-connection-to-your-netgear-readynas as it always seems to be down
It is possible to connect to the command-line interface of your Netgear ReadyNAS using a serial connection. I have seen a very old blog post on the internet describing how to connect via serial to a Infrant ReadyNAS NV but it wasn't very clear how to connect to a Netgear ReadyNAS NVX Pioneer Edition, which I have. I guess I'm not the only one who wants to connect to their ReadyNAS, so I'm sharing my knowlegde here :)
The obvious advantages of a serial connection to your ReadyNAS is that you can experiment with network settings without the fear of rendering your NAS inaccessible. I believe it is also possible to recover the firmware in the event an update fails, although I haven't tried this myself.
Requirements
conrep
from the HP Scripting Toolkit is used to make modifications to the system BIOS settings. To get it running on an 64-bit Ubuntu server, you'll need to install
Without it you'll get this error
$ ./conrep
# virtualenv graphite-web
# cd graphite-web
# . bin/activate
# pip install circus chaussette meinheld Django==1.3 Twisted==11.1.0 python-memcached==1.47 txAMQP==0.4 simplejson==2.1.6 django-tagging==0.3.1 gunicorn pytz pyparsing==1.5.7 http://cairographics.org/releases/py2cairo-1.8.10.tar.gz git+git://github.com/graphite-project/whisper.git#egg=whisper
# pip install git+git://github.com/graphite-project/graphite-web.git --install-option="--prefix=$VIRTUALENV_PREFIX/graphite-web" --install-option="--install-lib=$VIRTUALENV_PREFIX/graphite-web/lib/python2.7/site-packages"
aboyd-laptop:Volumes aaronyo$ hdiutil attach -nomount -readwrite TimeCapsuleAaronLaptop/aboyd-laptop.sparsebundle
hdiutil: attach failed - Read-only file system
aboyd-laptop:TimeCapsuleAaronLaptop aaronyo$ hdiutil attach -nomount aboyd-laptop.sparsebundle/
/dev/disk2 Apple_partition_scheme
/dev/disk2s1 Apple_partition_map
/dev/disk2s2 Apple_HFSX
aboyd-laptop:TimeCapsuleAaronLaptop aaronyo$ fsck_hfs -f /dev/disk2
mkdir ~/.sentry
~/.sentry
chaussette sentry.wsgi.application
should be enough to get it started. Add options as required, eg:chaussette sentry.wsgi.application --backend meinheld --port 8091