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 | |
# Script to automate PhpMyAdmin updates | |
# To manually switch to another version, use... | |
# bash pma-auto-update.sh version_number | |
### Variables | |
[email protected] | |
SITESDIR=${HOME}/others |
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 | |
# Usage: | |
# $ ./heroku-deploy.sh <app name> <heroku api key> <git repo url> | |
# sudo apt-get install -y curl | |
# curl https://gist.githubusercontent.com/mikepsinn/5ab93d5791ad6f9297802eace817d4f9/raw/heroku-deploy.sh <app name> <heroku api key> | bash -s | |
APP="$1" | |
APIKEY="$2" |
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 | |
# sudo apt-get install -y curl | |
# curl https://gist.githubusercontent.com/mikepsinn/b1142aa685ef71d6d3af9b01fc386539/raw/self-signed-wildcard-ssl-for-nginx.sh | sudo bash -s | |
ROOT_DOMAIN=quantimo.do | |
# Specify where we will install | |
SSL_DIR="/etc/nginx/ssl" | |
# Set the wildcarded domain we want to use | |
WILDCARD_DOMAIN="*.${ROOT_DOMAIN}" |
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/sh | |
# curl https://gist.githubusercontent.com/mikepsinn/2bd31d9c8c397c8af895e8c833ea5f32/raw/mysql2sqlite.sh | bash -s --no-data -u root -pMySecretPassWord quantimodo_test | sqlite3 database.sqlite | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. |
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 groovy | |
properties([ | |
pipelineTriggers([ | |
triggers: [ | |
[ | |
$class: 'com.cloudbees.jenkins.plugins.BitBucketTrigger', | |
] | |
] | |
]), |
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
:: Install choco .exe and add choco to PATH | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
:: Install all the packages | |
:::: Browsers | |
choco install googlechrome -fy | |
choco install firefox -fy | |
:::: Text editors / IDEs | |
choco install atom -fy |