This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: ${name} | |
friendly_name: ${friendly_name} | |
name_add_mac_suffix: true | |
project: | |
name: bkbilly.smartdevice | |
version: "1.0" | |
logger: | |
captive_portal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2018-2021 Intel Corporation | |
# | |
# SPDX-License-Identifier: MIT | |
version: '3.3' | |
services: | |
cvat_db: | |
container_name: cvat_db | |
image: postgres:10-alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Created by bkbilly | |
* https://github.com/omersiar/RFID522-Door-Unlock/blob/master/EEPROM/EEPROM.ino | |
* | |
* | |
*/ | |
#include <WiFi.h> | |
#include <ESPmDNS.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
NewerOlder