Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View EggieCode's full-sized avatar

Egbert Verhage EggieCode

View GitHub Profile
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active April 19, 2024 12:30
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@gwillem
gwillem / ansible-bootstrap-ubuntu-16.04.yml
Created June 16, 2016 21:59
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# gwillem@gmail.com
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
@gaqzi
gaqzi / upload-archive-to-phonegap-build.sh
Created September 4, 2013 17:29
Takes a zip/tar.gz and uploads it to PhoneGap build while showing a progress bar.
#!/bin/bash
TOKEN=phonegap-build-access-token
APP_ID=phonegap-build-app-id
PROGRESS_FILE=/tmp/$TOKEN-progress
echo "" > $PROGRESS_FILE
tail -f $PROGRESS_FILE &
curl -X PUT -F file=@$1 https://build.phonegap.com/api/v1/apps/$APP_ID?auth_token=$TOKEN -o /tmp/$TOKEN-progress --progress-bar
kill $!