This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
repositories=/var/lib/registry/docker/registry/v2/repositories/ | |
printf 'Running Docker Registry garbage collection\n' | |
if ! docker container \ | |
exec \ | |
docker-registry_registry_1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Make script persistent. | |
#Persistent | |
; Recommended for performance and compatibility with future AutoHotkey releases. | |
#NoEnv | |
; Recommended for new scripts due to its superior speed and reliability. | |
SendMode Input | |
#SingleInstance force | |
Menu Tray, Tip, Snippets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
set -eu | |
setopt pipe_fail | |
setopt extended_glob | |
mkdir -p images \ | |
images/only-raw/raw \ | |
images/only-jpeg \ | |
images/jpeg-and-raw/raw \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.3' | |
services: | |
mariadb: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
volumes: | |
- ./wp/mariadb/conf:/etc/mysql/conf.d:ro | |
- ./wp/mariadb/data:/var/lib/mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:; if [ -z 0 ]; then | |
goto :windows | |
fi | |
# Linux script follows. | |
if [ ! -f .ruby-version ]; then | |
echo %ruby.version% > .ruby-version | |
fi | |
rbenv install --skip-existing && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://help.github.com/articles/about-git-subtree-merges/ | |
set -euo pipefail | |
red='\e[1;31m' | |
green='\e[1;32m' | |
yellow='\e[1;33m' | |
reset='\e[0m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'nanoc' | |
module Nanoc | |
module Filters | |
class SassWithCompass < Nanoc::Filter | |
identifier :sass_with_compass | |
type :text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM busybox | |
ARG FOO | |
RUN env && echo $FOO |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name;Age;City | |
Peter;42;New York | |
Paul;57;London | |
Mary;35;Munich | |
Jaques;66;Paris | |
Yuri;23;Moscow | |
Stefanie;47;Stockholm | |
Nadia;29;Madrid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
HostFactory.Run(x => | |
{ | |
x.Service<ClassThatHasStartAndStopMethods>(s => | |
{ | |
// optional, when you want an IoC to resolve deps. | |
s.ConstructUsing(settings => new MefBootstrapper(settings).Root); |
NewerOlder