Skip to content

Instantly share code, notes, and snippets.

Limit log size

/etc/systemd/journald.conf

[Journal]
SystemMaxUse=10M
SystemMaxFileSize=10M
SystemMaxFiles=1
@xairoo
xairoo / AuthyToOtherAuthenticator.md
Created December 10, 2023 14:29 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


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.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@xairoo
xairoo / semantic-commit-messages.md
Created September 17, 2022 09:39 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@xairoo
xairoo / gist:78fc7861605bfb11fa37ba3bafe5a4e1
Last active October 17, 2021 17:06
Sample colored text using svg.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xairoo
xairoo / convert_number_to_scale.js
Last active February 9, 2022 06:37
Reduce a number and add thousand, million, billion, trillion, quadrillion, ... return an object with the number and the scale
function numberToScale(number) {
const scales = [
'',
'thousand',
'million',
'billion',
'trillion',
'quadrillion',
'quintillion',
'sextillion',