Skip to content

Instantly share code, notes, and snippets.

View davidarich's full-sized avatar

Dave A. Rich davidarich

  • Pittsburgh, PA, United States
View GitHub Profile
@davidarich
davidarich / private_fork.md
Created August 13, 2020 18:12 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@davidarich
davidarich / mysql_secure.sh
Created September 25, 2019 16:09 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@davidarich
davidarich / gist:67245c130d04fec8461d00fffa338103
Last active March 2, 2019 04:28
Ubuntu 18.04 Minikube quick start
# unsafe for prod. uses local host for minikube instead of vm.
minikube start --vm-driver=none --apiserver-ips 127.0.0.1 --extra-config=kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
@davidarich
davidarich / Jenkinsfile.groovy
Created October 25, 2018 17:39 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@davidarich
davidarich / index.html
Created February 25, 2017 20:40 — forked from sommereder/index.html
IPC Renderer Service for Electron/Angular2
<script>
const electron = require('electron');
// below is just plain angular stuff
System
.config({
packages: {
angular: {
format: 'register',
defaultExtension: 'js'