Skip to content

Instantly share code, notes, and snippets.

View digiservnet's full-sized avatar
👋

Ian.H digiservnet

👋
View GitHub Profile
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
@digiservnet
digiservnet / AuthyToOtherAuthenticator.md
Created February 16, 2024 23:53 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

@digiservnet
digiservnet / pint.json
Last active January 30, 2023 10:19
Laravel Pint default config
{
"preset": "psr12",
"exclude": [
"database/migrations"
],
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
@digiservnet
digiservnet / Middleware-CSP.php
Created December 9, 2022 00:58 — forked from valorin/.env.example
CSP Middleware - the simple CSP middleware I use across all of my projects.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\Str;
/**
* Simple Content Security Policy middleware.