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
@acdha
acdha / newsblur.opml
Created May 15, 2023 14:08
Tech-related NewsBlur subscriptions
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.1">
<!--Generated by NewsBlur - newsblur.com-->
<head>
<title>NewsBlur Feeds</title>
<dateCreated>2023-05-15 14:04:44.095425</dateCreated>
<dateModified>2023-05-15 14:04:44.095425</dateModified>
</head>
<body>
<outline text="Web" title="Web">
@simonw
simonw / README.md
Created November 5, 2022 21:03
Stream activity from Mastodon into a SQLite database

Stream Mastodon activity into a SQLite database

This script subscribes to the live HTTP feed of public activity on my Mastodon instance and writes the results into SQLite database tables.

It needs sqlite-utils and httpx:

pip install sqlite-utils httpx

Then run:

@dz4k
dz4k / discord_bot._hs
Last active June 24, 2024 07:08
Discord bot in _hyperscript
require discord.js as Discord
init immediately
make a Discord.Client from {
intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES]
}
set module discord to it
login(process.env.TOKEN) to discord
end
@ayhanfuat
ayhanfuat / europython_schedule.py
Last active July 28, 2021 15:36
Scrapes the data for EuroPython talks and writes to a CSV file to upload to a calendar
from pandas import DataFrame
from bs4 import BeautifulSoup
import requests
from calendar import month_abbr
import datetime
base = 'https://ep2021.europython.eu'
sessions_url = f'{base}/events/sessions/'
resp = requests.get(sessions_url)
soup = BeautifulSoup(resp.text, 'html.parser')
@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
@valq7711
valq7711 / async_pydal.py
Created June 1, 2021 20:25
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
@Mau5Machine
Mau5Machine / docker-compose.yml
Last active July 4, 2024 16:57
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@kbni
kbni / encoder.py
Created March 2, 2018 05:02
Serialiser for nameko
import json
from datetime import datetime, timedelta
import pendulum
import pytz
from kombu.serialization import register
from miso.utils import ServiceResult
class SpecialJSONEncoder(json.JSONEncoder):
"""
@amix
amix / appear_applet.py
Last active June 24, 2017 10:55
How to implement the `/appear room-name` slash command on Twist using Flask.
# -*- coding: utf-8 -*-
"""
Start video conversations from Twist by just typing `/appear room-name`
"""
from flask import Flask
from flask import jsonify
from flask import request
app = Flask(__name__)
@hideojoho
hideojoho / Vagrant_jupyterhub.md
Last active April 18, 2021 19:52
How to set up a JupyterHub server on Vagrant

What you will get

  • JupyterHub server for multiple users
  • Python libraries: numpy scipy pandas matplotlib (can be changed via Vagrant_provision.sh below)
  • Jupyter Notebook Extensions

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 2.5GB of diskspace
  • 1-2 hours of time (depends on your network speed)