For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| <select name="timezone_offset" id="timezone-offset" class="span5"> | |
| <option value="-12:00">(GMT -12:00) Eniwetok, Kwajalein</option> | |
| <option value="-11:00">(GMT -11:00) Midway Island, Samoa</option> | |
| <option value="-10:00">(GMT -10:00) Hawaii</option> | |
| <option value="-09:50">(GMT -9:30) Taiohae</option> | |
| <option value="-09:00">(GMT -9:00) Alaska</option> | |
| <option value="-08:00">(GMT -8:00) Pacific Time (US & Canada)</option> | |
| <option value="-07:00">(GMT -7:00) Mountain Time (US & Canada)</option> | |
| <option value="-06:00">(GMT -6:00) Central Time (US & Canada), Mexico City</option> | |
| <option value="-05:00">(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "reflect" | |
| ) | |
| type T1 struct { | |
| Field1 string |
You don't have to delete your local branch.
Simply delete your remote tracking branch:
git branch -d -r origin/<remote branch name>
(This will not delete the branch on the remote repo!)
See "Having a hard time understanding git-fetch"
there's no such concept of local tracking branches, only remote tracking branches.
| from __future__ import unicode_literals | |
| import os | |
| from .base import BASE_DIR | |
| LOGS_DIR = os.path.join(BASE_DIR, 'tmp/logs') | |
| LOGGING = { | |
| 'version': 2, | |
| 'disable_existing_loggers': False, | |
| 'filters': { |
| // haversin(θ) function | |
| func hsin(theta float64) float64 { | |
| return math.Pow(math.Sin(theta/2), 2) | |
| } | |
| // Distance function returns the distance (in meters) between two points of | |
| // a given longitude and latitude relatively accurately (using a spherical | |
| // approximation of the Earth) through the Haversin Distance Formula for | |
| // great arc distance on a sphere with accuracy for small distances | |
| // |
| KEY=XXXXXXXXXXXX | |
| HOST="https://metrics.crisidev.org" | |
| mkdir -p dashboards && for dash in $(curl -k -H "Authorization: Bearer $KEY" $HOST/api/search\?query\=\& |tr ']' '\n' |cut -d "," -f 5 |grep slug |cut -d\" -f 4); do | |
| curl -k -H "Authorization: Bearer $KEY" $HOST/api/dashboards/db/$dash > dashboards/$dash.json | |
| done |