Skip to content

Instantly share code, notes, and snippets.

.\esptool.exe --chip esp32 --port COMx --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 bootloader_dio_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin
unsigned long ct = 0;
unsigned char vs[150];
unsigned char pvs[32];
u8 b = 0;
u8 d = 0;
unsigned int w = 360;
unsigned char *data;
cat > /etc/X11/xorg.conf.d/10-blanking.conf << EOF
Section "Extensions"
Option "DPMS" "Disable"
EndSection
Section "ServerLayout"
Identifier "ServerLayout0"
Option "StandbyTime" "0"
#!/usr/bin/env python3
#
# zyxel_scramble.py
#
# author: Felis-Sapiens
#
# Decode password from ZyXEL config (NDMS V2)
import sys
from base64 import b64decode, b64encode
@alex-eri
alex-eri / thin.md
Last active February 5, 2021 08:49

/opt/kiosk/bin/kiosk.sh

#!/bin/bash
. /etc/profile
export LANG=ru_RU.UTF-8
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
systemctl --user import-environment DISPLAY XAUTHORITY
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
    dbus-update-activation-environment DISPLAY XAUTHORITY
@alex-eri
alex-eri / password.txt
Created October 20, 2020 13:26 — forked from gabonator/password.txt
HiSilicon IP camera root passwords
Login Password
root xmhdipc
root klv123
root xc3511
root 123456
root jvbzd
default OxhlwSG8
defaul tlJwpbo6
defaul S2fGqNFs
root hi3518
class Data:
def __init__(self):
self.state = {}
self.cond = asyncio.Condition()
async def clock_waiter(m, cb):
while True:
try:
# NetworkManager - a library to make interacting with the NetworkManager daemon
# easier.
#
# (C)2011-2017 Dennis Kaarsemaker
# License: zlib
import copy
import dbus
import dbus.service
import os
# NetworkManager - a library to make interacting with the NetworkManager daemon
# easier.
#
# (C)2011-2017 Dennis Kaarsemaker
# License: zlib
import copy
import dbus
import dbus.service
import os
var loc = window.location.href;
var url_segments = loc.split('/');
url_segments.pop();
vat url_segment = url_segments.pop();
$('.menu li').each(function () {
var link = $(this).find('a').attr('href');
var link_segments = link.split('/');
link_segments.pop()