Skip to content

Instantly share code, notes, and snippets.

View dminca's full-sized avatar

Daniel Andrei Mincă dminca

View GitHub Profile
@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)
##
@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 / 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 / unlock_yubikey.md
Last active August 18, 2023 05:18
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 / helm-cheatsheet.md
Created April 26, 2019 09:32 — forked from tuannvm/cka.md
#Helm #Kubernetes #cheatsheet, happy helming!
@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 / 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 / workflow.gdsl
Created March 25, 2019 21:31 — forked from gclayburg/workflow.gdsl
Jenkins workflow plugin groovy code completion support for IntelliJ IDE
/*
Author: Gary Clayburg
This file allows IntelliJ IDEA to perform basic syntax checking and code completion for
Jenkins workflow groovy scripts. https://github.com/jenkinsci/workflow-plugin
These methods are supported
sh
readFile
node
echo
@dminca
dminca / Jenkinsfile
Created March 25, 2019 09:02 — forked from abayer/Jenkinsfile
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',

Keybase proof

I hereby claim:

  • I am dminca on github.
  • I am dminca (https://keybase.io/dminca) on keybase.
  • I have a public key whose fingerprint is C4A3 8F02 9F1F 6567 6957 BC34 90CD 7C62 81DF 875D

To claim this, I am signing this object: