Skip to content

Instantly share code, notes, and snippets.

View denzuko's full-sized avatar
💬
linkedin.com/in/denzuko

Dwight Spencer denzuko

💬
linkedin.com/in/denzuko
View GitHub Profile
@denzuko
denzuko / ipfs-publish-remote.sh
Created July 23, 2019 19:44 — forked from rklaehn/ipfs-publish-remote.sh
Publishing to ipfs/ipns by key
#!/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
@denzuko
denzuko / index.html
Created August 22, 2019 16:32 — forked from jcanfield/index.html
DublinCore, Facebook Meta Tag and Geolocation Meta Tags (HTML5)
<!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">
@denzuko
denzuko / docker-compose.yml
Created August 28, 2019 15:18 — forked from anlek/docker-compose.yml
Setting up error page for traefik and it's applications
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:
@denzuko
denzuko / user-data-wifi.yml
Created September 28, 2019 03:25 — forked from DieterReuter/user-data-wifi.yml
HypriotOS cloud-init configuration for RPi3 WiFi Client
#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
@denzuko
denzuko / ansible-log-analyzer.py
Created September 30, 2019 00:45 — forked from dgoodwin/ansible-log-analyzer.py
Ansible Log Scraper
#!/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: \[(.*)\]')
@denzuko
denzuko / Makefile
Last active March 2, 2020 00:35 — forked from aldemirenes/android_build_run.sh
Shell scripts for Android development without needing to use Android Studio
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
@denzuko
denzuko / README
Last active December 14, 2021 09:31 — forked from artiee/README
Test setup for requirejs, backbone, underscore, handlebars...
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. ***
@denzuko
denzuko / stunnel.conf
Created October 1, 2022 07:30 — forked from nealey/stunnel.conf
stunnel configuration to connect to SSL+IRC
[slashnet]
client = yes
accept = 58697
connect = us.slashnet.org:6697