This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can use this Dockerfile to avoid having to install npm to | |
# get fluorine + electron installed locally. | |
# You still need node.js to run it, however. | |
# To use: | |
# docker build -t fluorine . | |
# docker run -it --rm -v $PWD:/home/user/work -e MY_UID=$UID fluorine | |
# The container will exit after fluorine + electron are set up; you can then | |
# remove the container with: | |
# docker rmi fluorine | |
# To run fluorine: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SConstruct template with an action that renders jinja2 templates | |
# using data from an yaml file, while providing a markdown filter. | |
import yaml | |
import jinja2 | |
import markdown | |
if False: | |
Environment = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -x | |
DISPLAY_SESSION=:1 | |
Xephyr "$DISPLAY_SESSION" -screen 1800x1000 & | |
PID_X=$! | |
trap 'kill "$PID_X"; wait "$PID_X"' EXIT | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure('2') do |config| | |
config.vm.box = 'dummy' | |
config.ssh.forward_agent = 'true' | |
config.vm.synced_folder '.', '/vagrant', type: 'sshfs' # only works with ubuntu | |
config.vm.provider :aws do |aws, override| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "debian/stretch64" | |
# config.vm.box = "debian/buster64" | |
config.vm.provider "libvirt" do |v| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=${1?usage: $0 <dir> <img>} | |
OUT=${2?usage: $0 <dir> <img>} | |
set -e -x | |
rm -f "$OUT" | |
trap 'rm -f $OUT' EXIT INT | |
virt-make-fs --partition=mbr --type=ext3 --format=raw --size=+300M "$DIR" "$OUT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEV=${1?must specify a device} | |
function finish { | |
for d in boot dev/pts dev proc sys; do | |
if test -d "$PWD/usbroot/$d" && mount | grep -q "$PWD/usbroot/$d"; then | |
umount "$PWD/usbroot/$d" | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGET=${1-PWD} | |
shift | |
TMP=$(mktemp) | |
trap 'rm -f $TMP' EXIT | |
chmod u+x "$TMP" | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2020 Leandro Lisboa Penz <lpenz@lpenz.org> | |
// This file is subject to the terms and conditions defined in | |
// file 'LICENSE', which is part of this source code package. | |
use anyhow::Result; | |
fn main() -> Result<()> { | |
Ok(()) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ansible -c local localhost -m apt_repository -a "repo='deb https://packagecloud.io/lpenz/debian/debian/ buster main' update_cache=no" |