Skip to content

Instantly share code, notes, and snippets.

@ivanistheone
ivanistheone / txt2mp3.sh
Last active January 5, 2023 14:55
This script converts a plain text file, e.g. article.txt into a mp3 audiobook using the MacOS text-to-speech accessibility command-line tool `say`. Adjust the `VOICE` and `RATE` parameters to customize to your liking. Note this requires running on MacOS.
#!/usr/bin/env bash
set -e
# This script converts any text file into a mp3 audiobook using the MacOS
# text-to-speech accessibility command-line tool `say`.
# Adjust the `VOICE` and `RATE` parameters to customize to your liking:
VOICE="Alex"
RATE="295" # pretty fast
if [ $# -eq 0 ]; then
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 6, 2024 15:28
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@gullyn
gullyn / flappy.html
Last active May 4, 2024 15:35
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
@dkvasnicka
dkvasnicka / Dockerfile
Last active February 26, 2021 11:31
Racket Jupyter kernel setup for Deepnote.com
FROM gcr.io/deepnote-200602/templates/deepnote
RUN sudo apt-get update && \
sudo apt-get install -y libzmq5
# Derived from https://github.com/jackfirth/racket-docker which is
# licensed under the MIT license.
ENV RACKET_INSTALLER_URL=http://mirror.racket-lang.org/installers/7.8/racket-7.8-x86_64-linux-natipkg.sh
ENV RACKET_VERSION=7.8
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 7, 2024 19:39
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

@judge2020
judge2020 / generate-client.sh
Created November 2, 2019 04:51 — forked from Belphemur/generate-client.sh
Generate a new client configuration for WireGuard
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi
@robsouth84
robsouth84 / $PS - pull all apks from adb
Created October 23, 2019 02:37
Some PowerShell one liners to pull apks from a Android device with adb
//find all apps NOT in /data and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ " | ForEach-Object { adb pull $_ }
//find all apps NOT in /data && NOT in /vendor (likely no access) and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ | grep -v ^\/vendor" | ForEach-Object { adb pull $_ }
//find all apps in /data and pull to current dir
//this will pull entire package folder not just apk. first this was out of convienience when parsing the strings, but turns out you get some intersting binaries along the way. see facebook for example
$ adb shell "pm list packages -f | cut -d':' -F2 | grep ^\/data | cut -sd 'base.apk' -F1 " | ForEach-Object { adb pull $_ }
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 7, 2024 12:32
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 !

@Belphemur
Belphemur / generate-client.sh
Last active October 20, 2021 22:14
Generate a new client configuration for WireGuard
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 7, 2024 08:00
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat