// implementation detail relevant whenever code is edited.
'use strict';
// cloud-provider / trigger specifc dependancy relevant only to a single cloud provider.
const functions = require('firebase-functions');
// business logic dependancies relevant when understanding solution details, and when making changes.
const moment = require('moment'); // Moments library to format dates.
// implementation detail relevant whenever code is edited.
'use strict';
// cloud-provider / trigger specifc dependancy relevant only to a single cloud provider.
const functions = require('firebase-functions');
// business logic dependancies relevant when understanding solution details, and when making changes.
const moment = require('moment'); // Moments library to format dates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#generate private ca key | |
openssl genrsa -aes128 -out ca.key 2048 | |
#remove password form ca.key | |
openssl rsa -in ca.key -out ca_decrypted.key | |
#generage self signed ca cert | |
openssl req -new -x509 -days 365 -key ca_decrypted.key -out ca.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl pkcs12 -in Certificates.p12 -out temp.pem -passin pass: -passout pass:temppassword | |
openssl pkcs12 -export -in temp.pem -out Certificates-final.p12 -passin pass:temppassword -passout pass:newpassword | |
rm -rf temp.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will extract the certificate and key from an .ovpn file | |
# into their own files, which makes it possible to use them to configure | |
# the VPN using Ubuntu's network manager | |
# Usage example: | |
# >> ovpnconvert username.dev.ovpn | |
# You can keep following these instructions here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker rmi $(docker images -q) && echo "-------- ALL DONE ---------" && docker ps && docker ps -a && docker images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var now = NSDate() | |
var localTimeZone = NSTimeZone.systemTimeZone() | |
var rfc3339DateFormatter = NSDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ssZ") | |
rfc3339DateFormatter.locale = NSLocale( localeIdentifier: "en_US_POSIX") | |
rfc3339DateFormatter.timeZone = localTimeZone | |
var dateString = rfc3339DateFormatter.stringFromDate(now) | |
NSLog("RFC 3339 datetime: \(dateString)") | |
I hereby claim:
- I am dleonard00 on github.
- I am dug (https://keybase.io/dug) on keybase.
- I have a public key whose fingerprint is 16AD 7AC8 C7C6 20A1 C2F6 D343 3A04 FAAF A2FB E919
To claim this, I am signing this object:
NewerOlder