Skip to content

Instantly share code, notes, and snippets.

View peschee's full-sized avatar
Grabbing another coffee…

Peter Siska peschee

Grabbing another coffee…
View GitHub Profile
@peschee
peschee / docker-configure-tls.sh
Last active December 23, 2019 21:07 — forked from ivan-pinatti/docker-configure-tls.sh
Enable TLS in Docker service running in Ubuntu - #docker #docker-tls #tls #ubuntu
#!/usr/bin/env bash
: ' Script that enables TLS for Docker service in Ubuntu 16.x
This script is intended to be run as root
It;
- Generates the keys
- Creates the daemon.json Docker config file
const http = require('http')
// function returns a Promise
function httpGet (url) {
return new Promise((resolve, reject) => {
http.get(url, (response) => {
const chunks = []
response.on('data', (fragments) => {
chunks.push(fragments)

Keybase proof

I hereby claim:

  • I am peschee on github.
  • I am peschee (https://keybase.io/peschee) on keybase.
  • I have a public key ASD0NPZtPFc3oHsoxLUrRTQpIwpeTYb_H37OVDiIp6UCngo

To claim this, I am signing this object:

<pre><%= JSON.stringify(htmlWebpackPlugin, null, 2) %></pre>
@peschee
peschee / jenkinsfile-commons.groovy
Created January 15, 2019 20:20 — forked from aliok/jenkinsfile-commons.groovy
Sample advanced Jenkins pipeline
/**
* This file provides common stuff to be used in the pipelines.
* It is important to load it after repo checkout is done: see https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#triggering-manual-loading
*
*/
/**
* Dumps some info about the environment.
* @return
*/
@peschee
peschee / how-to-install-php-development-environment-on-osx.md
Created August 24, 2018 10:53 — forked from jakebellacera/how-to-install-php-development-environment-on-osx.md
How to install a basic Apache, PHP and MySQL development environment with Homebrew. Mirrored from the Echo & Co. blog.

How to install a basic Apache, PHP and MySQL development environment with Homebrew

This guide will walk you through the steps required to install a basic Apache, PHP and MySQL development environment using homebrew. Basically, all you'll need to do is copy the commands below into Terminal. Copy one block at a time.

NOTE: this guide is mirrored from Echo & Co.'s blog in case the original blog post or the website decides to go down. I've shared this guide around many times to colleagues and friends. Please give Alan Ivey (@alanthing) all of the credit for publishing this really helpful guide.

Before we begin...

We're going to need to install homebrew, a super awesome package manager for OS X. Installation instructions are available on the homebrew website.

@peschee
peschee / gist:84b00ebfff3ec3e063a6e0d5062bcb5b
Created August 21, 2018 11:39
Output current DOM to console
console.log(`<!doctype html>${document.documentElement.outerHTML}`);
#!/bin/bash
# Copyright (C) 2014 Craig Phillips. All rights reserved.
git_remote_install_cert_sh=$(readlink -f "$BASH_SOURCE")
function usage() {
cat <<USAGE
Usage: ${git_remote_install_cert_sh##*/} [<name>]
Summary:
@peschee
peschee / Dockerfile
Created March 23, 2018 15:26 — forked from andyshinn/Dockerfile
BusyBox cron container example
FROM gliderlabs/alpine:3.3
COPY myawesomescript /bin/myawesomescript
COPY root /var/spool/cron/crontabs/root
RUN chmod +x /bin/myawesomescript
CMD crond -l 2 -f
@peschee
peschee / hide-chrome-extension-resources.md
Last active January 24, 2018 08:49
Hide Chrome extension resources in web inspector

Found at https://stackoverflow.com/a/28230333

Let's say you don't want to open an inkognito Chrome window.

What you can do is filter by -scheme:chrome-extension in the resources tab.