Skip to content

Instantly share code, notes, and snippets.

View g0t4's full-sized avatar
๐Ÿ

Wes Higbee g0t4

๐Ÿ
View GitHub Profile
@g0t4
g0t4 / _README.md
Last active May 18, 2017 03:41
Docker Swarm Mode Getting Started Workshop

Shortened URL to access this gist: http://tiny.cc/swarmgs

All scripts work in bash and should work in powershell except as noted

clone this gist

git clone https://gist.github.com/g0t4/1454ee7342d54aba5313ffc699d472ba local-folder
@g0t4
g0t4 / notes.md
Last active March 4, 2022 01:02
Docker Cheat Sheet

Windows Containers notes

@g0t4
g0t4 / ideas.md
Created December 5, 2023 00:36
`docker compose watch` ideas

actions

  • Globs for action.path
    • i.e. path: *.csproj, path: foo|bar|baz, path: *.txt|*.ini
  • Allow watch files that are .dockerignored => i.e. Dockerfile|compose.yaml => trigger rebuild action
    • currently .dockerignored files are ignored for watching even if explicitly set in action.path
    • .dockerignore is historically focused on building images, seems like compose watch needs to be able to override at a minimum?
  • recreate action type w.r.t. the entire watch process
    • i.e. edit compose.yaml/Dockerfile/*.env => trigger reload of entire docker compose watch
@g0t4
g0t4 / settings.json
Created October 4, 2024 14:21
vscode minimal clutter settings
{
// from my video: https://youtu.be/mk_6I8meeHg
// top level components
"editor.minimap.enabled": false,
"workbench.activityBar.location": "hidden",
"workbench.statusBar.visible": false,
// per file/pane
"workbench.editor.showTabs": "none",
@g0t4
g0t4 / remove-openai-fact-check-banners.js
Created January 23, 2025 15:41
Tampermonkey script that removes banners / fact checking advertisements in chatgpt.com chats (on the fly)
// ==UserScript==
// @name OpenAI Remove Fact Checking Banners
// @namespace http://tampermonkey.net/
// @version 2025-01-23
// @description Remove advertisements to trust Reuters/AP.. probably CDC too
// @author Wes Higbee
// @match https://chatgpt.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=chatgpt.com
// @grant none
// ==/UserScript==
@g0t4
g0t4 / tampermonkey.js
Created February 10, 2025 16:42
redirect to "current" postgres version
// ==UserScript==
// @name postgres redirect to current version
// @namespace http://tampermonkey.net/
// @version 2025-02-10
// @match https://www.postgresql.org/docs/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=postgresql.org
// @grant none
// ==/UserScript==
(function() {