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 | |
adduser git | |
mkdir -p /srv/git | |
chown git.git /srv/git | |
chmod 700 /srv/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
# Add this to your .bash_aliases | |
function _yaris_showhelp() | |
{ | |
echo " " | |
echo "Yaris: Affordable 'laravel new' for Laravel Homestead" | |
echo "________________________________________________________" | |
echo "This command line tool will: " | |
echo " - Create a new Laravel project." | |
echo " - Initialize a git repo, make the initial commit, and optionally checkout a new branch." | |
echo " - Update the '.env' file." |
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
{{-- | |
# Source: https://gist.github.com/paulgeneres/ade61b670ac4911c914bcaee58689548 | |
# If you change it here don't forget to update the gist. | |
# Based on https://github.com/papertank/envoy-deploy/blob/master/Envoy.blade.php | |
# | |
# Quick Start: Put this at the top of your .env file. Create an .env.production file. | |
# DEPLOY_ENV="production" | |
# DEPLOY_SERVER="production.server" | |
# DEPLOY_REPOSITORY="git@github.com:owner/repo.git" | |
# DEPLOY_BRANCH="master" |
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
//@version=3 | |
// ©️ 2018 Randy Pratt | |
study("BarTzar", overlay=true) | |
//supDayThresh = input(40, minval=0, maxval=100, title="Threshold for support") | |
volAvg = input(50,minval=1,title="Number of bars", type=integer) | |
volAvgX = input(1.4, title="Breakout Volume Threshold %") | |
upBar = close > open | |
downBar = open > close | |
higherVolume = volume > 2*volume[1] |
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
//@version=3 | |
study("BarTzar", overlay=true) | |
//Variables to get percentage open/close | |
breadth = high - low //this is the bar range | |
closeBreadth = close - low // this is the closing | |
barCloseBreadth = closeBreadth / breadth | |
//supDayThresh = input(40, minval=0, maxval=100, title="Threshold for support") |
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 | |
## Figure out what the latest version is and download it, if needed. | |
CURVER=`wget -qO- https://www.adminer.org/ | perl -ne 'if (m/adminer-([0-9\.]+)\.php/s) { print "$1\n"; exit }'` | |
[ -f adminer-$CURVER.php ] || wget https://github.com/vrana/adminer/releases/download/v$CURVER/adminer-$CURVER.php | |
## Symlink index.php to it. | |
ln -sf adminer-$CURVER.php index.php | |
## Get the theme switcher too. |