Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
# Hosts file generated at Tue May 31 18:46:48 CDT 2022
0.0.0.0 000001.net.daraz.com
0.0.0.0 0000rrrvvv.duckdns.org
0.0.0.0 000-038.net.daraz.com
0.0.0.0 0001.2waky.com
0.0.0.0 0001-qemu-deteministic-record-and-replay.net.daraz.com
0.0.0.0 000-221.net.daraz.com
0.0.0.0 0001.best
0.0.0.0 0005.net.zooplus.com
#cloud-config
hostname: ros01.lan.justyn.io
ssh_authorized_keys:
- github:justyns
rancher:
resize_device: /dev/sda
@justyns
justyns / GnuPG-2.2.md
Last active October 2, 2019 04:55 — forked from simbo1905/GnuPG-2.2.md
Build/install instructions for GnuPG 2.2.x on Centos 7 and similar distros (formerly for 2.1.x)

GnuPG 2.2.x Build Instructions

Below are my build instructions for GnuPG 2.2.17, released on July 12th, 2018. These instructions are built for a headless Centos 7 LTS server (specificaly the openshift/base-centos7 docker image).

You use the below install script to install GnuPG 2.2.x by running the following commands:

# if you are root in a docker image:
curl -OL "https://gist.githubusercontent.com/justyns/79e7e8a0750abb609a05fca50956e4a3/raw/1ca349eaa93247a18047416a44c05480669f5d86/install-gnupg22.shsh" && bash ./install-gnupg22.sh
@justyns
justyns / README.md
Last active January 14, 2019 22:25 — forked from atheiman/README.md
Vault secret saved as file in app pod

These Kubernetes resource manifest yaml files demonstrate

  1. vault.yaml
  • setting up a test vault service
  • configuring the vault service with kubernetes auth and a role for a test app
  1. app.yaml
  • running an app with a vault-init initContainer to login to vault and obtain a token
  • a vault-secret-manager container to continuously interact with vault throughout the lifecycle of the app
  • an app container to use the secret saved by the vault-secret-manager container
@justyns
justyns / hass
Created September 26, 2016 03:55 — forked from damoun/hass
home-assistant rc script for Freebsd
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: hass
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
# /srv/salt/formula1/pillar/formula1.sls
formula1:
some: stuff
foo:
- bar
@justyns
justyns / install.sh
Last active January 13, 2016 20:12
Modified version of the php script from https://www.zabbix.com/wiki/howto/monitor/db/mysql/extensive_mysql_monitoring_including_replication The regex wasn't matching anything for me. It now matches Server= and Hostname= correctly
wget -O /etc/zabbix/mysql.php https://gist.github.com/raw/4604061/4026d686f69b85c8617e494ef9adb919cb7a2ea4/zabbix-mysql.php
echo 'UserParameter=mysql.daily,php /etc/zabbix/mysql.php daily root' >> /etc/zabbix/zabbix_agentd.conf
echo 'UserParameter=mysql.live,php /etc/zabbix/mysql.php live root' >> /etc/zabbix/zabbix_agentd.conf
import redis
import web
SESSION = 'SESSION:'
class RedisStore(web.session.Store):
"""Store for saving a session in redis:
import rediswebpy
session = web.session.Session(app, rediswebpy.RedisStore(), initializer={'count': 0})

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
#!/usr/bin/php
<?php
/**
* Zabbix notification script, used to send zabbix notifications via pushover
* to smartphones like an SMS.
*
* Usage: sendPushoverNotification <pushover-user-key> <subject> <message>
* @author Marijn Koesen
* @version 0.1