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
using System; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Builders; | |
using MongoDB.Driver.GridFS; | |
using MongoDB.Driver.Linq; | |
using MelvilleAdmin.Models; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
echo I am provisioning... | |
date > /etc/vagrant_provisioned_at | |
echo installing git... | |
sudo apt-get update | |
sudo apt-get install -y git-core | |
echo installing java... |
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 sh | |
# @see http://stackoverflow.com/questions/30040708/how-to-mount-local-volumes-in-docker-machine | |
# @see https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md | |
################################################################################ | |
# Dependency Section # | |
# # | |
################################################################################ | |
check_deps() { | |
## Make sure commands are available |
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
function ga { | |
{ git ls-files -o --exclude-standard --full-name | while read -r file; do | |
read -u 3 -n 1 -p "Do you wish to add new file \"$file\"? (y/n) " answer | |
if echo "$answer" | grep -iq "^y" ;then | |
git add $file | |
echo $'\nAdded file\n' | |
else | |
echo $'\nSkipping file\n' | |
fi | |
done; } 3<&0 |
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
Host github.com | |
Hostname ssh.github.com | |
Port 443 | |
ProxyCommand connect -H 127.0.0.1:3128 %h %p |
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 | |
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git checkout master && echo && git pull && echo)' \; |
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 | |
# Tune fsync perf for docker mac per | |
# https://github.com/docker/for-mac/issues/668 | |
# NB: You must be on Docker 1.12.2-rc1-beta27 or greater | |
cd ~/Library/Containers/com.docker.docker/Data/database/ | |
f="com.docker.driver.amd64-linux/disk/full-sync-on-flush" | |
git reset --hard | |
cat $f |
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 | |
git branch | grep "LPA" | xargs git branch -D |
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 | |
# Just a simple wrapper to start bitcoind. | |
# | |
# If using systemd, simply create a file (e.g. /etc/systemd/system/bitcoind.service) | |
# from example file below and add this script in ExecStart. | |
# https://raw.521000.best-/bitcoin/bitcoin/76deb30550b2492f9c8d9f0302da32025166e0c5/contrib/init/bitcoind.service | |
# | |
# Then run following to always start: | |
# systemctl enable bitcoind |
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
[Unit] | |
Description=Core Lightning Backup | |
After=network.target | |
[Service] | |
ExecStart=/opt/lightning/backup.sh | |
User=bitcoin | |
Group=bitcoin | |
Restart=on-failure | |
RestartSec=20 |
OlderNewer