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
@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 / mysql2sqlite.sh
Last active April 29, 2018 02:56 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/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.
@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}"
#!/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"
#!/bin/bash
# Script to automate PhpMyAdmin updates
# To manually switch to another version, use...
# bash pma-auto-update.sh version_number
### Variables
ADMIN_EMAIL=pothi@tinywp.com
SITESDIR=${HOME}/others