Skip to content

Instantly share code, notes, and snippets.

@Piskvor
Piskvor / extract_cookies.sh
Created November 9, 2022 14:27 — forked from hackerb9/extract_cookies.sh
Extract cookies.sqlite to cookies.txt for use in wget or curl.
#!/bin/bash -e
# extract_cookies.sh:
#
# Convert from Firefox's cookies.sqlite format to Netscape cookies,
# which can then be used by wget and curl. (Why don't wget and curl
# just use libsqlite if it's installed?)
# USAGE:
#
# $ extract_cookies.sh > /tmp/cookies.txt
@Piskvor
Piskvor / string.polyfill.php
Created March 7, 2025 11:39 — forked from juliyvchirkov/string.polyfill.php
php: polyfills of string functions str_starts_with, str_contains and str_ends_with
<?php declare(strict_types = 1);
/**
* Provides polyfills of string functions str_starts_with, str_contains and str_ends_with,
* core functions since PHP 8, along with their multibyte implementations mb_str_starts_with,
* mb_str_contains and mb_str_ends_with
*
* Covers PHP 4 - PHP 7, safe to utilize with PHP 8
*/
/**
@Piskvor
Piskvor / README.md
Created September 12, 2025 09:18 — forked from bryanjhv/README.md
GPSD for GeoClue2 using NMEA over TCP

CLUE-NMEA-GPSD

GPSD for GeoClue2 using NMEA over TCP.

Installation

  1. Copy the XML file to /etc/avahi/services/nmea-0183.service.
  2. Run glue.py in order to start the service (listens on 10110/tcp).
  3. Optionally create a service (systemd or the like) for it to start at boot.
  4. Optionally disable all GeoClue2 sources except network-nmea to use GPS only.