Skip to content

Instantly share code, notes, and snippets.

View egerlach's full-sized avatar

Eric Gerlach egerlach

View GitHub Profile
@egerlach
egerlach / update-dokku-stack.sh
Last active December 22, 2022 03:24
Update stack underlying apps running on dokku
#!/bin/bash
# before you can use this, you need to run (as root):
# git clone https://github.com/tt/stack-images.git /root/stack-images
# git clone https://github.com/gliderlabs/herokuish.git /root/herokuish
# First, we need to get our base ubuntu images up to date
docker pull ubuntu-debootstrap:14.04
docker pull ubuntu:trusty # for postgresql
user nginx;
worker_processes 5;
error_log /var/log/nginx.error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@egerlach
egerlach / nginx.conf
Last active September 11, 2015 20:17
atlasboardnginx.conf
user nginx;
worker_processes 5;
error_log /var/log/nginx.error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
# This configuration file will allow all requests originating from the
# local machine to be send through all network interfaces.
#
# The only requests allowed from the outside world are http, https, ssh,
# and icmp. Other than that, the host will be completely stealthed! It
# will not respond to anything, though it will be pingable as a server
# should be.
#
# Then we have the configuration for the docker interfaces. The docker0
# interface allows all packets on it.
@egerlach
egerlach / cleanUpTabsOutliner.js
Created February 17, 2017 02:17
Functions to clean up my Tabs Outliner mess
function egerlachClearEmptyWindows() {
var windows = document.querySelectorAll('.savedwinNTASC');
for (var i = 0; i < windows.length; i++) {
if (windows[i].querySelectorAll('.savedtabNTC').length == 0) {
egerlachDeleteTab(windows[i]);
}
}
}
function egerlachPruneSavedTabs() {
@egerlach
egerlach / Powershell Invoke-DscResource Output
Last active November 8, 2023 19:40
FileContentDsc fails in winget configure
PS C:\Users\egerlach\src\workstation-setup> cat C:\Users\egerlach\test.conf
foo=false
PS C:\Users\egerlach\src\workstation-setup> Invoke-DscResource -Name KeyValuePairFile -Method Set -ModuleName FileContentDsc -Property @{
>> Path = 'c:\Users\egerlach\test.conf'
>> Name = 'foo'
>> Ensure = 'Present'
>> Text = 'bar'
>> }
RebootRequired