FROM ubuntu:14.04
RUN apt-get -y update
RUN apt-get -y install vim
RUN apt-get -y install curl
ARG GIT_COMMIT=unknown
LABEL git-commit=$GIT_COMMIT
This file contains 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
## Add to crontab -e with "/bin/bash /root/DropboxBackup.sh" | |
## Taken from http://davehope.co.uk/Blog/backup-your-linux-vps-to-dropbox/ | |
#!/bin/bash | |
DROPBOX_USER="Your Dropbox username" | |
DROPBOX_PASS="Your Dropbox password" | |
DROPBOX_DIR="Directory in your dropbox account to store the backups, e.g. /backups" | |
BACKUP_SRC="/home /var/www /var/git /etc /root" | |
BACKUP_DST="/tmp" | |
MYSQL_SERVER="127.0.0.1" |
This file contains 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 | |
# Retrieve public and private ip of instance | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
mkdir ~/docker-ca | |
chmod 0700 ~/docker-ca | |
cd ~/docker-ca || exit 1 |
This file contains 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 | |
# Retrieve public and private ip of instance | |
PUBLIC_HOSTNAME=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname) | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
# Generate openssl config for self-signed certificate with SANs | |
cat << EOF > ~/domain.cnf | |
[ ca ] |
This file contains 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
### | |
# run command: docker stack deploy -c docker-compose.yml dockercoins | |
### | |
version: "3" | |
services: | |
rng: | |
image: riggerthegeek/rng | |
ports: |
This file contains 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
const io = require('socket.io-client'); | |
const socket = io('http://example.com/room/name'); | |
socket | |
.on('connect', (...args) => { | |
// Do something on connection | |
}) | |
.on('event1', (...args) => { | |
// Do something when an event is received |
I hereby claim:
- I am mrsimonemms on github.
- I am mrsimonemms (https://keybase.io/mrsimonemms) on keybase.
- I have a public key ASDWmVzBQL-wc2XXO0HEwvP2uCHQ2S-kfRgc_irSpRpsawo
To claim this, I am signing this object:
This file contains 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
CONTAINER_NAME ?= open-apiary | |
TAG ?= develop | |
IMAGE = registry.gitlab.com/mrsimonemms/open-apiary:${TAG} | |
destroy: | |
docker stop ${CONTAINER_NAME} || true | |
docker rm ${CONTAINER_NAME} || true | |
.PHONY: destroy | |
deploy: |
This file contains 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
2020/07/29 09:34:44 [DEBUG] azurerm_data_factory_dataset_delimited_text.example apply errored, but we're indicating that via the Error pointer rather than returning it: One of `http_server_location`, `blob_storage_location` must be specified to create a DataFactory Delimited Text Dataset | |
2020/07/29 09:34:44 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: One of `http_server_location`, `blob_storage_location` must be specified to create a DataFactory Delimited Text Dataset | |
2020/07/29 09:34:44 [ERROR] <root>: eval: *terraform.EvalSequence, err: One of `http_server_location`, `blob_storage_location` must be specified to create a DataFactory Delimited Text Dataset |
This file contains 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
const { promises: fs } = require('fs'); | |
/** | |
* Get Secret | |
* | |
* Get a secret | |
* | |
* @link https://docs.openfaas.com/reference/secrets/#use-the-secret-in-your-function | |
* @param {string} secretName | |
* @returns {Promise<string>} |