Skip to content

Instantly share code, notes, and snippets.

View stancel's full-sized avatar

Brad Stancel stancel

View GitHub Profile
# Git Ignore File - Add whatever is needed here
# Mac Files
.DS_Store
# Ansible Retry Files
*.retry
# Ansible Vault Password file
.vault_pass
@stancel
stancel / .gitignore-ansible-role
Created September 16, 2018 17:17
Gitignore file that my bash scripts can pull down for any created Ansible roles
# Git Ignore File
# Mac DS Store files
.DS_Store
*.retry
@stancel
stancel / configuration.bash
Created May 12, 2018 15:57 — forked from jepser/configuration.bash
Deploybot configuration for Bedrock (WordPress).
apt-get install php-mbstring
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
composer install
cd {your/theme/path}
npm install
@stancel
stancel / ansible-summary.md
Created March 3, 2018 17:21 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@stancel
stancel / repair.php
Created September 18, 2017 15:35 — forked from bickart/repair.php
How to perform a SugarCRM Quick Repair and Rebuild from the line
#!/usr/bin/php
<?php
/*
* Copyright 2013
* Jeff Bickart
* @bickart
* jeff @ neposystems.com
*/
@stancel
stancel / mautic_cron_jobs.sh
Created August 24, 2017 15:54
Mautic 2.9.x Cron Jobs
0,10,20,30,40,50 * * * * php /var/www/html/app/console mautic:webhooks:process > /dev/null 2>&1
2,12,22,32,42,52 * * * * php /var/www/html/app/console mautic:segments:update > /dev/null 2>&1
4,14,24,34,44,54 * * * * php /var/www/html/app/console mautic:campaigns:rebuild > /dev/null 2>&1
6,16,26,36,46,56 * * * * php /var/www/html/app/console mautic:campaigns:trigger > /dev/null 2>&1
1,11,21,31,41,51 * * * * php /var/www/html/app/console mautic:emails:send > /dev/null 2>&1
@stancel
stancel / _service.md
Created July 6, 2017 16:06 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@stancel
stancel / keybase.md
Created July 26, 2016 04:35
Adding this to prove identity for Keybase.io

Keybase proof

I hereby claim:

  • I am stancel on github.
  • I am stancel (https://keybase.io/stancel) on keybase.
  • I have a public key whose fingerprint is 29A8 D353 9A3F 8981 2C24 4DED FAA0 7342 F237 4B90

To claim this, I am signing this object: