Skip to content

Instantly share code, notes, and snippets.

View julianpistorius's full-sized avatar

Julian Pistorius julianpistorius

View GitHub Profile
@NickolausDS
NickolausDS / tar_and_transfer.py
Last active June 22, 2021 20:33
A simple Tar and Transfer flow written in Gladier
"""
Requires Gladier and Gladier Tools.
pip install gladier gladier-tools
"""
from gladier import GladierBaseClient, generate_flow_definition
from pprint import pprint
@generate_flow_definition
class TarAndTransfer(GladierBaseClient):
@mootpointer
mootpointer / too_afraid.md
Last active October 5, 2021 01:29
Too Afraid to Try

Too afraid to try: Innovation is impossible without psychological safety

Innovation and creativity are inextricably linked. However, in the murky waters of ambiguity we often lose our way. We cling to what is known and what is safe, and create environments where accountability and preserving the status quo trumps the potential gains of innovation. For us to truly innovate, we need to foster environments of psychological safety: where we are certain about some things so we can embrace the uncertainty of others. In this session we will dig into research, some stories from the trenches and best practices to find how we can unlock innovation and creativity through creating a place where your team feels safe to try.

Resources

Books

The Fearless Organisation - Amy Edmondson: A book from the researcher who brought psychological safety to the fore. Brings stories of what psychological safety looks like (and

@ashiklom
ashiklom / docker.org
Created August 21, 2019 15:11
PNNL PEcAn setup

PIC setup notes

VM instance setup

Start at cloud management console (https://dashboard.cloud.pnnl.gov).

Go to “Instances”, then “Launch Instance”.

Details: Give it a name (e.g. “pecan1”) Availability zone “nova” (only option).

@linuxmalaysia
linuxmalaysia / README-autossh-systemd.txt
Last active April 3, 2024 16:33
Autossh using systemd
1) ==== Autossh using systemd ====
Example from
https://gist.github.com/drmalex07/c0f9304deea566842490
2) =============
Install autossh

So, as I mentioned last time, I have two fundamental goals with dat that are not addressed by simply running dat share.

  • Uptime: making sure that the site is seeded even if my local laptop is closed, eaten by a bear, or disconnected from the internet
  • Resilience: ensuring that there's a way to restart my website if the original seeding computer is lost. I try to make everything on my primary work/personal computer work in such a way that I can recover it all, easily, onto a new machine if I need to

To break these down a bit more, uptime is a combination of two things:

  • Ensuring that there are seeders
  • Ensuring that those seeders are seeding, and they're up-to-date
@max-mapper
max-mapper / Containerfile
Last active May 4, 2018 23:22
CALeDNA container (build with npm i mkcontainer -g)
ENV NSPAWN_BOOTSTRAP_IMAGE_SIZE=10GB
FROM ubuntu:xenial
# set unlimited bash history
# nspawn needs resolv.conf to be set up for internet to work
# password gets changed so we can login later
RUN mkdir /usr/local/anacapa && \
cd /usr/local/anacapa && \
echo "export HISTFILESIZE=" >> .bashrc && \
echo "export HISTSIZE=" >> .bashrc && \
@alexellis
alexellis / k8s-pi.md
Last active April 11, 2024 14:17
K8s on Raspbian
@mwvaughn
mwvaughn / DockerInProduction.md
Created April 11, 2017 00:00
Docker In Production

Docker In Production

There was once an oral surgeon named Lytle S. Adams. He lived a long time ago, when America was fighting a war against Japan. Japan had attacked a military base in Hawaii, and—the day that happened—Adams was on vacation at Carlsbad Caverns. That’s a system of caves in New Mexico, where thousands and thousands of bats live. Adams was very impressed with the bats, and he came up with an idea: a swarm of weaponized bats, with miniature incendiary bombs strapped to their bodies—bats that would be dropped over Japanese cities to streak through the air, scatter far and wide, and then explode, sparking thousands of little fires all over the place, burning down buildings and frightening everyone.

Adams was friendly with Eleanor Roosevelt, the president’s wife, and he used his connections to send a brief to the president; the president gave it to a military commander with a note that said, ‘This man is not a nut.’ And so, by 1943, there was a top secret bat-bomb project up a

@remcowesterhoud
remcowesterhoud / behave-parallel.py
Last active January 19, 2022 20:24
All credit goes to s1ider https://gist.github.com/s1ider/f13c2f163282dbec7a61. All I did was fix it up, made it work in Python3 and added Behave Userdata support
"""
Behave runner for running features asynchronously.
"""
from multiprocessing import Pool
from subprocess import call, Popen, PIPE
from glob import glob
import logging
import argparse
import json
from functools import partial
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active April 30, 2024 01:32
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target