- Create a new directory;
mkdir Apple\ Enterprise
cd Apple\ Enterprise
- Generate a certificate signing request
openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
mkdir Apple\ Enterprise
cd Apple\ Enterprise
openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
#!/usr/bin/env python | |
# | |
# Scripts download oui.txt from web and load data to PostgreSQL database. | |
# | |
# Dariusz Pawlak <[email protected]> | |
# 2014.05.16 | |
# | |
# | |
import re | |
import urllib |
-- Functions to create and draw histograms with PostgreSQL. | |
-- | |
-- psql# WITH email_lengths AS ( | |
-- -# SELECT length(email) AS length | |
-- -# FROM auth_user | |
-- -# LIMIT 100 | |
-- -# ) | |
-- -# SELECT * FROM show_histogram((SELECT histogram(length, 0, 32, 6) FROM email_lengths)) | |
-- bucket | range | count | bar | cumbar | cumsum | cumpct | |
-- --------+-------------------------------------+-------+--------------------------------+--------------------------------+--------+------------------------ |
mkdir ~/travis-ci-key && cd ~/travis-ci-key | |
# generate your private key | |
ssh-keygen -t rsa -f travis-ci-key | |
# put the public key on the server you will be connecting to | |
cat travis-ci-key.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys" | |
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key | |
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
/** | |
* A generic confirmation for risky actions. | |
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function | |
*/ | |
angular.module('app').directive('ngReallyClick', [function() { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
element.bind('click', function() { | |
var message = attrs.ngReallyMessage; |
server { | |
listen 80; | |
client_max_body_size 4G; | |
access_log /var/sites/webapp/logs/access.maintenance.log; | |
error_log /var/sites/webapp/logs/error.maintenance.log info; | |
server_name api.webapp.com; | |
# this guy redirects any path to /api.json |
machine github.com | |
login technoweenie | |
password SECRET | |
machine api.github.com | |
login technoweenie | |
password SECRET |