To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
#!/bin/bash | |
# Automatically Updates System Time According to the NIST Atomic Clock in a Linux Environment | |
nistTime=$(curl -I --insecure 'https://nist.time.gov/' | grep "Date") | |
echo $nistTime | |
dateString=$(echo $nistTime | cut -d' ' -f2-7) | |
dayString=$(echo $nistTime | cut -d' ' -f2-2) | |
dateValue=$(echo $nistTime | cut -d' ' -f3-3) | |
monthValue=$(echo $nistTime | cut -d' ' -f4-4) | |
yearValue=$(echo $nistTime | cut -d' ' -f5-5) | |
timeValue=$(echo $nistTime | cut -d' ' -f6-6) |
#!/bin/bash | |
# Automatically Updates System Time According to the NIST Atomic Clock in a Linux Environment | |
nistTime=$(curl -I --insecure 'https://nist.time.gov/' | grep "Date") | |
echo $nistTime | |
dateString=$(echo $nistTime | cut -d' ' -f2-7) | |
dayString=$(echo $nistTime | cut -d' ' -f2-2) | |
dateValue=$(echo $nistTime | cut -d' ' -f3-3) | |
monthValue=$(echo $nistTime | cut -d' ' -f4-4) | |
yearValue=$(echo $nistTime | cut -d' ' -f5-5) | |
timeValue=$(echo $nistTime | cut -d' ' -f6-6) |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
apiVersion: pilot.kyber.network/v1alpha1 | |
kind: PrivateIngress | |
metadata: | |
name: aggregator | |
spec: | |
domains: | |
- aggregator-api.core-cluster.gke.develop.internal | |
routes: | |
- name: '' | |
match: |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
import os | |
import sys | |
import json | |
def err(msg, **kwargs): | |
print(msg, file=sys.stderr, **kwargs) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import platform | |
import random | |
import re | |
import string | |
import sys |
$ gpg --edit-key <uid>
gpg> trust
Please decide how far you trust this user to correctly verify other
users' keys (by looking at passports, checking fingerprints from
different sources, etc.)
#!/bin/bash | |
RED='\033[0;31m' | |
GRN='\033[0;32m' | |
BLU='\033[0;34m' | |
NC='\033[0m' | |
PS3='Please enter your choice: ' | |
options=("Disable Your GateKeeper" "Enable Your GateKeeper" "Allow Single App To ByPass The GateKeeper" "Quit") | |
select opt in "${options[@]}" |
#!/bin/bash | |
set -e | |
VAULT=".vault" | |
trap "rm -f $VAULT" EXIT | |
#================ | |
if ! command -v "ansible-vault" $> /dev/null; then | |
echo "Not found command 'ansible-vault'." | |
exit 1 |