Skip to content

Instantly share code, notes, and snippets.

source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# gem "backup", '~> 5.0.0.beta.2'
gem "backup", github: 'swelther/backup', ref: 'ae1c17cbf6b21c8689875d2c1f761d6d148aa6b5'
gem "net-ssh", ">= 4.2.0"
# neccessary for openssh keys with ed25519 like ecdsa; net-ssh 5.x supports ed25519 out of the box
gem "rbnacl", ">= 3.2.0, < 5.0"
@swobspace
swobspace / save-package-list.sh
Created July 13, 2019 08:53
Save fedora package list
#!/bin/bash
RELEASE=`cat /etc/fedora-release | sed 's/ /_/g'`
rpm --queryformat=%{NAME}"\n" -qa | sort > /var/lib/dnf/packages.$RELEASE.list
@swobspace
swobspace / update-git-repos.sh
Last active August 29, 2015 14:06
Update local git repositories if possible
#!/bin/bash
# check existing git directories for open commits/pushes
# and update via pull
export TO_COMMIT=()
export TO_PUSH=()
# REPOs=`find . -name .git`
# only one level
REPOs=`ls -d */.git`
@swobspace
swobspace / ruby-chef-solo-bootstrap.sh
Last active May 8, 2016 16:24
Bootstrap file for installing ruby, opscode chef, librarian-chef and related stuff on a minimal installed fedora or ubuntu machine for using chef-solo locally.
#!/usr/bin/env bash
# -------------------------------------------------
# set ruby version
VER=2.3
RUBYVERSION=${VER}.1
CHEFDIR=/var/lib/chef
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
DISTRIBUTION=`lsb_release -si`