Skip to content

Instantly share code, notes, and snippets.

@derFunk
derFunk / generate-compose.sh
Last active December 27, 2017 10:48 — forked from lalyos/generate-compose.sh
generate docker-compose.yml by inspecting a running container
docker-yml() {
docker inspect -f $'
version: '2.2'
services:
{{.Name}}
image: {{.Config.Image}}
entrypoint: {{json .Config.Entrypoint}}
command: {{json .Config.Cmd}}
environment: {{range .Config.Env}}
- {{.}}{{end}}
@derFunk
derFunk / floatsign.sh
Last active June 3, 2016 01:44 — forked from mediabounds/floatsign.sh
Allow for different keychain usage and allow for resigning with Xcode > 6 (removed --resource-rules parameter)
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the