Skip to content

Instantly share code, notes, and snippets.

@FreddieOliveira
FreddieOliveira / docker.md
Last active May 9, 2024 02:42
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

@jaketame
jaketame / data-media.mount
Last active May 2, 2021 09:36
PlexDrive / rclone crypt / overlayfs service files
# Install this under /lib/systemd/system
# systemctl enable data-media.mount
# systemctl start data-media.mount
[Unit]
Description=Google Drive (overlay)
After=rclonecrypt.service
[Mount]
What=overlay
Where=/data/media
@jaketame
jaketame / plexdrive_build.sh
Last active September 27, 2021 11:56
Golang build for PlexDrive
mkdir /opt/code/ && cd /opt/code
git pull https://github.com/dweidenfeld/plexdrive.git
GOPATH=/opt/code/plexdrive/ && export GOPATH
go get -v
docker run --rm -e GOOS=linux -e GOARCH=amd64 -v $PWD:/usr/src/plexdrive/ -v $PWD/src:/go/src/ -w /usr/src/plexdrive/ golang:1.8 go build -v
# you will need to download nzbdrone.db & some type of sqlite editor
# First We Will Update The Series Table
# Replace the slashes
UPDATE Series SET path = replace( path, '\', '/' ) WHERE path LIKE '%:\%';
# K: is the windows drive that your files were on (replace this with whatever drive your files are on, will need to repeat for each
# windows root folder you have in Sonnar), /home/new/path/in/linux is well the new path in linux
UPDATE Series SET path = replace( path, 'K:', '/home/new/path/in/linux' ) WHERE path LIKE 'K:/%';
# Fix slashes in EpisodeFiles table
UPDATE EpisodeFiles SET RelativePath = replace( RelativePath, '\', '/' ) WHERE RelativePath LIKE '%\%';
#requires -version 2
<#
.SYNOPSIS
Installs latest rclone
.INPUTS
-Location to install.
-exeonly If you only want to deal with the exe.
-Temp Location to use for temp.
-beta To download the latest beta
.OUTPUTS
@lalyos
lalyos / generate-compose.sh
Created April 5, 2015 18:59
generate docker-compose.yml by inspecting a running container
docker-yml() {
docker inspect -f $'
{{.Name}}
image: {{.Config.Image}}
entrypoint: {{json .Config.Entrypoint}}
environment: {{range .Config.Env}}
- {{.}}{{end}}
' $1
}
@tacofumi
tacofumi / diskripper.sh
Last active December 15, 2023 16:18
This script rips DVD/Blu-ray using makemkvcon. Use udev to invoke this script to auto-rip when disk is inserted. Some variables such as length of string to trim in order to get the title of movie may vary depending on your environment.
#!/bin/bash
{
echo $(date)
echo ">>>Disk found"
echo ">>>Setting the title..."
title=$(makemkvcon -r info)
title=`echo "$title" | grep "DRV:0\+"`
title=${title:53}