This file contains hidden or 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 | |
| if [ "$#" -ne 3 ]; then | |
| echo "usage:" | |
| echo " ipfs-publish-remote.sh <keyname> <dir> <host>" | |
| echo " example: ipfs-publish-remote.sh keyname output/rootdir [email protected]" | |
| exit 1 | |
| fi | |
| KEYNAME=$1 | |
| DIR=$2 | |
| HOST=$3 |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Lonely Women Cooks For Nobody</title> | |
| <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"> | |
| <link rel="schema.DCTERMS" href="http://purl.org/dc/terms/"> | |
| <meta name="DC.title" content="Lonely Women Cooks For Nobody<"> | |
| <meta name="DC.creator" content="William Clinton (http://www.man-has-his-needs.com/"> | |
| <meta name="DC.subject" content="Politics"> |
This file contains hidden or 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
| app: | |
| image: my/webapp:latest | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.frontend.rule=Host:supercoolapp.com" | |
| - "traefik.frontend.errors.network.backend=error" | |
| - "traefik.frontend.errors.network.query=/{status}.html" | |
| - "traefik.frontend.errors.network.status=500-511" | |
| - "traefik.port=3000" | |
| error_pages: |
This file contains hidden or 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
| #cloud-config | |
| # vim: syntax=yaml | |
| # | |
| # The current version of cloud-init in the Hypriot rpi-64 is 0.7.9 | |
| # When dealing with cloud-init, it is SUPER important to know the version | |
| # I have wasted many hours creating servers to find out the module I was trying to use wasn't in the cloud-init version I had | |
| # Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html | |
| # Set your hostname here, the manage_etc_hosts will update the hosts file entries as well |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # Usage: ansible-log-analyzer.py [LOGFILE] | |
| import re | |
| import sys | |
| from datetime import datetime, timedelta | |
| TASK_RE = re.compile(r'(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}) p=\d+ u=[\w-]* \|\s*TASK: \[(.*)\]') |
This file contains hidden or 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
| PACKAGE_NAME := $(shell basename "$(shell pwd)") | |
| APP_PID := $(shell adb shell ps | awk -F q=$(PACKAGE_NAME) '$0 ~ q { print $2 }') | |
| APKFILE := app/build/outputs/apk/apk-debug.apk | |
| .PHONY: all clean build logs install | |
| all: build install logs | |
| build: | |
| @./gradlew assembleDebug |
This file contains hidden or 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
| Create the structure above and download the required libraries | |
| *** You must run this on server (e.g. on a local Apache or Node.js) because RequireJS's text-plugin won't be able to fetch the required handlebar-templates due to browser-security. *** |
This file contains hidden or 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
| [slashnet] | |
| client = yes | |
| accept = 58697 | |
| connect = us.slashnet.org:6697 |