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 | |
recipe: lemp | |
config: | |
webroot: mautic | |
php: '7.2' | |
composer_version: '1.10.19' | |
database: mysql:5.7 | |
xdebug: false | |
config: | |
vhosts: nginx-lando.conf |
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 | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
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
#!/binbash | |
# firsrun (Uncomment): | |
install xcode-cli-tools | |
xcode-select --install | |
# install homebrew (Uncomment) | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install caskroom |
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 | |
echo "" | |
echo -n "$(tput setaf 1)What script you'd like to launch? $(tput bold)[C = Cropped/N = Normal] $(tput sgr 0)" | |
read script | |
if [ "$script" = "n" ]; then | |
cat resolutions|pageres localhost:3000 | |
else | |
cat resolutions|pageres localhost:3000 -c |
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
pageres 1024x768 < urls.txt ; mogrify -resize 474 -crop 474x501+0+0 *.png | |
# Go get screenshots from list in clipboard | |
# Once that's done, resize all the images | |
# and crop them | |
# And then optimise them: /Applications/ImageOptim.app/Contents/MacOS/ImageOptim *.png |
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
SET GLOBAL max_allowed_packet =1024*1024*512; |
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
find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 find /path/to/base/dir -type f -print0 | xargs -0 chmod 644 | |
# /path/to/base/dir should be the root of your web instance, if you're into securing that kinda thing |
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
mysqldump -u sqluser -ppassword database | gzip > /root/sqlbackups/databasename_`date '+%m-%d-%Y'`.sql.gz | |
# Crontab Settings to manage this export | |
# Yes, not sophisticated at all | |
############## | |
# crontab -e # | |
############## | |
# 30 2 * * * /root/awsmysqldump.sh 2>&1>> /root/awsmysqldump.log | |
# 00 3 * * * s3cmd put /root/sqlbackups/* s3://mybackupsbucket/serverfolder/sqlbackups/ > /dev/null | |
# 30 3 * * * rm -rf /root/sqlbackups/* |
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
ssh [email protected] | |
jls | |
jexec 4 tcsh #Replace 4 with the # of your CouchPotato Jail | |
cd /usr/pbi/couchpotato-amd64/share/couchpotato | |
tar -cvf CBP_backup.tar.gz CouchPotatoServer/ | |
service couchpotato stop | |
pkg install git nginx python | |
# Fork CouchPotatoServer, Set up Deploy Key for git user for Forked instance | |
# Alternatively can simply clone from https://github.com/RuudBurger/CouchPotatoServer, but you will be deploying your user credentials instead of a more secure deploy credential | |
git clone [email protected]:jordan8037310/CouchPotatoServer.git |
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
<?php | |
/** | |
* @file | |
* local.settings.php (Drupal 6.x) | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |