This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# nginx-installer: | |
# Install nginx. | |
# | |
# Forked from -- Author : Scott Barr | |
# | |
# $Id:$ | |
set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@hokey:/# for D in `ls -lha | awk '/^d/ {print $NF}' | egrep -v '^(.Spotlight-V100|.Trashes|Volumes|dev)' | tail -n +3`; do echo "--------- Looking at ${D} -------"; rsync -vua /${D}/ /Volumes/Hokey-Backup/hokey-system/${D}/; done | |
# yes I could use awk instead of egrep. | |
# I prefer for() over while() for some reason. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name rewiredreality.co.uk; | |
root "/data/vhosts/rewiredreality.co.uk/current/html"; | |
listen 188.246.207.224:443 ssl; | |
ssl on; | |
ssl_certificate /data/vhosts/rewiredreality.co.uk/rewiredreality-deployment/ssl-certs/rewiredreality.co.uk-crt; | |
ssl_certificate_key /data/vhosts/rewiredreality.co.uk/rewiredreality-deployment/ssl-certs/rewiredreality.co.uk-key; | |
ssl_client_certificate /data/vhosts/rewiredreality.co.uk/rewiredreality-deployment/ssl-certs/GandiStandardSSLCA.crt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"it" means datasource(s) | |
1. is it accessible, without registration, academic credentials or not? what are the requirements, how long does it take | |
2. what are the licensing arrangements/terms | |
3. is this a restricted dataset? does it need to be stored/processed in line with iso 27001 [ http://en.wikipedia.org/wiki/ISO/IEC_27001 ] or special rules? | |
4. is re-use permitted? even commercial? (and subsidiary) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These two files should help you to import passwords from mac OS X keychains to 1password. | |
Assumptions: | |
1) You have some experience with scripting/are a power-user. These scripts worked for me | |
but they haven't been extensively tested and if they don't work, you're on your own! | |
Please read this whole document before starting this process. If any of it seems | |
incomprehensible/frightening/over your head please do not use these scripts. You will | |
probably do something Very Bad and I wouldn't want that. | |
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous | |
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After spending the better part of the month implementing date support | |
in RethinkDB, Mike Lucy sent the team the following e-mail. It would | |
have been funny, if it didn't cause thousands of programmers so much | |
pain. Read it, laugh, and weep! | |
----- | |
So, it turns out that we're only going to support dates between the | |
year 1400 and the year 10000 (inclusive), because that's what boost | |
supports. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Github credentials to access your private project | |
USERNAME="USER_NAME" | |
PASSWORD="SEKRIT" | |
# Project you want to export issues from | |
USER="REPO_OWNER" | |
PROJECT="REPO_NAME" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# rename-list: | |
# rename lists | |
# | |
# Copyright (c) 2010 Adam McGreggor. All rights reserved. | |
# Email: [email protected]; WWW: http://blog.amyl.org.uk | |
# | |
# $Id: rename-list 260 2010-10-18 11:57:34Z adam $ | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>The Birth of a Police State: UK Police to be Granted Sweeping New Powers | Scriptonite Daily</title> | |
<link rel="profile" href="http://gmpg.org/xfn/11" /> | |
<link rel="pingback" href="http://www.scriptonitedaily.com/xmlrpc.php" /> | |
<link rel="alternate" type="application/rss+xml" title="Scriptonite Daily » Feed" href="http://www.scriptonitedaily.com/feed/" /> | |
<link rel="alternate" type="application/rss+xml" title="Scriptonite Daily » Comments Feed" href="http://www.scriptonitedaily.com/comments/feed/" /> |
OlderNewer