git flow init
Follow along:
Which branch should be used for bringing forth production releases?
- develop
tell application "System Events" | |
set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0 | |
end tell | |
if isRunning then | |
tell application id "com.Growl.GrowlHelperApp" | |
-- Make a list of all the notification types | |
-- that this script will ever send: | |
set the allNotificationsList to ¬ | |
{"VPN Connecting", "VPN Down", "VPN Connected"} |
#!/bin/bash | |
hosted_zone_id='Z57Q212345678' | |
domain_name='server.example.com' | |
# Abort script on any errors | |
set -e | |
# Get new IP address | |
ip_address=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) |
mysftpuser="usernamehere" | |
adduser $mysftpuser www-data # Add SFTP user to www-data group | |
cd /opt/easyengine/sites/ # Change to EE Sites folder | |
for i in `ls`; | |
do | |
chmod 644 $i/app/wp-config.php # Default recommended from wordpress doco - https://codex.wordpress.org/Changing_File_Permissions#Example_Permission_Settings | |
chown -R www-data:www-data $i/app/htdocs # Ref https://wordpress.stackexchange.com/a/241310/4153 | |
find -L $i/app/htdocs -type f |xargs -d '\n' chmod 744 | |
find -L $i/app/htdocs -type d |xargs -d '\n' chmod 755 |
Parameters: | |
RootDomainName: | |
Description: Domain name for your website (example.com) | |
Type: String | |
Mappings: | |
RegionMap: | |
us-east-1: | |
S3hostedzoneID: Z3AQBSTGFYJSTF | |
websiteendpoint: s3-website-us-east-1.amazonaws.com | |
us-west-1: |
version: "3" | |
services: | |
pihole: | |
image: pihole/pihole:latest | |
dns: | |
- 127.0.0.1 | |
- 1.1.1.1 | |
environment: | |
- DNS1=1.1.1.1 | |
- DNS2=1.0.0.1 |
#!/bin/bash | |
# When you download a zip of images from flickr, the files are named by flickr object IDs. | |
# Processing all files in a directory, this script will: | |
# - Change OS Modify date to match the EXIF OriginalDate of the image | |
# - Rename image to match EXIF OriginalDate in format: | |
# YYYY-MM-DD HH:mm:ss.ext | |
DIR="$1" | |
# failsafe - fall back to current directory |
function Test-ADCredential { | |
<# | |
.SYNOPSIS | |
This PowerShell function takes a user name and a password as input and will verify if the combination is correct. | |
The function returns a boolean based on the result. | |
.PARAMETER Credential | |
PS Credential Object. | |
.EXAMPLE |
Roll your own dynamic DNS service using Route53 |
mkdir -p /usr/local/dockercerts | |
#nginx template | |
curl https://raw.githubusercontent.com/lantrix/nginx-proxy/master/nginx.tmpl > /usr/local/nginx.tmpl | |
#Setup nginx | |
docker run -d \ | |
-p 80:80 -p 443:443 \ | |
--name nginx \ | |
-v /etc/nginx/conf.d \ |