Skip to content

Instantly share code, notes, and snippets.

View remcoboerma's full-sized avatar

Remco Boerma remcoboerma

  • Education Warehouse, verZimpel, Dutveul
  • Assen, the Netherlands
View GitHub Profile
@remcoboerma
remcoboerma / rtc.py
Created November 23, 2022 21:07 — forked from yuliantoeric/rtc.py
Microbit-Micropython snippet for DS1307 real-time clock
from microbit import i2c
RTC_ADDR = 0x68
def bcd2bin(v):
return v - 6 * (v >> 4)
def bin2bcd(v):
return v + 6 * (v // 10)
@remcoboerma
remcoboerma / async_pydal.py
Created June 3, 2021 20:21 — forked from valq7711/async_pydal.py
async_pydal
from pydal import DAL
from voodoodal import DB, Table, Field, model
import aiosqlite
import asyncio
# async sqlexecuter
class SQLExecuter:
def __init__(self, pydal_adapter, adb_executer):
self.adb_executer = adb_executer
self.adapter = pydal_adapter
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
@remcoboerma
remcoboerma / youtube-to-mp3-bookmarklet.js
Last active March 6, 2023 07:49
Bookmarklet for downloading the MP3 of a YouTube video.
javascript: window.location = document.URL.replace("youtube", "listentoyoutube").replace("https://", "http://");