# frozen_string_literal: true | |
# Example usage: | |
# | |
# tcpdump -i lo0 'port 3010' -v -X -l | ruby frame_display.rb | |
# | |
require 'bundler/inline' | |
gemfile(true, quiet: true) do | |
source 'https://rubygems.org' |
// ==UserScript== | |
// @name Pocket Counters | |
// @namespace http://vanadium23.me/ | |
// @version 0.5 | |
// @description Add counters to pocket list | |
// @author vanadium23 | |
// @match https://app.getpocket.com/* | |
// @ran-at document-idle | |
// @grant none | |
// ==/UserScript== |
require 'benchmark' | |
require 'benchmark/memory' | |
require 'dry-struct' | |
require 'dry-initializer' | |
require 'virtus' | |
require 'shallow_attributes' | |
require 'active_data' | |
require 'active_model' | |
require 'benchmark/ips' |
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 your 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.
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
# Add to `spec/support/database_state_loader.rb` | |
class DatabaseStateLoader | |
class EnvironmentError < RuntimeError; end | |
def self.load(path) | |
new(path).load | |
end | |
def initialize(path) |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |