Skip to content

Instantly share code, notes, and snippets.

domain = "*.example.com"
subjectAltDomains = [ domain, "example.com" ]
require 'openssl'
puts "Generating public and private keys..."
key = OpenSSL::PKey::RSA.new(2048)
subject = "/C=US/ST=California/L=Los Angeles/O=Example Inc./CN=#{domain}"
cert = OpenSSL::X509::Certificate.new
@first-developer
first-developer / deis.py
Created August 22, 2014 15:58
A clean way of build command line tools in python
#!/usr/bin/env python
"""
The Deis command-line client issues API calls to a Deis controller.
Usage: deis <command> [<args>...]
Auth commands::
register register a new user with a controller
login login to a controller
@first-developer
first-developer / scripts.sh
Last active August 29, 2015 14:05
Exemple de shell script
#!/bin/bash
# --------------------------------------------------------------------------
# Script : find_local_static_links_on
# Created on : 12/04/14
# Project : RUN_TEAM
# Author : <author>
# Company : COMPANY
# Copyright : (c) 2014 - COMPANY S.A.S
# --------------------------------------------------------------------------

Happy Time Go Libraries.

Another curated list like awesome-go.
Not complete. Not authoritative. Not cupcake.
Send suggestions: @squarism :)
☆ = Github stars (in September 2014)


Adapters and Drivers

UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens
- What's new in Cocoa
- Accessibility in iOS
- Building User Interfaces for iOS 7
- Getting Started with UIKit Dynamics
- What's new in Cocoa Touch
- What's New With Multitasking
- Best Practices for Cocoa Animation
- Improving Power Efficiency with App Nap
- Introducing Text Kit
/*
// Usage:
gulp.task('docs', function(cb) {
gulp.src('path/to/your/src')
.pipe(hologram(cb));
});
*/
var gulp = require('gulp'),
notify = require('gulp-notify'),
# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
cd /tmp
curl -O https://ftp.gnu.org/gnu/bash/bash-4.3.30.tar.gz
tar xzf bash-4.3.30.tar.gz
cd bash-4.3.30/
./configure --prefix=/usr/local/bin && make && sudo make install
@first-developer
first-developer / jvmgc.go
Last active August 29, 2015 14:22
go script to parse JVM GC log
// jummy project main.go
package main
import (
"fmt"
"regexp"
"time"
)
const (
@first-developer
first-developer / zsh.md
Last active August 29, 2015 14:25 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@first-developer
first-developer / httpd_avg_size.bash
Created July 29, 2015 11:37
Return the average memory size of httpd processes running on a server
#!/bin/bash
# --------------------------------------------------------------------------
# Script : httpd_avg_mem_size
# Created on : 27/07/2015
# Copyright : (c) 2015 - fdsolutions
# --------------------------------------------------------------------------
usage(){