Skip to content

Instantly share code, notes, and snippets.

@t27
t27 / hide-amazon.com-cart-sidebar.txt
Last active July 8, 2025 09:31
Ublock Origin rules to hide the Amazon.com Cart sidebar that can't be hidden via any setting/config on the website
! Ublock Origin rules to hide the Amazon.com Cart sidebar that can't be officially hidden
! hide the sidebar
www.amazon.com###nav-flyout-ewc
www.amazon.com###nav-flyout-anchor
! ensure the rest of the site covers full width
www.amazon.com##body:style(padding-right: 0px !important)
@smola
smola / k8s-jprofiler-attach.sh
Created March 23, 2018 14:49
Attach JProfiler agent to a JVM running in a Kubernetes pod
#!/bin/bash
set -e
if [[ -z ${K8S_JVM_POD} ]]; then
echo "K8S_JVM_POD not defined"
exit 1
fi
EXEC="kubectl exec ${K8S_JVM_POD}"
CP="kubectl cp ${K8S_JVM_POD}"
@shortjared
shortjared / list.txt
Last active October 22, 2025 13:34
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@npenkov
npenkov / golang.gitlab-ci.yml
Created December 29, 2017 12:57
gitlab-ci for Go projects using go dep.
# Replace "projectname" and "username"
image: golang:1.9
variables:
BIN_NAME: projectname
ARTIFACTS_DIR: artifacts
GO_PROJECT: gitlab.com/username/projectname
stages:
- build
@jennings
jennings / windbg-notes.md
Last active June 1, 2023 05:12
Debugging .NET with WinDbg feels like wizardry, so naturally I want to get better at it.

Load PSSCOR4:

.loadby sos clr
.load C:\Debug\Psscor4\amd64\psscor4.dll

or:

anonymous
anonymous / config-replace
Created April 6, 2016 15:40
#!/bin/bash
APPLY_CHANGES=1
ARCHIVE_RETENTION=30
CONFIG_ARCHIVE="/mnt/flash/config"
TMP_DIR="/var/tmp"
NEW_CONFIG="$1"
RUNNING_CONFIG="/mnt/flash/config/.running-config"
#!/usr/bin/python
import requests
import sys
import json
import pprint
from time import sleep
#This is the user ID going on vacation
vacationing_user = 'PR2D0IM'
@philandstuff
philandstuff / cfgmgmtcamp2016.org
Last active August 27, 2018 09:11
configuration management camp 2016 notes
@alyssaq
alyssaq / 1. Install python3.7 & pip3.md
Last active April 11, 2023 02:13
Python3.7 setup on Mac 10.14 (Mojave)
  1. Install Python 3.7.x from https://www.python.org/downloads/ or via homebrew.
$ brew install python3   # Installed at /usr/local/Cellar/python3

Check that python3 has been installed by running it at the terminal:

$ python3
>>> Python 3.7.2
  1. Download get-pip.py from https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):
@chinshr
chinshr / Jenkinsfile
Last active May 20, 2025 13:10
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}