Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
--- | |
# This task list is intended to be imported by playbooks, before any | |
# other tasks are performed. It lets us determine whether the configured SSH | |
# port is available, and lets us fall back to the default port if necessary. | |
# | |
# The use case here is when a role in the playbook is configured to change the | |
# sshd port, but the first time the role is executed the host is still | |
# listening on the default port. With this check in place, we can fall back | |
# to the default port on the first run, and then on subsequent runs use the | |
# configured port. |
#TabsToolbar { | |
direction: rtl; | |
} | |
#tabbrowser-tabs { | |
direction: ltr; | |
} | |
.titlebar-buttonbox { | |
display: flex; |
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
#!/bin/bash | |
compose_file_path=$1 | |
project_name=$2 | |
backup_path=$3 | |
function backup_volume { | |
volume_name=$1 | |
backup_destination=$2 |
export {} | |
declare global { | |
interface Date { | |
addDays(days: number, useThis?: boolean): Date; | |
isToday(): boolean; | |
clone(): Date; | |
isAnotherMonth(date: Date): boolean; | |
isWeekend(): boolean; | |
isSameDate(date: Date): boolean; |
#!/usr/bin/env python | |
# -*- coding: latin-1 -*- | |
# | |
# Query the dictionary http://dict.leo.org/ from within Python. | |
# This is based on an equivalent script for German/English by: | |
# | |
# Copyright (C) 2015 Ian Denhardt <ian@zenhack.net> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
public static class ExtensionMethods { | |
public static string ToUnderscoreCase(this string str) { | |
return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x.ToString() : x.ToString())).ToLower(); | |
} | |
} |