Generate your CSR This generates a unique private key, skip this if you already have one.
sudo openssl genrsa -out etc/ssl/yourdomain.com/yourdomain.com.key 1024
Next generate your CSR (Certificate Signing Request), required by GoDaddy:
// requires AWS SDK | |
var AWS = require('aws-sdk') | |
, fs = require('fs'); | |
var s3 = new AWS.S3({ | |
apiVersion: '2006-03-01', | |
accessKeyId: 'AccessKey', | |
secretAccessKey: 'SecretKey', | |
region: 'region' | |
}); |
import time | |
from tornado import ( | |
concurrent, | |
gen, | |
httpserver, | |
ioloop, | |
log, | |
web | |
) |
import time | |
form tornado import ( | |
concurrent, | |
gen, | |
httpserver, | |
ioloop, | |
log, | |
process, | |
web |
'use strict'; | |
/* | |
# Javascript Prototyping Best Practices | |
* To create a class, create a constructor function with a `Name` and assign | |
it to a variable of the same `Name`. | |
* In this constructor only define properties using `this.prop` notation |
Generate your CSR This generates a unique private key, skip this if you already have one.
sudo openssl genrsa -out etc/ssl/yourdomain.com/yourdomain.com.key 1024
Next generate your CSR (Certificate Signing Request), required by GoDaddy:
Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* MCrypt API available online: | |
* http://linux.die.net/man/3/mcrypt | |
*/ | |
#include <mcrypt.h> |
# verifica encoding do arquivo | |
$ file -I script_perebento.sql | |
$ file -bI script_perebento.sql | |
# converte arquivo de ISO-8859-1 para UTF-8 | |
$ iconv -f ISO-8859-1 -t UTF-8 script_perebento.sql > script_bonitao.sql |
'use strict'; | |
var mysqlBackup = require('./mysql-backup'); | |
var schedule = require('node-schedule'); | |
schedule.scheduleJob({ hour: 22, minute: 0 }, mysqlBackup); |
location /resize { | |
alias /tmp/nginx/resize; | |
set $width 150; | |
set $height 100; | |
set $dimens ""; | |
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
set $width $1; | |
set $height $2; | |
set $image_path $3; |