Skip to content

Instantly share code, notes, and snippets.

View antonizoon's full-sized avatar

Antonizoon antonizoon

View GitHub Profile
@antonizoon
antonizoon / wallabag-android-export.py
Last active July 9, 2021 03:34
Export from Wallabag Android App v2.4.2 to Wallabag v2 JSON Export format
#!/usr/bin/python3
# Wallabag Android SQLite DB to Wallabag Export format
# tested to work on Wallabag Android app version 2.4.2 as of 2021-07-08
# Preparation: To export data from the app go to "Settings - Miscellaneous - Database location" and select "External storage", after that the DB should be available as three wallabag* files in /sdcard/Android/data/fr.gaulupeau.apps.InThePoche/files/ , copy that over to your desktop.
# Usage: After that, ensure python is installed, open a command prompt or terminal
# make sure to run this script within the Android/data/fr.gaulupeau.apps.InThePoche/files/ directory. Otherwise change the OUTPUT_PATH to that directory.
# python wallabag-android-export.py
# This will create the following files:
@antonizoon
antonizoon / code.py
Last active February 1, 2021 21:31
bb10keyboard_hid
# based on the example here, needs the same libraries https://github.com/arturo182/keyboard_featherwing_sw/tree/master/circuitpython
# also drop in the adafruit_hid library. basically just added keyboard send ability when it displays to the screen
# as per the README: https://github.com/adafruit/Adafruit_CircuitPython_HID
#
# HID Keyboard functionality could be improved. Currently it sends the current line to the UART Output terminal as a log
# but it might be better to just remove the UART functionality as it adds lag.
from bbq10keyboard import BBQ10Keyboard, STATE_PRESS, STATE_RELEASE, STATE_LONG_PRESS
from adafruit_display_text.label import Label
from adafruit_display_shapes.rect import Rect
import adafruit_ili9341
@antonizoon
antonizoon / init.pp
Created October 16, 2017 18:16
Quick ssh setup example Puppet
# The absolute minimum that any new server set up needs.
# make sure that any sensitive (password hashes) and non code data is in hiera.
# SSH authorized_keys function to authorized multiple SSH keys
# https://serverfault.com/a/316292
define authorized_keys ($sshkeys, $ensure = "present", $home = '') {
# This line allows default homedir based on $title variable.
# If $home is empty, the default is used.
$homedir = $home ? {'' => "/home/${title}", default => $home}
### Keybase proof
I hereby claim:
* I am antonizoon on github.
* I am antonizoon (https://keybase.io/antonizoon) on keybase.
* I have a public key ASAqfYpYo6kEXU5AxYrF-aE4rOzWV3gJLNasl7vxUzIOBwo
To claim this, I am signing this object:
#version=RHEL7
install
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Accept EULA
eula --agreed