Skip to content

Instantly share code, notes, and snippets.

View bkbilly's full-sized avatar
🎃
Let's Build a Better World Together

Vasilis Koulis bkbilly

🎃
Let's Build a Better World Together
View GitHub Profile
import base64
from datetime import datetime
import asyncio
from winsdk.windows.media.control import GlobalSystemMediaTransportControlsSessionManager as MediaManager
from winsdk.windows.storage.streams import Buffer, InputStreamOptions
async def get_media_info():
sessions = await MediaManager.request_async()
from m3u8downloader.main import M3u8Downloader
from bs4 import BeautifulSoup
import requests
import re
import os
file_location = 'Η Γη της Ελιάς'
vgm_url = 'https://www.megatv.com/episodes/?id=s242&type=tvshows'
os.makedirs(file_location, exist_ok=True)
@bkbilly
bkbilly / stickypassword_to_csv.py
Last active June 14, 2023 20:40
Converts the XML files exported by Sticky Password to CSV format for import to Chrome or Firefox.
import xmltodict
import pprint
import csv
# Make sure you convert the xml file to UTF-8
in_xml = "stickypassword.xml"
out_csv = "pass.csv"
pp = pprint.PrettyPrinter(depth=2)
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: true
project:
name: bkbilly.smartdevice
version: "1.0"
logger:
captive_portal:
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &
# vncserver -localhost no :2
# vncserver -kill :2
@bkbilly
bkbilly / docker-cvat.yml
Last active March 20, 2024 04:26
Access CVAT from any host
# Copyright (C) 2018-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
version: '3.3'
services:
cvat_db:
container_name: cvat_db
image: postgres:10-alpine
#include <Wire.h>
#include <TFLI2C.h>
#include <ESP8266WiFi.h>
TFLI2C tflI2C;
int16_t tfDist; // distance in centimeters
int16_t tfAddr = TFL_DEF_ADR; // Use this default I2C address
const char* ssid = "CHANGE_SSID";
/*
*
* Created by bkbilly
* https://github.com/omersiar/RFID522-Door-Unlock/blob/master/EEPROM/EEPROM.ino
*
*
*/
#include <WiFi.h>
#include <ESPmDNS.h>
apt install python3-pip htop lm-sensors
pip3 install --upgrade pip
apt remove python3-wrapt
apt remove python3-scipy
apt install cmake libncurses5-dev libncursesw5-dev git
git clone https://github.com/Syllo/nvtop.git
mkdir -p nvtop/build
cd nvtop/build
cmake ..
[Unit]
Description=Home assistant service for Temperature/Humidity
[Service]
ExecStart=/usr/bin/python3 /opt/remotehomeassistant_dht11.py
WorkingDirectory=/opt/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi