from this question on Stack Overflow
Set up a managed_files
variable as an array
- hosts: whatever
vars:
managed_files:
- file1
- file2
from this question on Stack Overflow
Set up a managed_files
variable as an array
- hosts: whatever
vars:
managed_files:
- file1
- file2
CrashPlan is a great backup service allowing local, remote, and premium hosted backups. They even support Windows, Mac, and Linux.
While I can't speak to the install experience for Windows or Mac, on Linux, it's horrible.
It's an interactive install that doesn't take any flags to accept defaults. As a Ubuntu user, there is a new version every 6 months and to make the upgrade process easier, I bash script the installation of all my core programs so I can reformat and be back up an running with ease.
This bash script will download a recent version, untar it, and install it with all the defaults.
*CapsLock:: | |
Send {Blind}{Ctrl Down} | |
cDown := A_TickCount | |
Return | |
*CapsLock up:: | |
If ((A_TickCount-cDown)<400) ; Modify press time as needed (milliseconds) | |
Send {Blind}{Ctrl Up}{Esc} | |
Else | |
Send {Blind}{Ctrl Up} |
#!/bin/bash | |
# Find all boxes which have updates | |
AVAILABLE_UPDATES=`vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2` | |
if [ ! ${#AVAILABLE_UPDATES[@]} -eq 0 ]; then | |
for box in $AVAILABLE_UPDATES ; do | |
echo "Found an update for $box" |
#!/usr/bin/env bash | |
# Helper script to help migrate Composer (https://getcomposer.org/) | |
# global scripts to being managed by CGR (https://github.com/consolidation/cgr) | |
# | |
# Copyright (c) 2017 Scott Lesovic | |
# Released under the MIT License | |
# Sanity check Composer | |
which composer |
<?php | |
//* Do NOT include the opening php tag | |
//* Add JS to allow elements to be faux anchors | |
add_action( 'wp_footer', 'bg_script_clickable' ); | |
function bg_script_clickable() { | |
echo '<script type="text/javascript">jQuery(document).ready(function($){$(".content .entry").click(function(){window.open($("a",this).attr("href"), "_blank");});});</script>'; | |
} |
<?php | |
/** | |
* There are layers of protection to check a few things | |
* - Only run this code once | |
* - Only run when accessed by Google, MSN, or Yahoo! | |
* | |
* I removed those checks to make this more readable | |
*/ |
# Only *annotated* tags | |
git describe --exact-match HEAD | |
# All tags, including lightweight | |
git describe --exact-match --tags HEAD |
#!/usr/bin/env bash | |
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done |
<?php | |
//* ====================== | |
// Turn Developer Mode On | |
// ====================== | |
define('WP_DEBUG', true); | |
// Enable Debug logging to the /wp-content/debug.log file | |
define('WP_DEBUG_LOG', true); |