Skip to content

Instantly share code, notes, and snippets.

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active September 10, 2024 14:48
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 September 22, 2024 18:35 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export to tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@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 September 2, 2024 12:36
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"