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 | |
# Noah Betzen | |
# CentOS 7.1 Minimal Image | |
# DjangoCMS 3.2.0 Install Steps | |
# CONFIRMED WORKING AS OF 2-24-16 | |
# Server address for nginx | |
serverAddress=`/sbin/ifconfig -a | awk '/(cast)/ { print $2 }' | cut -d':' -f2 | head -1` # Fancy stuff to get IP only |
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 | |
# Noah Betzen | |
# CentOS 7.1 Minimal Image | |
# GravCMS 1.0.10 Install Steps | |
# CONFIRMED WORKING 2-29-16 | |
# Path variables you should set | |
serverFilesPath=/var/www/html |
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 | |
# Noah Betzen | |
# Ubuntu 14.04 WordPress Install Steps | |
# You should run this first: https://gist.github.com/Nezteb/1e0ccd82cc843b9c76e3b2bb929605eb | |
#################### VARIABLES TO CHANGE | |
read -p "Server domain name: " serverAddress # prompt server address for nginx | |
read -p "Your email address: " emailAddress # prompt email address for postfix | |
serverFilesPath=/var/www/html # web root location | |
mysqlUsername=mysql # mysql credentials |
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 | |
// cd into a directory with m4a files | |
for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 "${f%.m4a}.mp3"; done |
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
# This is specific to Github, but could apply to any git provider | |
# To start, you'll have to set up two sets of git SSH keys. | |
# Assuming you have your personal account set up by default: | |
# * ~/.ssh/id_rsa (your personal ssh private key) | |
# * ~/.ssh/id_rsa.pub (your personal ssh public key) | |
# * ~/.ssh/backup/work (your work ssh private key) | |
# * ~/.ssh/backup/work.pub (your work ssh public key) |
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 | |
PDF_FILE=$1 | |
TITLE="${PDF_FILE%.*}" | |
TEMP1="${TITLE}_q.pdf" | |
TEMP2="${TITLE}_qr1.pdf" | |
TEMP3="${TITLE}_qr2.pdf" | |
TEMP4="${TITLE}_qr3.pdf" |
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
# First verify you have Homebrew: https://brew.sh/ | |
# Put this line in your ~/.bash_profile, this will make sure your Homebrew binaries are used first | |
export PATH="/usr/local/bin":"/usr/local/sbin":"$PATH" | |
########## ON A FRESH INSTALL ########## | |
# Verify the output here does not contain anything related to Python | |
echo $PATH | |
# If it does contain Python stuff, figure out where that is coming from (probably ~/.bash_profile) and remove it |
- https://regexr.com/
- https://regex101.com/
- https://txt2re.com/
- https://www.regextester.com/
- http://regex.inginf.units.it/
- http://buildregex.com/
- https://fent.github.io/randexp.js/ (generates matching text from given regex)
OlderNewer