Skip to content

Instantly share code, notes, and snippets.

View voran's full-sized avatar
🎯
Focusing

Yavor Stoychev voran

🎯
Focusing
View GitHub Profile
@voran
voran / install.sh
Last active September 10, 2025 09:51
B-trust BSS Setup for Arch Linux
#!/bin/bash
yay -S btrustbiss
yay -S sac-core
sudo rm /opt/btrustbiss/lib/app/p11_libs/*
sudo find /opt/btrustbiss/lib/app/BTrustCA/ -name *.cer -exec trust anchor --store {} \;
sudo ln -s /usr/lib/libpcsclite.so.1 /usr/lib/libpcsclite.so.1.0.0
sudo pacman -S ccid pcsclite
sudo systemctl enable pcscd && sudo systemctl start pcscd
echo "To finish, install linux driver from https://www.abcircle.co.jp/en/product/2/CIR115B/sim-sized-contact-smart-card-reader/"
@voran
voran / hostapd.conf
Created June 13, 2024 21:27
hostapd.conf for wifi 6 on MEDIATEK Corp. MT7921 802.11ax
ssid=yavor-osiris
interface=wlp5s0
bridge=br-lan
channel=36
driver=nl80211
hw_mode=a
vht_capab=[MAX-MPDU-11454][VHT80][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE][MU-BEAMFORMEE]
logger_stdout=-1
logger_stdout_level=2
max_num_sta=255
@voran
voran / hostapd.conf
Last active August 18, 2020 11:17
Hostapd config file for 80211n/ac 5ghz network on Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
ssid=yavor-osiris
interface=wlp5s0
bridge=br-lan
channel=48
driver=nl80211
hw_mode=a
ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40][LDPC][TX-STBC][RX-STBC1]
vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1]
logger_stdout=-1
logger_stdout_level=2
@voran
voran / Kconfig.patch
Last active August 7, 2023 18:35
Patching atheros to disable eeprom reading on Arch Linux. (Do not break the law, use at your own responsibility!) Latest Arch Linux Kernel tested - `5.10.1-arch1-1`.
--- drivers/net/wireless/ath/Kconfig 2020-08-17 14:45:00.611581731 +0300
+++ drivers/net/wireless/ath/Kconfig 2020-08-17 14:45:23.001863361 +0300
@@ -1,4 +1,8 @@
# SPDX-License-Identifier: ISC
+config ATH_USER_REGD
+ bool "Do not enforce EEPROM regulatory restrictions"
+ default n
+
config ATH_COMMON
tristate
@voran
voran / gist:70450c31818c067cf918c225fef74a3c
Created July 12, 2018 11:38 — forked from matthieu/gist:b07c5ba27bc99188a15f
Create and send a Bitcoin transaction using the BlockCypher Transaction API
# In this example we're sending some test bitcoins from an address we control to a brand new test
# address. We'll be sending the coins using the following address, public and private keys (please
# don't abuse).
# address : mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov
# public : 03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f
# private : 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2
# 1. generate a one-shot dummy address we're going to send money to
$ curl -X POST http://api.blockcypher.com/v1/btc/test3/addrs
{