Skip to content

Instantly share code, notes, and snippets.

View mikepsinn's full-sized avatar
💭
Attaining universal consciousness

Mike P. Sinn mikepsinn

💭
Attaining universal consciousness
View GitHub Profile
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%
@mikepsinn
mikepsinn / did:3:kjzl6cwe1jw1487172o2ukeg5fx3jrc9mt0w9lwjk4hnx2jlznyk3w5gy5zu6k8
Created April 28, 2022 02:32
did:3:kjzl6cwe1jw1487172o2ukeg5fx3jrc9mt0w9lwjk4hnx2jlznyk3w5gy5zu6k8
did:3:kjzl6cwe1jw1487172o2ukeg5fx3jrc9mt0w9lwjk4hnx2jlznyk3w5gy5zu6k8
@mikepsinn
mikepsinn / install-choco-script.bat
Last active December 30, 2021 13:36
Windows server Choco automated install script
:: 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
@mikepsinn
mikepsinn / self-signed-wildcard-ssl-for-nginx.sh
Last active September 2, 2021 19:29 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/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}"
@mikepsinn
mikepsinn / install-choco-script.bat
Last active August 6, 2021 19:20 — forked from zaccb/install-choco-script.bat
Chocolatey install script
:: 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
@mikepsinn
mikepsinn / Jenkinsfile
Created July 21, 2021 18:32 — forked from stormisOld/Jenkinsfile
Jenkinsfile for php static analysis using docker
#!/usr/bin/env groovy
properties([
pipelineTriggers([
triggers: [
[
$class: 'com.cloudbees.jenkins.plugins.BitBucketTrigger',
]
]
]),
@mikepsinn
mikepsinn / no-root.sh
Created July 3, 2021 03:38
die if root
#!/bin/bash
if [[ $EUID -eq 0 ]]; then
echo
echo "================ Error ================="
echo "Do not run this as the root user"
echo "========================================"
echo
exit 1
fi
#!/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
#!/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
@mikepsinn
mikepsinn / after.sh
Last active August 22, 2019 17:29
Laravel Homestead Post-Provision Setup
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