Skip to content

Instantly share code, notes, and snippets.

View cnf's full-sized avatar

Frank Rosquin cnf

View GitHub Profile
@cnf
cnf / NAS_Parts.md
Last active December 20, 2015 12:39
NAS Parts
@cnf
cnf / toolkit.md
Last active December 23, 2015 01:49
IT toolkit planning
@cnf
cnf / docker.md
Last active January 4, 2016 01:29
#!/bin/sh
# Frank Rosquin <frank.rosquin@gmail.com>
MAC=$1
echo "Calculating ipv6 for $MAC"
LEAD=`echo $MAC|awk -F':' '{ print $1}'`
FIXED=`echo $MAC|awk -F':' '{ print tolower($2":"$3":"$4":"$5":"$6)}'`
# TODO: TOGGLE this
@cnf
cnf / functions.sh
Created October 8, 2016 16:18
OpenStack Keystone setup scripts
#!/bin/sh
testexit() {
if [ ! $? -eq 0 ]; then
echo "something went wrong, exiting"
exit 1
fi
}
echoerr() {
@cnf
cnf / _game_pc_parts_2017.md
Last active May 30, 2017 10:57
Gaming PC Parts

Game PC Parts 2017

Prices are approximations

Part Specifics Price
CPU [7700k][cpu] € -
Fan [Cryorig H7][fan] € -
RAM [Corsair 16G][ram] € -
GPU Inno3D [1080Ti][gpu] € -
@cnf
cnf / injector_configuration.yml
Created October 29, 2017 11:45
Ansible Tower Credential Type for vmware.py
env:
VMWARE_HOST: '{{hostname}}'
VMWARE_PASSWORD: '{{password}}'
VMWARE_SERVER: '{{hostname}}'
VMWARE_SSLCHECK: '{{ "True" if checkssl else "False" }}'
VMWARE_USER: '{{username}}'
VMWARE_USERNAME: '{{username}}'
VMWARE_VALIDATE_CERTS: '{{ "True" if checkssl else "False" }}'
@cnf
cnf / Notes.md
Last active March 10, 2018 01:59
Warframe Notes & Instructions
@cnf
cnf / Dockerfile
Created May 26, 2015 18:47
VyOS Docker Build
FROM debian:squeeze
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y wget \
&& wget -O - http://packages.vyos.net/vyos-pubkey.gpg | apt-key add - \
&& echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/bp.list \
&& apt-get update \
&& apt-get -t squeeze-backports install -y squashfs-tools \
@cnf
cnf / alarm_triggers.yaml
Created June 29, 2022 19:42
Alarm Triggers
blueprint:
name: Alarm Triggers
description: Trigger the alarm
domain: automation
input:
sensor:
name: Sensors
description: Select the Sensors you want to trigger on.
selector:
entity: