Skip to content

Instantly share code, notes, and snippets.

View rclilly's full-sized avatar

Robert Lilly rclilly

View GitHub Profile
#requires -Version 3.0
<#
.SYNOPSIS
My Veeam Report is a flexible reporting script for Veeam Backup and
Replication.
.DESCRIPTION
My Veeam Report is a flexible reporting script for Veeam Backup and
Replication. This report can be customized to report on Backup, Replication,

Keybase proof

I hereby claim:

  • I am rclilly on github.
  • I am rclilly (https://keybase.io/rclilly) on keybase.
  • I have a public key ASDnNdwiEzCHt-xq-jb4y36zWnHx6iYuBJ2hdvf5LFR5Sgo

To claim this, I am signing this object:

@rclilly
rclilly / Vagrantfile
Created October 31, 2017 19:24 — forked from kikitux/Vagrantfile
Vagrantfile, multi machine with ssh password less and hostname over private network.
numnodes=2
baseip="192.168.10"
#global script
$global = <<SCRIPT
#check for private key for vm-vm comm
[ -f /vagrant/id_rsa ] || {
ssh-keygen -t rsa -f /vagrant/id_rsa -q -N ''
}
@rclilly
rclilly / wp-start.sh
Created March 30, 2016 17:39 — forked from ethicka/wp-start.sh
WordPress Installation with the Roots/Sage Framework and VirtualHost Creation
#!/bin/bash -e
##
# WordPress Installation and VirtualHost Creation
# Description: Installs a WordPress website in the ~/Sites folder, creates a homepage, cleans up the WP install a bit, deletes the akismet and hello dolly plugins, creates the permalinks, clones the roots/sage theme framework to the theme folder, deletes all the other WP default themes, installs/runs npm and bower and runs gulp to create the initial assets, adds a custom gitignore file to /wp-content, installs the roots/soil plugin, creates a git repo in wp-content, saves the WordPress credentials to a local file and the password to your clipboard. Then it creates a virtualhost for you. Voila!
# Author: William Donahoe - @ethicka
#
# Based off of http://www.ltconsulting.co.uk/automated-wordpress-installation-with-bash-wp-cli/
#
# Dependencies: wp-cli, virtualhost.sh, apg, git, npm, node, gulp, bower
@rclilly
rclilly / wp.sh
Created January 27, 2016 20:24 — forked from bgallagh3r/wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

require 'mina/git' # Require mina/git
set :term_mode, nil # Bug in OS X that makes the password promp kinda fishy...
set :domain, 'example.com' # The web servers SSH domain
set :deploy_to, '/home/user/my-site' # Full path to where you want Mina to deploy
set :repository, 'https://[email protected]/USERNAME/REPOSITORY.git' # The git repository Mina shall use
set :branch, 'master' # What git branch Mina should get
set :user, 'username' # What username to connect with through SSH
set :current_path, 'www' # What file should be the current version. Probably 'www', 'public_html' or perhaps 'current'.
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name www.example.com;
rewrite ^ http://example.com$request_uri?;
}
@rclilly
rclilly / 0_reuse_code.js
Created April 21, 2014 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
# args
MSG=${1-'deploy from git'}
BRANCH=${2-'trunk'}
# paths
SRC_DIR=$(git rev-parse --show-toplevel)
DIR_NAME=$(basename $SRC_DIR)
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH