Skip to content

Instantly share code, notes, and snippets.

View caccialdo's full-sized avatar

Arnaud Ceccaldi caccialdo

  • Deliveroo
  • London, UK
View GitHub Profile
@caccialdo
caccialdo / create-ssl-cert-osx.sh
Last active March 9, 2018 15:50
Creating and registering a custom SSL certificate on OSX
# Prerequisite: openssl
openssl req -subj '/CN=example.com/O=Acme Inc/C=UK' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout sslCertificate.key -out sslCertificate.crt
sudo security add-trusted-cert -d -r trustRoot -p ssl -k /Library/Keychains/System.keychain sslCertificate.cer

Keybase proof

I hereby claim:

  • I am caccialdo on github.
  • I am caccialdo (https://keybase.io/caccialdo) on keybase.
  • I have a public key ASDTocQA-rfod-Dh2uG-Bmnw33WcY9t-KCfwRpbsMpEDmgo

To claim this, I am signing this object:

@caccialdo
caccialdo / browser2svg.js
Created March 6, 2014 15:26
CSS styled SVG to Standalone SVG
/*jslint vars:true, regexp: true*/
/*global copy*/
(function () {
var svg = document.querySelector('svg'),
styles = [
'stroke-width',
'color',
'stroke',
'fill',
@caccialdo
caccialdo / benchmark.js
Created February 19, 2014 00:12
DOM creation & update benchmark
(function () {
// Creation V1
console.time('v1');
var s = document.createElement('select'),
i, html = '';
s.multiple = true;
for (i = 0; i < 5000; i++) {
html += '<option selected value="' + i + '">id #' + i + '</option>';
}
s.innerHTML = html;