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
PHP 17 hrs 58 mins ██████████▍░░░░░░░░░░ 49.5% | |
JavaScript 6 hrs 6 mins ███▌░░░░░░░░░░░░░░░░░ 16.8% | |
Other 3 hrs 26 mins █▉░░░░░░░░░░░░░░░░░░░ 9.5% | |
YAML 2 hrs 7 mins █▏░░░░░░░░░░░░░░░░░░░ 5.8% | |
HTML 1 hr 36 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.5% |
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
did:3:kjzl6cwe1jw1487172o2ukeg5fx3jrc9mt0w9lwjk4hnx2jlznyk3w5gy5zu6k8 |
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
:: Download this and execute as admin | |
:: 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" | |
choco feature enable -n allowGlobalConfirmation | |
:: Just install node stuff manually. Trust me. | |
:: choco install nodejs-lts --install-directory='C:\nodejs' -fy | |
:: npm install -g gulp cordova@6.5.0 ionic@2.2.3 bower |
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
:: 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 |
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
#!/bin/bash | |
if [[ $EUID -eq 0 ]]; then | |
echo | |
echo "================ Error =================" | |
echo "Do not run this as the root user" | |
echo "========================================" | |
echo | |
exit 1 | |
fi |
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 | |
# Run with `curl https://gist.githubusercontent.com/mikepsinn/f4d11ef930e62586bf24f15955bd44ea/raw/settler-provision.sh` | |
export DEBIAN_FRONTEND=noninteractive | |
# Update Package List | |
apt-get update | |
# Update System Packages |
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 git && curl https://gist.githubusercontent.com/mikepsinn/2f3c69a17e22855421e15541e0f2f973/raw/clone_qm.sh | bash -s ${GITHUB_ACCESS_TOKEN} | |
echo "Using GITHUB_ACCESS_TOKEN $1" | |
GITHUB_ACCESS_TOKEN=$1 | |
sudo apt-get update && sudo apt-get install -y git | |
curl https://gist.githubusercontent.com/mikepsinn/00a4153544a31bb6c645da13e4a9a26e/raw/git_config.sh | bash -s ${GITHUB_ACCESS_TOKEN} | |
cd ~ && git clone --recursive -b develop https://${GITHUB_ACCESS_TOKEN}@github.com/mikepsinn/qm-api.git || true | |
sudo ln -sT ~/qm-api /vagrant > /dev/null 2>&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
sudo su | |
sudo sed -i "/^[^#]*Port[[:space:]]22/c\Port 2222" /etc/ssh/sshd_config | |
sudo sed -i "/^[^#]*PermitRootLogin[[:space:]]no/c\PermitRootLogin yes" /etc/ssh/sshd_config | |
sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config | |
sudo service sshd restart | |
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | |
echo 'jenkins ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | |
echo "apt-get update..." && sudo apt-get update >/dev/null | |
set -x |
NewerOlder