Skip to content

Instantly share code, notes, and snippets.

@kadyb
kadyb / fastrbindsf.R
Created February 18, 2023 11:24
Fast rows combine in {sf}
## This function is faster alternative to `rbind()` in the {sf} package.
## Basically, it uses `collapse::unlist2d()` to combine rows.
## See also: https://github.com/r-spatial/sf/issues/798
fastrbindsf = function(x, check = FALSE) {
if (length(x) == 0) stop("Empty list")
if (isTRUE(check)) {
ref_crs = sf::st_crs(x[[1]])
ref_colnames = colnames(x[[1]])
for (i in seq_len(length(x))) {
@mibli
mibli / flashing-magisk-a320fl.md
Last active October 12, 2025 20:36
Flashing Magisk on Samsung A3 2017 on Linux

Rooting Samsung A3 2017 (A320FL, a3y17lt) on Linux, the cautious way

First off, I'm not responsible for any damage to Your devices, I'm sharing my experience and it should not be taken as a replacement for manual and common sense. You're following the guide at Your own risk!!

The purpose of this document is to help understand me the process of flashing. The issue with a lot of guides is that they describe only the necessary steps, and provide pre-patched archives and images, pre-downloaded binaries, which is not a very assuring or secure way of approaching things. I will try to describe where to get original binaries, how to patch the original image.

Don't treat the document as an oracle, go check and verify things. Cautious is the way!

Backup your data.

@matthieuheitz
matthieuheitz / djvu2pdf.sh
Last active August 29, 2025 11:56
djvu2pdf, a conversion script using ocrodjvu and pdfbeads
#!/bin/bash
# Method found here https://askubuntu.com/a/122604/423332
# Dependencies:
# On ubuntu, you can install ocrodjvu and pdfbeads with:
# sudo apt install ocrodjvu
# gem install pdfbeads
# The path and filename given can only contain ascii characters
@jarbro
jarbro / symantec-vip-access-totp.md
Last active November 27, 2025 10:29
Generate Symantec VIP Access Token as TOTP

Generate Symantec VIP Access Token as OTP

Recently I came across a web service that required two-factor authentication using the Symantec VIP Access App. I already manage all of my OTP tokens in a different app (If you are on iOS I highly recommend using OTP Auth by Roland Moers.) and did not want to have to use yet another app to generate the TOTP.

There is a way to generate a Symantec VIP Access compatible token very easily if you have access to an environment which can run Python PIP. I happen to have Ubuntu Windows Subsystem Linux running on my machine. (If you are running Windows 10 and don't have this you should really check it out.) Let's get started...

hello

Instructions

Here we install python3-pip and qrencode so we can generate our secret, I