Skip to content

Instantly share code, notes, and snippets.

View DarkPointer's full-sized avatar

DarkPointer DarkPointer

View GitHub Profile
@DarkPointer
DarkPointer / android-backup-apk-and-datas.md
Created January 13, 2024 22:45 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

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

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 !

Fetch application APK

@DarkPointer
DarkPointer / inotify-without-root.sh
Created April 2, 2023 15:50 — forked from Goon3r/inotify-without-root.sh
Installs inotifytools without the need to go through package managers thus removing the need for root access. Useful for shared seeboxes.
# Download inotifytools
# - Version, url's, directory names could change, use your brain.
$ wget https://github.com/inotify-tools/inotify-tools/releases/download/3.20.2.2/inotify-tools-3.20.2.2.tar.gz
$ tar -xvf inotify-tools-3.20.2.2.tar.gz
$ cd inotify-tools-3.20.2.2
# Install inotifytools
# - Configure it to use directories under non root user home dir
# - Imporant, absolute paths required for configure commands
$ ./configure --prefix=/home/user/.local --libdir=/home/user/.local/lib
@DarkPointer
DarkPointer / app.py
Last active September 19, 2019 16:51 — forked from LazieKat/reddit-video-parser.py
Parse, download and merge reddit video and audio
#!/usr/bin/python3
############ Imports
import re, requests, tempfile, argparse, ffmpy, os
import urllib.request
############ Parser function
def parseRedditVideo(link: str, outPath: str):
@DarkPointer
DarkPointer / app.py
Created September 17, 2019 21:48
Parse, download and merge reddit video and audio
import re
import requests
import tempfile
import subprocess
import urllib.request
def parseRedditVideo(link: str, outPath: str):
response = requests.get(url=link, headers = {'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0'})
json = response.json()
isVideo = json[0]['data']['children'][0]['data']['is_video']
@DarkPointer
DarkPointer / is-private-mode.js
Created August 28, 2019 20:11 — forked from jherax/is-private-mode.js
Detect if the browser is running in Private mode (Promise based)
// uncomment if you are transpiling with Babel + Webpack
// const { window, document } = global;
/**
* Lightweight script to detect whether the browser is running in Private mode.
* @returns {Promise}
*
* Live demo:
* @see http://live.datatables.net/piduzelo/1
*