Skip to content

Instantly share code, notes, and snippets.

View delano's full-sized avatar

Delano delano

View GitHub Profile
@delano
delano / README.md
Last active September 23, 2024 19:34
Installing Onetime Secret on Ubuntu/Debian (using Podman) - v0.17.3

Guide to Running a Single Instance of OnetimeSecret on Ubuntu/Debian (Port 3000)

Version 0.17.3

This guide will walk you through the steps to set up and run a single instance of OnetimeSecret using Podman on an Ubuntu/Debian system. We will also install Redis, which is a required dependency for OnetimeSecret. The OnetimeSecret instance will be accessible on port 3000.

Prerequisites

  1. Ubuntu/Debian server: Ensure you have a working Ubuntu/Debian server with sudo privileges.
  2. Podman: Podman is required to run the OnetimeSecret container.
@delano
delano / docker-compose.yml
Created December 2, 2022 07:23 — forked from drzero42/docker-compose.yml
Postgres logical replication breakage
version: "3"
services:
master:
image: postgres:11
environment:
POSTGRES_PASSWORD: abc123
command: -c config_file=/etc/postgresql/postgresql.conf
volumes:
- ./postgresql.conf:/etc/postgresql/postgresql.conf
@delano
delano / README
Last active October 26, 2022 23:26 — forked from jdowning/ami-clean.sh
Script to clean up Ubuntu EC2 instance before packaging as an AMI
See: https://gist.githubusercontent.com/delano/4eee6bcfce0b6e3c83f1e98d9cd7af16
# = Rudy -- Skeleton configuration
#
# Rudy automatically looks for configuration files in the following
# locations (in this order):
#
# ./.rudy/config
# ~/.rudy/config
#
# ./Rudyfile
# ./machines.rb, ./routines.rb, ./commands.rb
@delano
delano / cltools.sh
Created June 15, 2016 22:51 — forked from jellybeansoup/cltools.sh
Install Autoconf and Automake on OS X Mountain Lion
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build

Keybase proof

I hereby claim:

  • I am delano on github.
  • I am delano (https://keybase.io/delano) on keybase.
  • I have a public key whose fingerprint is DAE4 DF31 4618 B56C 98C3 CBDF AE63 BC48 9CC3 BC2E

To claim this, I am signing this object:

[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@delano
delano / Distraction Free.sublime-settings
Created December 17, 2012 01:34
SublimeText2 Preferences
{
"line_numbers": true,
"gutter": true,
"draw_centered": false,
"wrap_width": 0,
"word_wrap": false,
"scroll_past_end": true
}
@delano
delano / gist:845643
Created February 26, 2011 21:29
Fix for "Errno::ETIMEDOUT: Operation timed out - connect(2)" when installing gems
# A DNS change to Rubygems.org is causing lingering issues. Namely,
# rubygems.org and production.s3.rubygems.org are still pointing to
# the old address. See:
# http://twitter.com/#!/gemcutter/status/30666857698557952
# The symptoms:
# $ gem install benelux --version 0.5.17
# ERROR: Could not find a valid gem 'benelux' (= 0.5.17) in any repository
# ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)