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 re | |
import os | |
import glob | |
import eyed3 | |
def get_valid_filename(value): | |
value = value.replace("/", " ") | |
value = re.sub(r"[^-\w.\s^\]^\[^\(\^)]", "", value) | |
value = re.sub(r"[\s]+", " ", value).strip('-_.') |
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
""" Decode IR signals from remote controls """ | |
def decode_nec(ir_signal): | |
protocol_leading = 9000 | |
protocol_leading_space = 4500 | |
protocol_pulse = 562.5 | |
protocol_pulse_high = 1687.5 | |
width = 200 | |
leading_pulse = ir_signal.pop(0) |
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> |
NewerOlder