Skip to content

Instantly share code, notes, and snippets.

Mark Maglana relaxdiego

Block or report user

Report or block relaxdiego

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View domotz-on-ubuntu-core
mmaglana@localhost:~$ sudo -i
root@localhost:~# cd /var/snap/domotzpro-agent-publicstore/common/log
root@localhost:/var/snap/domotzpro-agent-publicstore/common/log# ls -al
total 8
drwxr-xr-x 2 root root 4096 Dec 5 02:59 .
drwxr-xr-x 5 root root 4096 Dec 5 02:59 ..
root@localhost:/var/snap/domotzpro-agent-publicstore/common/log# systemctl | grep domotz
View gist:ae12e1a2508920dff1f30f56d9fdc814
mmaglana@localhost:~$ sudo cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu Core 18"
mmaglana@localhost:~$ sudo cat /etc/os-release
NAME="Ubuntu Core"
VERSION="18"
ID=ubuntu-core
View var-log-syslog
Nov 29 08:54:22 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Nov 29 08:54:22 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Nov 29 08:54:24 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: Skip the Updater simulation, status=(ubuntu_core,undefined)
Nov 29 08:54:24 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: MAIN - Start agent [2.8.1-b001] at Fri Nov 29 2019 08:54:24 GMT+0000 (GMT)
Nov 29 08:54:24 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: MAIN - +------------------------------------------------+
Nov 29 08:54:24 raspberrypi domotzpro-agent-publ
View byobu-keybindings.tmux
#
# Installation:
#
# wget -O ~/.byobu/keybindings.tmux byobu.relaxdiego.com
# tmux source-file ~/.byobu/keybindings.tmux
#
unbind-key -n C-a
set -g prefix ^A
set -g prefix2 F12
View noob-automation.sh
#!/bin/bash
set -e
arch=${1:-amd64}
repo=${2:-"http://ftp.us.debian.org/debian/dists/stable/main"}
url="${repo}/Contents-${arch}.gz"
gz_path="$HOME/.deb_content_files/$(sed -r 's|https?://||g' <<< $url)"
txt_path=${gz_path/%.gz/}
View guestbook.yml
kind: List
apiVersion: v1
items:
- kind: Namespace
apiVersion: v1
metadata:
name: guestbook
- kind: Deployment
@relaxdiego
relaxdiego / upload-github-release-asset.sh
Created Jul 4, 2017 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
View upload-github-release-asset.sh
#!/usr/bin/env bash
#
# Author: Stefan Buck
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
# * repo
@relaxdiego
relaxdiego / readme.adoc
Created May 18, 2017 — forked from arun-gupta/readme.adoc
Kubernetes Cluster on AWS
View readme.adoc
  1. kops: https://github.com/kubernetes/kops

    1. Getting Started Guide: https://github.com/kubernetes/kops/blob/master/docs/aws.md

    2. Installing Kubernetes on AWS with kops: https://kubernetes.io/docs/getting-started-guides/kops/

    3. Mulit-master Kubernetes Cluster on AWS with kops: http://blog.arungupta.me/multimaster-kubernetes-cluster-amazon-kops/

    4. Booting Kubernetes on Amazon Elastic Compute with kops: https://deis.com/docs/workflow/quickstart/provider/aws/boot/

    5. Setting up an HA Kubernetes Cluster in AWS with private topology with kops 1.5.1: https://www.nivenly.com/kops-1-5-1/

    6. Kubernetes on AWS: https://daemonza.github.io/2017/01/15/kubernetes-on-aws/

    7. Your 2nd day with Kubernetes on AWS: https://www.nivenly.com/2nd-hour/

  2. Tectonic (Terraform): http://github.com/coreos/tectonic-installer

@relaxdiego
relaxdiego / golang-tls.md
Last active May 23, 2017 — forked from denji/golang-tls.md
OpenSSL TLS
View golang-tls.md

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@relaxdiego
relaxdiego / README.md
Created Mar 23, 2017 — forked from dnozay/README.md
jenkins groovy scripts collection.
View README.md
You can’t perform that action at this time.