This is how I install Jenkins on a bare system. I'm using Ubuntu 12.04 32bit
Always good to update the system packages after a fresh install:
Reference: http://www.mad-hacking.net/documentation/linux/security/ssl-tls/creating-ca.xml
This directory structure is needed for the Certificate Authority
mkdir -p private
mkdir -p demoCA/newcerts
To backup:
$ sudo -u postgres -i
$ export DB_NAME="mydatabase"
$ pg_dump -Fc "$DB_NAME" > "$DB_NAME"-`date -u +%Y%m%d%H%M%S`.dump
To restore:
$ sudo -u postgres -i
$ export DB_NAME="mydatabase"
#!/bin/sh | |
# Source: | |
# http://apple.stackexchange.com/a/30239 | |
# http://technotes.twosmallcoins.com/?p=279 | |
/bin/echo -n 'Need sudo access, ' | |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off |
// This is an outdated way to do this... | |
// Inspired by: | |
// http://stackoverflow.com/questions/8560501/android-save-image-into-gallery/8722494#8722494 | |
// https://gist.github.com/samkirton/0242ba81d7ca00b475b9 | |
public static void saveImageToGallery(ContentResolver cr, String imagePath) { | |
String title = "Saved From Glance"; | |
String description = title; |
# Make sure to set in settings.py: | |
# DEBUG = True | |
from django.db import connection | |
from django import db | |
import time | |
db.reset_queries() | |
start = time.time() | |
result = VIEW_FUNCTION_HERE(request) # !!!!! EDIT THIS LINE !!!!! | |
end = time.time() |
We are using a patched version of nginx that does not erase the "ETag" http header for gzipped responses.
See: https://forum.nginx.org/read.php?2,240120,240120#msg-240120
This is what was done:
To compile nginx, the PCRE library is needed. Here is how it was installed:
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz
$ tar -zxvf pcre-8.37.tar.gz