Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pfaffman's full-sized avatar

Jay Pfaffman pfaffman

View GitHub Profile
@pfaffman
pfaffman / README.md
Last active December 19, 2015 16:59 — forked from mbostock/.block
@pfaffman
pfaffman / README.md
Last active December 19, 2015 16:59 — forked from mbostock/.block
@pfaffman
pfaffman / README.md
Last active December 19, 2015 17:08 — forked from mbostock/.block

Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.

#!/bin/bash
### Setup a wifi Access Point for Fall 2013 critter corral study
# based on from https://gist.github.com/dashohoxha/5767262/
# unlike the above script, this configures hotspot to run at boot
### make sure that this script is executed as root
if [ $(whoami) != 'root' ]
then
echo "
This script should be executed as root or with sudo:
sudo $0
@pfaffman
pfaffman / resize-lxd-disk-space.sh
Last active August 12, 2018 17:49 — forked from mifix/resize.sh
LXD - ZFS - resize
#!/usr/bin/env bash
# make sure zfs autoexpand is enabled (only needed once)
sudo zpool set autoexpand=on lxd
sudo truncate -s 20G /var/lib/lxd/zfs.img
# Make zfs realize the fact that partition has been changed and make zpool
# use the new partition which is actually the same one
sudo zpool online -e lxd /var/lib/lxd/zfs.img /var/lib/lxd/zfs.img
@pfaffman
pfaffman / passwordless-ssh.md
Last active January 12, 2018 19:42 — forked from willemo/passwordless-ssh.md
Passwordless SSH/SFTP access to a server

Passwordless SSH/SFTP for dummies

To get SSH or SFTP access to a server without using a password you need to have a SSH key pair for each computer you want to be able to access the server from. In this document I’ll describe the steps you need to take to generate a key pair if you don’t have one already. If you do, you can use your public key(s) to get access to the server.

I'll also explain how to connect to your server using Cyberduck. Click here to skip to that part.

Disclaimer and stuff

This guide is written with newbies in mind, so I'm very thorough in describing the steps that you must take. This guide will not cover setting up the server side of this system. It assumes that there's a server running with SSH enabled.

@pfaffman
pfaffman / .gitlab-ci.yml
Created March 28, 2022 12:51 — forked from pschichtel/.gitlab-ci.yml
Gitlab CI setup to build the discourse docker image on a docker-based gitlab-runner
services:
- name: postgres:12-alpine
alias: bootstrap-postgres
- name: redis:6
alias: bootstrap-redis
variables:
POSTGRES_DB: bootstrap
POSTGRES_USER: bootstrap
POSTGRES_PASSWORD: ''