Skip to content

Instantly share code, notes, and snippets.

@adripo
adripo / docker-compose.yml
Created May 24, 2022 00:34 — forked from Aghassi/docker-compose.yml
LinuxServer Docker Compose: Plex, Sonarr, Radarr, NZBGet, Let's Encrypt, Time Machine
version: '2'
services:
plex:
image: linuxserver/plex
container_name: plex
volumes:
- /path/to/plex/config:/config
- /path/to/plex/Movies:/data/movies
- /path/to/plex/Shows:/data/tvshows
- /path/to/plex/transcode:/data/transcode
@adripo
adripo / Inject_jQuery.txt
Last active January 1, 2022 18:24
Inject jQuery in the JavaScript Console - Bookmark
javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js')
@adripo
adripo / console.sh
Created January 1, 2022 18:21
Inject jQuery in the JavaScript Console
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type
jQuery.noConflict();
@adripo
adripo / fossil_5e_debloat.txt
Last active January 20, 2025 01:15
Fossil Gen 5E (codename: sole) SAFE DEBLOAT- commands and packages
### COMMANDS
# connect
adb connect WATCH_IP:5555
# list enabled packages
adb shell cmd package list packages -e > enabled_packages.txt
# list disabled packages
adb shell cmd package list packages -d > disabled_packages.txt
@adripo
adripo / wget.sh
Created May 15, 2021 13:43 — forked from crittermike/wget.sh
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.
@adripo
adripo / git-tag-delete-local-and-remote.sh
Created December 8, 2020 03:20 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@adripo
adripo / onbeforescriptexecute.js
Created April 25, 2020 23:19 — forked from maple3142/onbeforescriptexecute.js
polyfill of 'beforescriptexecute' event
// 'beforescriptexecute' event [es5]
// original version: https://gist.github.com/jspenguin2017/cd568a50128c71e515738413cd09a890
;(function() {
;('use strict')
function Event(script, target) {
this.script = script
this.target = target
this._cancel = false