Skip to content

Instantly share code, notes, and snippets.

@carlosonunez
carlosonunez / homebridge_docker_compose.yml
Last active September 12, 2023 15:28
HomeBridge Docker Compose
version: '2'
services:
homebridge:
image: homebridge/homebridge
container_name: homebridge
restart: always
network_mode: host
environment:
- TZ=America/Chicago
- PGID=1000
@carlosonunez
carlosonunez / docker-compose.pihole.yml
Created September 1, 2021 06:27
pi_hole_no_admin_password
version: "3"
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
@carlosonunez
carlosonunez / combating_misinformation_and_fake_news.md
Last active August 27, 2021 18:35
Combating Misinformation and Fake News

originally from Reddit; source

So much of the misinformation that gets spread stems from online sources like Facebook and Twitter. Usually, the root of the data that produced the misinformation stems from a website.

Here are some cool tips to help you know what's probably real and what's probably not while you're surfin' the World Wide Web.

FactCheck.org is your friend

FactCheck.org is an unbiased (to my knowledge) place to check the facts. They even cover viral tweets and Instagram posts, like this one. It's an amazing resource in helping combat misinformation.

@carlosonunez
carlosonunez / use_velero_with_kind.md
Created March 4, 2021 21:42
Use Velero with Kind without Minio

This quick Gist will show you how to get Velero up and running with Kind without using Minio. You might find this useful if you need a quick instance of Velero for testing or are just getting started with the tool but do not have access to AWS, Azure, or GCP.

Prereqs

  • Docker
  • Helm
  • Velero (brew install velero, choco install velero, or build from source)
@carlosonunez
carlosonunez / auto_sudo_via_watch_and_tid.sh
Last active March 2, 2021 22:00
Enable support for sudo via Apple Watch and Touch ID
APPLE_WATCH_PAMID_LIBPATH=/usr/local/lib/pam/pam_watchid.so.2
APPLE_WATCH_PAMID_URL=https://github.com/biscuitehh/pam-watchid
APPLE_WATCH_PAMID_PATH=$HOME/src/pamid-applewatch
enable_sudo_with_apple_watch_and_touch_id() {
trap 'popd' EXIT INT HUP
enable_apple_watch() {
if ! test -f $APPLE_WATCH_PAMID_LIBPATH
then
if ! test -d $APPLE_WATCH_PAMID_PATH
@carlosonunez
carlosonunez / example_tkg_bom.json
Created December 31, 2020 13:56
An example TKG BOM from TKG v1.2.1
{
"release": {
"version": "1.2.1"
},
"components": {
"alertmanager": {
"version": "v0.20.0+vmware.1"
},
"antrea": {
"version": "v0.9.3+vmware.1"
@carlosonunez
carlosonunez / makefile_help.mk
Created December 15, 2020 19:23
Add a super nice help documentation to any Makefile
# Add this to your Makefile or include it as a separate .mk
# to generate instant professional-looking documentation for your Make
# targets.
#
# To add documentation for a target name, add a ## comment after the _first_ definition of that target.
# To add documentation for environment variables, add a ## comment after the _first_ definition of that environment variable.
# To see the docs, run: make usage.
#
# Inspired by: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
PROJECT_NAME ?= example ## Defines the name of your project.
@carlosonunez
carlosonunez / x86_homebrew_by_default.sh
Created December 10, 2020 22:52
Add this to your .bashrc or .bash_profile to run Homebrew on your super-fast M1 MacBook!
# Add this to the top of your .bashrc or .bash_profile
# So that Homebrew runs right every time.
alias brew=brew_chooser
brew_chooser() {
if test "$(uname -p)" == "arm"
then
arch -x86_64 brew $*
else
brew $*
@carlosonunez
carlosonunez / install_firefox_onto_amzn_linux2.sh
Created November 29, 2020 07:02
Use this to install Firefox onto Amazon Linux 2. Current as of Firefox 82.0
yum -y install pango cairo-gobject libXinerama libXrandr dbus-glib wget libXcursor
rpm -ivh --nodeps --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/atk-2.28.1-2.el7.x86_64.rpm && \
rpm -ivh --nodeps --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/at-spi2-atk-2.26.2-1.el7.x86_64.rpm && \
rpm -ivh --nodeps --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/at-spi2-core-2.28.0-1.el7.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Packages/g/GConf2-3.2.6-7.fc20.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Packages/l/libXScrnSaver-1.2.2-6.fc20.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Packages/l/libxkbcommon-0.3.1-1.fc20.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Pack
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: [DEBUG] AzureRM Response for https://management.azure.com/subscriptions/subscription_id/resourceGroups/packerBuilder/providers/Microsoft.Compute/images/.%2A-databases%24?api-version=2019-07-01:
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: HTTP/2.0 404 Not Found
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Content-Length: 155
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Cache-Control: no-cache
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Content-Type: application/json; charset=utf-8
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Date: Fri, 06 Mar 2020 04:31:17 GMT
2020-03-06T04:31:18.186Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Expires: -1
2020-03-06T04:31:18.186Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Pragma: no-cache
2020-03-06T04:31:18.186Z [DE