This file contains 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
#!/bin/bash | |
# Generic file version GIT hook for Node/semver version tags | |
# (YAML, JSON, JavaScript, CoffeeScript, reStructuredText) | |
# Source: https://github.com/neilco/xcode-pre-commit/blob/master/git-init-pre-commit | |
# Adjusted for Darwin (uses BSD sed) | |
# Made to work from paths listed in .versioned-files.list | |
# Case allows easy per-project custom versioned file name/ext and format. |
This file contains 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 | |
set -e | |
resolve_link() { | |
$(type -p greadlink readlink | head -1) "$1" | |
} | |
abs_dirname() { | |
local cwd="$(pwd)" | |
local path="$1" |
This file contains 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
#!/bin/bash | |
# Slick Progress Bar | |
# Created by: Ian Brown (ijbrown@hotmail.com) | |
# Please share with me your modifications | |
# Note: From http://stackoverflow.com/questions/11592583/bash-progress-bar | |
# Functions | |
PUT(){ echo -en "\033[${1};${2}H";} | |
DRAW(){ echo -en "\033%";echo -en "\033(0";} | |
WRITE(){ echo -en "\033(B";} | |
HIDECURSOR(){ echo -en "\033[?25l";} |
This file contains 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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
exec: { | |
echo: { | |
command: 'echo Hello World!' | |
} | |
}, |
This file contains 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": "mautic/core", | |
"license": "GPL-3.0", | |
"type": "project", | |
"description": "Mautic Open Source Distribution", | |
"autoload": { | |
"psr-4": { | |
"Mautic\\": "app/bundles/", | |
"MauticPlugin\\": "plugins/", | |
"Mautic\\Middleware\\": "app/middlewares/" |
This file contains 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
default: test | |
demo: | |
@./_vc-conflicts.sh diff-file conflict-test.txt | |
@./_vc-conflicts.sh stat-file conflict-test.txt | |
@./_vc-conflicts.sh count-file conflict-test.txt | |
test: | |
bats vc-conflicts-spec.bats |
This file contains 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/make | |
default: | |
.PHONY: default install | |
BASH := $(shell which bash) | |
export BASH_ENV=env.sh | |
$(info 0 foo=$(foo) $(shell echo foo=$$foo)) |
This file contains 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
#!/bin/sh | |
set -e | |
# How to find duplicate files, paths pointing at the same content, using GIT | |
# To get at the basic information, use ls-tree | |
git ls-tree -r HEAD | |
# Annex can be made to do something similar for its backend |
This file contains 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
#1/bin/sh | |
set -e | |
test -n "$vol_dir" || vol_dir=/srv/docker-volumes-local | |
test -n "$conf" || conf=$vol_dir/glances/conf-glances.conf | |
test -n "$ver" || ver=latest | |
test -n "$ver" || ver=stable | |
test -n "$ver" || ver=v2.11.1 | |
test -n "$hostname" || hostname="$(hostname -s)" | |
test -n "$domainname" || domainname=example.net |
This file contains 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
import dbus | |
sysbus = dbus.SystemBus() | |
systemd = sysbus.get_object( | |
'org.freedesktop.systemd1', | |
'/org/freedesktop/systemd1' | |
) | |
manager = dbus.Interface( | |
systemd, |
OlderNewer