Skip to content

Instantly share code, notes, and snippets.

View robertdfrench's full-sized avatar
🌥️
Ask me about Doors!

Robert D. French robertdfrench

🌥️
Ask me about Doors!
View GitHub Profile
setup:
pipenv sync --dev
gen_requirements:
pipenv lock --pre --requirements > requirements.txt
gen_requirements_dev:
pipenv lock --pre --requirements --dev > requirements-dev.txt
.PHONY: build test
@nazarewk
nazarewk / ansible.cfg
Last active August 2, 2021 20:27
Ansible SSH Agent forwarding with Jump (bastion) host
[defaults]
sudo_flags = SSH_AUTH_SOCK="$SSH_AUTH_SOCK" -H -S -n
[ssh_connection]
ssh_args=-o ForwardAgent=yes
@rponte
rponte / get-latest-tag-on-git.sh
Last active December 9, 2024 00:27
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@dermesser
dermesser / libfcgi-example.c
Created July 3, 2014 11:14
In case anyone wants to see a multi-threaded FastCGI application written with the fcgiapp library.
# include <stdlib.h>
# include <stdio.h>
# include <sys/stat.h>
# include <pthread.h>
# include <fcgiapp.h>
const char* const sockpath = "/tmp/fcgicpp.sock";
@mikermcneil
mikermcneil / Installing Postgres On Joyent Smartos.sh
Created November 26, 2013 23:14
Installing PostgreSQL on Joyent SmartOS
pkgin -fy update
pkgin upgrade
pkgin -fy update
pkgin in postgresql91-server postgresql91-client