Skip to content

Instantly share code, notes, and snippets.

View dchandekstark's full-sized avatar

David Chandek-Stark dchandekstark

  • Duke University Libraries
  • Durham, North Carolina USA
View GitHub Profile
@mosquito
mosquito / README.md
Last active May 4, 2024 12:42
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@escowles
escowles / access.ttl
Last active August 29, 2015 14:07
Fedora access policy proposal
# namespaces
@prefix f: <http://fedora.info/definitions/v4/access#> .
# public
<http://example.edu/object/1>
f:accessPolicy <http://example.edu/access/public> .
<http://example.edu/object/1/content>
f:accessPolicy <http://example.edu/access/public> .
# campus-only
@jeremyf
jeremyf / tools-for-troubleshooting-ruby.md
Last active February 7, 2018 19:05
Tools for Troubleshooting Ruby
@madtrick
madtrick / remote_authenticatable.rb
Created October 19, 2012 08:43
Example module to perform remote authentication with Devise
module Devise
module Models
module RemoteAuthenticatable
extend ActiveSupport::Concern
#
# Here you do the request to the external webservice
#
# If the authentication is successful you should return
# a resource instance
@mjgiarlo
mjgiarlo / .bashrc
Created October 10, 2012 18:24
handy bash modifications for Hydra hackers
# Makes your prompt look like: http://i.imgur.com/Q647p.png
# I put this stuff in .bashrc, but you may prefer .bash_profile or .profile
# ...
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
ORANGE="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
PURPLE="\[\033[0;35m\]"
CYAN="\[\033[0;36m\]"