Skip to content

Instantly share code, notes, and snippets.

View dminca's full-sized avatar

Daniel Andrei Mincă dminca

View GitHub Profile
@dminca
dminca / remove_mcafee.md
Created March 31, 2019 19:28 — forked from pjobson/remove_mcafee.md
OSX McAfee Removal

Removal of McAfee from OSX

Note: This was written in 2015, it may be out of date now.

There are a lot of commands here which I use sudo if you don't know what you're doing with sudo, especially where I rm you can severely screw up your system.

There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.

I intend this to be a living document, I have included suggestions from peoples' replies.

@dminca
dminca / GPG and git on macOS.md
Created April 18, 2019 19:43 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@dminca
dminca / helm-cheatsheet.md
Created April 26, 2019 09:32 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@dminca
dminca / unlock_yubikey.md
Last active June 18, 2025 09:54
YubiKey - unblock PIN after locking it with 3 wrong PIN attempts

Unlock YubiKey ⚠️

After entering the wrong password 3 times your YubiKey is locked in order to avoid brute-forcing the password. Luckily, there's a way of unlocking yourself.

⚠️ you will lose all data on it

gpg2 --card-status
Application ID ...: D2760001240102010006042126520000
@dminca
dminca / keygen.sh
Created June 5, 2019 11:52
Generate AES-256 base-64
python -c 'import base64; import os; print(base64.encodestring(os.urandom(32)))'
@dminca
dminca / scriptable.js
Created July 2, 2021 09:49 — forked from bsehovac/scriptable.js
Upcoming Match Scriptable Widget
// Get Team ID from https://www.thesportsdb.com and add it as widget parameter
const TEAM_ID = args.widgetParameter || 133987
const DARK_MODE = true
const widgetSize = config.widgetFamily || 'medium'
const textSize = 9.5
const logoSize = 38
const logoSmallSize = 22
const spacing = { normal: 8, smaller: 6, vs: 5, widget: 10 }
@dminca
dminca / monzo-alertmanager-config.yaml
Created November 15, 2021 11:46 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##