Credit to @jkishner for https://gist.github.com/jkishner/2fccb24640a27c2d7ac9
Also interesting: https://gist.github.com/cdown/1163649
#!/usr/bin/env bash | |
## | |
# @author J. Elliot Taylor (@jaytaylor) | |
# | |
# @date 2018-11-14 | |
# | |
# @description Andromeda postgres DB remote backup utility. | |
# |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"regexp" | |
"github.com/spf13/cobra" | |
) |
[Unit] | |
Description=NTP sync on boot | |
Wants=network-online.target | |
After=network.target network-online.target | |
[Service] | |
ExecStart=/sbin/ntpdate time.nist.gov | |
[Install] | |
WantedBy=multi-user.target |
#!/usr/bin/env bash | |
# | |
# Builds and prints java class dependency graph based on import references. | |
# Could be useful for extracting a portion of java files out of a project. | |
# | |
# Arg: <class-name> | |
# | |
# e.g. ./java-tree.sh CoreNLP/src TokenizerAnnotator | |
# |
Credit to @jkishner for https://gist.github.com/jkishner/2fccb24640a27c2d7ac9
Also interesting: https://gist.github.com/cdown/1163649
In this #HOWTO, we'll use a set of user:password credentials to obtain an auth token from an enterprise Docker Trusted Registry DTR (archived page snapshot of docs.docker.com/ee/dtr).
Sets system time based on what is reported by google.com. Useful for cases where it is not possible to use the standard ntpdate
command. For eample, if a Linux machine is on a network which is only able to reach the internet through an HTTP proxy.
Inspired by ryenus' answer @ https://superuser.com/a/807326/72342
# Download latest set_system_clock_from_google.sh script.
https://www.youtube.com/watch?v=6xpZbQsHSHU
Male: Oh Max, We go everywhere together,
right boy?
Female: At Petstuffers we know there's
nothing more then a relationship
between man and his dog, sometimes
you just can't let go.
python -c 'import json, sys, yaml ; y = yaml.safe_load(sys.stdin.read()) ; print(json.dumps(y))' |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Recursive AWS-style instance attributes downloader.""" | |
import logging | |
import os | |
import re | |
import requests |