Skip to content

Instantly share code, notes, and snippets.

View danmutblix's full-sized avatar

danmut danmutblix

  • Broentech Solutions AS
  • Norway
View GitHub Profile
@danmutblix
danmutblix / flask_gunicorn_app.py
Created December 8, 2020 17:13 — forked from KatiRG/flask_gunicorn_app.py
Running Flask with Gunicorn
# This gist shows how to integrate Flask into a
# custom Gunicorn-WSGI application described
# here: http://docs.gunicorn.org/en/stable/custom.html
from __future__ import unicode_literals
import multiprocessing
import gunicorn.app.base
@danmutblix
danmutblix / nginx_deployment.yaml
Created December 7, 2020 23:17 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@danmutblix
danmutblix / README.md
Created June 19, 2020 14:27 — forked from PatrickLang/README.md
Yubikey + Windows

Using a Yubikey 4 on Windows

These are my notes on how to set up GPG with the private key stored on the hardware Yubikey. This will reduce the chances of your GPG private key from being stolen, and also allow you to protect other secrets such as SSH private keys.

It's just some notes and a partial worklog for now, but I may turn it into a full blog post later.

@danmutblix
danmutblix / git-hard-delete
Created June 3, 2020 09:26 — forked from srebalaji/git-hard-delete
Examples of git custom command
#!/bin/sh
branch=$1
if [ ! -z "$1" ]
then
git branch -D $branch
git push -d origin $branch
else
echo "Branch name is not specified"
### DML ###
# Keyspace Name
keyspace: stresscql
# The CQL for creating a keyspace (optional if it already exists)
keyspace_definition: |
CREATE KEYSPACE stresscql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
# Table name