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
#!/usr/bin/env bash | |
# In order to run this script use: | |
# $ bash scripts/dnsmasq.sh | |
# Install dnsmasq | |
brew install dnsmasq | |
# Create config folder if it doesn’t already exist | |
mkdir -pv $(brew --prefix)/etc/ |
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 | |
# Exit on error | |
set -e | |
echo "Hello, what is your app name?" | |
read appname | |
# slugify the app name | |
appslug="$(echo $appname | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z)" |
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 | |
# Exit on error | |
set -e | |
echo "Hello, what is your app name?" | |
read appname | |
# slugify the app name | |
appslug="$(echo $appname | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z)" |
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 | |
# run this file with sudo permissions, example: | |
# bash www-perms.bash <group-name> <username> | |
echo "Creating group if it is not there..." | |
getent group $1 || groupadd $1 | |
echo "Adding user $2 to group..." | |
usermod -a -G $1 $2 |