I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
#! /usr/bin/env bash | |
#clone the repo | |
git clone -q "${1}" "clones/${2}" | |
cd "clones/${2}" | |
#update the submodules (how do we handle errors here?) | |
git submodule --quiet update --init --recursive |
<?php | |
require __DIR__ .'/silex.phar'; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Cookie; | |
$app = new Silex\Application(); | |
$app['debug'] = true; |
#!/bin/bash | |
BACKUP_ROOT="$HOME/redmine_backup" | |
REDMINE_ROOT="/var/www/redmine" | |
BACKUP_FILENAME='backup_redmine_'`date +%Y%m%d`'.tar.bz2' | |
DB_DUMP_FILENAME='db_redmine_'`date +%Y%m%d`'.sqlc' | |
if [ ! -d "$BACKUP_ROOT" ]; then | |
mkdir $BACKUP_ROOT | |
fi |
Key | Mac | Windows | Linux | Notes | |
---|---|---|---|---|---|
rbKeyUp | 126 | 26 | 103 | ||
rbKeyDown | 125 | 28 | 108 | ||
rbKeyLeft | 123 | 25 | 105 | ||
rbKeyRight | 124 | 27 | 106 | ||
rbKeyBackspace | 117 | 8 | 14 | ||
rbKeyEnter | 76 | * | 28 | ||
rbKeyHome | 115 | 36 | 102 | ||
rbKeyEnd | 119 | 35 | 107 | ||
rbKeyPageDown | 121 | 34 | 109 |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
server { | |
listen 80; | |
server_name subdomain.example.com; | |
access_log /var/log/nginx/example.access.log; | |
location / { | |
if ($http_origin ~* (https?://.*\.example\.com(:[0-9]+)?)) { | |
set $cors "true"; |
The GCC distributed with CentOS 6 is 4.4.7, which is pretty outdated. I'd like to use gcc 4.8+. Also, when trying to install Linuxbrew you run into a dependency loop where Homebrew's gcc depends on zlib, which depends on gcc. Here's how I solved the problem.
Note: Requires sudo
privileges.
function vacation() { | |
/* | |
* trigger when someone submits the form | |
* 1. add an event to calendar | |
* 2. send a message to slack channel | |
*/ | |
// the sheet for form data is called "data" | |
var sheetName = 'data'; | |
var calendarID = ''; |