Skip to content

Instantly share code, notes, and snippets.

View paul1522's full-sized avatar
😷

Paul paul1522

😷
View GitHub Profile
@paul1522
paul1522 / get_adminer.sh
Last active January 21, 2021 23:31
Bash script to download the latest version of adminer from https://www.adminer.org/
#!/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.
@paul1522
paul1522 / BarTzar
Last active September 18, 2018 17:04 — forked from illcrx/BarTzar
Bar analyzing Indicator for TradingView from Real-Crypto
//@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")
//@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]
{{--
# 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"
# 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."
@paul1522
paul1522 / setup-git-user.sh
Last active July 2, 2017 14:41
git Server Setup Snippets - Setup git User
#!/bin/bash
adduser git
mkdir -p /srv/git
chown git.git /srv/git
chmod 700 /srv/git