Skip to content

Instantly share code, notes, and snippets.

View ignisf's full-sized avatar
😈

Petko Bordjukov ignisf

😈
View GitHub Profile
@ignisf
ignisf / malta.sh
Last active October 3, 2023 22:49
FreeBSD kernel, rootfs generation script (useful for running freebsd on qumu with MALTA emulation)
#!/bin/sh
set -e
export TARGET=mips
export TARGET_ARCH=mips
export KERNCONF=MALTA
export DESTDIR=/nfsroot/$TARGET.$TARGET_ARCH
export KERNDIR=/tftpboot/$TARGET.$TARGET_ARCH
export IMAGEDIR=/images
@ignisf
ignisf / gist:d4374fddc368439d1432ad5e8cf6fd5d
Last active May 12, 2023 18:08
Nedis WIFIDS10WT Tasmota Configuration
{"NAME":"Nedis WIFIDS10WT","GPIO":[0,107,0,108,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54}
Module 54
Backlog TuyaMCU 11,4; TuyaMCU 51,51
Backlog SetOption1 1; SetOption65 1; SetOption66 1
Rule1
ON TuyaReceived#Data=55AA000500056A0400010078 DO publish2 stat/%topic%/FIRE OFF ENDON
@ignisf
ignisf / filterlist.txt
Last active April 28, 2023 19:14
List of filter rules that removes the comments from dnevnik.bg
! 2023-04-27 https://www.dnevnik.bg
dnevnik.bg##.gtag-comments-button-homepage
dnevnik.bg##.gtag-comments-button-above-article.comments
dnevnik.bg###CommentsButton
dnevnik.bg##.gtag-comments-button-feeds
dnevnik.bg##[href*="/comments"]
dnevnik.bg##[href*="/#comments"]
||*.dnevnik.bg/*/comments^$document
@ignisf
ignisf / gist:ed4691de467e6125fa1f77d915b3d3cd
Last active December 7, 2022 09:36
Tasmota Nedis WIFIDW10WT
@ignisf
ignisf / test.rb
Last active May 4, 2021 23:47 — forked from SamSaffron/test.rb
require 'benchmark/ips'
require 'set'
numbers = (1..10000).to_a
numbers_as_string = "," + (1..10000).to_a.join(",") + ","
numbers_as_set = Set.new(numbers)
Benchmark.ips do |x|
set -x
tc qdisc del dev eth2 root
tc qdisc del dev eth2 ingress
ip link del eth2slowingress
ip link del eth2slowegress
ip link del eth2fastingress
ip link del eth2fastegress
tc qdisc del dev eth2 handle ffff: clsact
tc filter del dev eth2
@ignisf
ignisf / update.log
Last active March 6, 2021 13:50
Dell Optiplex 3040 TPM Update from 1.2 to 2.0 Troubleshooting Log
[root@soho ~]# fwupdmgr get-devices --show-all-devices
OptiPlex 3040
├─HD Graphics 530:
│ Device ID: bbbf1ce3d1cf15550c3760b354592040292415bb
│ Current version: 06
│ Vendor: Intel Corporation (PCI:0x8086)
│ GUIDs: a859f945-baa2-56c7-a529-85716862a8dd ← PCI\VEN_8086&DEV_1912&REV_06
│ c48d1cbc-3c34-5af1-b38f-bed4746a8acf ← PCI\VEN_8086&DEV_1912
│ Device Flags: • Internal device
@ignisf
ignisf / .block
Created September 13, 2019 15:26 — forked from steveharoz/.block
d3-force testing ground
license: gpl-3.0
height: 1030
scrolling: yes
@ignisf
ignisf / gist:c6160f29805ebb5a52b9a215d6831472
Last active March 26, 2019 15:48
Обезбайганьовизация на dnevnik.bg
! 26/03/2019 https://www.dnevnik.bg
www.dnevnik.bg##:xpath(//article[contains(@class,'article') and ./h2/a[contains(text(),'Кубрат')]])
! 26/03/2019 https://www.dnevnik.bg
www.dnevnik.bg##:xpath(//article[contains(@class,'article') and ./h2/a[contains(text(),'Гришо')]])
! 26/03/2019 https://www.dnevnik.bg
www.dnevnik.bg##:xpath(//article[contains(@class,'article') and ./h2/a[contains(text(),'Григор')]])
! 26/03/2019 https://www.dnevnik.bg
@ignisf
ignisf / mpd.conf
Last active February 16, 2019 06:44
FreeBSD MPD5 Configuration for Mtel HUAWEI 3g Modem
startup:
# configure mpd users
set user foo bar admin
set user foo1 bar1
# configure the console
set console self 127.0.0.1 5005
set console open
# configure the web server
set web self 0.0.0.0 5006
set web open