This file contains hidden or 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
# Use an official Ubuntu base image | |
FROM ubuntu:20.04 | |
# Install necessary packages | |
RUN apt-get update && apt-get install -y \ | |
kcachegrind \ | |
x11-apps \ | |
dbus-x11 \ | |
git \ | |
nginx \ |
This file contains hidden or 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
{"lastUpload":"2021-10-08T16:21:28.961Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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 | |
sudo apt remove composer | |
sudo apt update | |
sudo apt install curl | |
sudo curl -s https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/bin/composer |
This file contains hidden or 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 | |
sudo a2enmod http2 | |
sudo a2dismod php7.4 | |
sudo a2dismod mpm_prefork | |
sudo a2enmod mpm_event proxy_fcgi setenvif | |
sudo apt install php7.4-fpm -y | |
sudo systemctl start php7.4-fpm | |
sudo systemctl enable php7.4-fpm |
This file contains hidden or 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 | |
DB_HOST='localhost' | |
DB_USER='root' | |
DB_PASS='password' | |
DB='default' | |
functionAlterTable(){ | |
read a b c <<< "${ROW}" | |
echo "START QUERY: alter table $a modify $b char(36);" |
This file contains hidden or 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
var gulp = require('gulp'); | |
var watch = require('gulp-watch'); | |
var cleanCSS = require('gulp-clean-css'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var concat = require('gulp-concat'); | |
var merge = require('merge-stream'); | |
var scss = require('gulp-scss'); | |
function version(){ |
This file contains hidden or 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 | |
# Rebuilds The Parbake Project from it's git repositories | |
# Jason D Snider <[email protected]> | |
# Configure the build script | |
PROJECT_PATH="/var/www/parbake.org" | |
APACHE_PROCESS="www-data" | |
USER="jsnider" | |
GIT_ACCESS="[email protected]:" |
This file contains hidden or 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 | |
# Rebuilds parbaked project from it's git repositories | |
# Jason D Snider <[email protected]> | |
# Configure the build script | |
PROJECT_PATH="/var/www/jasonsnider.com" | |
APACHE_PROCESS="www-data" | |
USER="jsnider" | |
GIT_ACCESS="[email protected]:" |
This file contains hidden or 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 | |
# Completely removes, rebuilds and reconfigures jasonsnider.com from it's git repositories | |
# Jason D Snider <[email protected]> | |
## Start by removing the entire website | |
rm -fR /var/www/jasonsnider.com/tinker | |
## Build the code base | |
cd /var/www/jasonsnider.com && git clone [email protected]:jasonsnider/tinker.git |
This file contains hidden or 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 | |
#============================================================================= | |
# The MIT License (http://www.opensource.org/licenses/mit-license.php) | |
# Copyright (c) 2010, Jason Snider <[email protected]> | |
# | |
# vhosts.sh - Assists in building new VirtualHosts | |
# | |
# Assists in quickly building local dev sites. Out of the box, this shouldn't | |
# be used in production, though with a little modification it can be suited |
NewerOlder