Skip to content

Instantly share code, notes, and snippets.

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active July 5, 2024 09:20
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 7, 2024 05:12 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@helmuthauser
helmuthauser / Defer_OF_tasks_to_random_date
Created January 17, 2017 08:58
AppleScript that defers highlighted tasks in Omnifocus to random date in the future (like in the iOS version of Omnifocus)
--
-- based on a script originally file downloaded from:
-- http://c-command.com/scripts/omnifocus/defer-to-tomorrow
--
-- ========================================
-- Script to defer Omnifocus task to
-- random date in the future (emulation of "defer to random date" from iOS version
-- ========================================
-- It chooses a random number of days ranging from 14 to 90 days and adds to today's date
-- NB: That's the same values Omnifocus uses in their iOS version
@davidfowl
davidfowl / Example1.cs
Last active June 19, 2024 16:41
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
-- original file downloaded From: http://c-command.com/scripts/omnifocus/defer-to-tomorrow
-- augmented code orginally from Ben Waldie
-- https://gist.github.com/benwaldie/4583391
-- ========================================
-- Script to defer Omnifocus task to
-- a defined date
-- ========================================
-- if you want adapt the script to another date and/or time
-- check function "myDeferDate" at the end of this script
-- see comments there
@ecampidoglio
ecampidoglio / commit-msg.sh
Last active August 22, 2019 20:33
A client-side Git hook that checks the length of the commit message.
#!/bin/sh
#
# A hook script that checks the length of the commit message.
#
# Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit. The hook is allowed to edit the commit message file.
DEFAULT="\033[0m"