Skip to content

Instantly share code, notes, and snippets.

View brodul's full-sized avatar

Andraz Brodnik brodul

View GitHub Profile
import os
import serial
commands = {
'ON_C': b'0',
'DOWN_VOLUME_C': b'1',
'UP_VOLUME_C': b'2',
'MUTE_C': b'3',
'DVD_C': b'4',
#!/usr/bin/env bash
build ()
{
echo "in build"
frontend ()
{
echo "in frontend"
echo "$@"
}
brodul:~/ $ espeak [11:17:59]
a
ALSA lib pcm.c:2521:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2521:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2521:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm.c:2442:(snd_pcm_open_conf) Either /nix/store/bmqqdmp9jajmx8v5jwc4lxl62b6apynm-alsa-plugins-1.1.5/lib/alsa-lib/libasound_module_pcm_pulse.so cannot be opened or _snd_pcm_pulse_open was not defined inside
time="2018-01-16T15:36:16Z" level=error msg="map[last-push.example.com:acme: Error 429 - urn:acme:error:rateLimited - Error creating new authz :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/]"
time="2018-01-16T15:36:16Z" level=error msg="Error getting ACME certificates [last-push.example.com] : cannot obtain certificates map[last-push.example.com:acme: Error 429 - urn:acme:error:rateLimited - Error creating new authz :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/]"
time="2018-01-16T15:36:20Z" level=error msg="map[last-push.1.example.com:acme: Error 403 - urn:acme:error:unauthorized - Invalid response from http://last-push.1.example.com/.well-known/acme-challenge/-NdWyrjogM19ohD5-2GAgiVQjwDuGl2Jk5ZJ8i3cpi0: "
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Page not"
Error Detail:
Validation for last-push.1.example.com:443
graceTimeOut = "10s"
checkNewVersion = false
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
time="2018-01-16T21:16:01Z" level=error msg="Error getting ACME certificates [last-push.example.com] : cannot obtain certificates map[last-push.example.com:acme: Error 429 - urn:acme:error:rateLimited - Error creating new authz :: too many fa
iled authorizations recently: see https://letsencrypt.org/docs/rate-limits/]"
time="2018-01-17T09:25:04Z" level=error msg="map[develop.1.example.com:acme: Error 403 - urn:acme:error:unauthorized - Invalid response from http://develop.1.example.com/.well-known/acme-challenge/8TGpwog-LKOdXLRFxcKVBVLqv1MJlJd1r34aY7WeDXM:
"
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Page not"
@brodul
brodul / basic_wrapping.py
Last active January 4, 2020 11:55
concurrency in python in 2020
import urllib.request
import asyncio
loop = asyncio.get_event_loop()
loop.set_debug(True)
def get(url):
with urllib.request.urlopen(url) as f:
return f.read()
@brodul
brodul / Makefile
Created August 26, 2020 06:50
python Makefile
SHELL= bash
VENV = venv
install: requirements.txt
python3 -m venv $(VENV)
$(VENV)/bin/pip install -r requirements.txt --upgrade
clean:
rm -rf $(VENV)
// ==UserScript==
// @name Huble Bundle Books
// @namespace http://brodul.org
// @version 0.1
// @description Downloads books in a format from huble bundle
// @author Andraz Brodnik brodul
// @match https://www.humblebundle.com/*
// @grant GM_download
// @run-at document-idle
// ==/UserScript==