Skip to content

Instantly share code, notes, and snippets.

@dhanyweb
dhanyweb / mfcuk_r65.md
Created September 1, 2020 04:27 — forked from ceres-c/mfcuk_r65.md
Using mfcuk r65 with libnfc 1.5.1 in 2018

You first need to download both libnfc 1.5.1 and mfcuk r65. The former is available among github releases wile the latter can be obtained via git rebase.

If you're on Arch you'll need pcsclite, if on Debian derivates libpcsclite-dev

Let's compile libnfc (<user> is your username)

mkdir -p ~/builds/nfc
cd ~/builds/nfc
wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.5.1/libnfc-1.5.1.tar.gz

tar zxf libnfc-1.5.1.tar.gz

@dhanyweb
dhanyweb / Bing-Image-Scraper
Created August 13, 2021 00:12 — forked from stephenhouser/Bing-Image-Scraper
Bing-Image-Scraper
Bing image scraper example using Python to query and scrape Microsoft Bing image search.
@dhanyweb
dhanyweb / script.py
Created May 29, 2023 04:05 — forked from ibrohimislam/script.py
Script untuk update APN dan auto-connect LTE di PL100
import requests
import re
import subprocess
import time
def login(session):
stok_response = session.get("http://169.254.0.1/cgi-bin/login.cgi?Command=getLoginStok", headers = {'Referer': 'http://169.254.0.1/'})
stok = re.findall(r"<login_stok>(.*?)</login_stok>", stok_response.text, flags=0)[0]
login_data = {'Command': 'setLOGINvalue', 'input_URN': 'admin', 'rand_PWD': 'admin'}
@dhanyweb
dhanyweb / setmode-dirty.patch
Created July 31, 2023 16:44
directfb2 set mode patch
--- a/src/misc/conf.c
+++ b/src/misc/conf.c
@@ -598,9 +598,9 @@
DFBConfigLayer *conf = dfb_config->config_layer;
if (value) {
- int width, height;
+ int width, height, freq;
- if (sscanf( value, "%dx%d", &width, &height ) < 2) {