Skip to content

Instantly share code, notes, and snippets.

View DPDmancul's full-sized avatar
🦊
gitlab.com/DPDmancul

Davide Peressoni DPDmancul

🦊
gitlab.com/DPDmancul
View GitHub Profile
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 10, 2026 20:10
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@arrieta
arrieta / lexer.cpp
Last active February 4, 2026 09:55
Simple C++ Lexer
// A simple Lexer meant to demonstrate a few theoretical concepts. It can
// support several parser concepts and is very fast (though speed is not its
// design goal).
//
// J. Arrieta, Nabla Zero Labs
//
// This code is released under the MIT License.
//
// Copyright 2018 Nabla Zero Labs
//
@steven2358
steven2358 / ffmpeg.md
Last active April 30, 2026 20:08
FFmpeg cheat sheet
@crittermike
crittermike / wget.sh
Last active May 5, 2026 11:30
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active December 25, 2025 21:23
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@soderstroff
soderstroff / rust.hs
Last active September 17, 2022 09:50
-- This is a comment. It is not code. There are no multi-line comments.
-- You did not want those, anyway.
-- Functions take arguments separated by whitespace.
f x y z
-- The only exception is functions of no arguments.
no_args_fun ~ -- This is sort of like passing void to a function.
-- Function declarations separate arguments by comma.
f :: i32, i32 -> i32