Skip to content

Instantly share code, notes, and snippets.

@ashwinkanchana
ashwinkanchana / osmc-java-jdownloader-installer.sh
Created November 10, 2019 15:17 — forked from atiris/osmc-java-jdownloader-installer.sh
Wizard to install the current version of JDownloader (jdownloader.org) on raspberry pi (running osmc or another linux). You can install (together or individually) latest java for RPI, download and install headless JDownloader (my.jdownloader.org) and create service to start JDownloader after boot and restart automatically after crash.
#!/bin/bash
# Script: osmc-java-jdownloader-installer.sh
# Author: Jozef Pažin
# Description: Wizard to install the current version of java and/or jdownloader on raspberry pi running osmc.
# License: MIT | use arbitrarily, attribution is not required
# How to run:
# - Check if this code is correct first because this script need to be run under root and run gist
# from web is not recommended in terms of security only that you know exactly what it does. Check it:
# curl -Ls https://gist.github.com/atiris/34dc670264274b3a472f2a718e4de83a/raw | nano -
@trongtinh1212
trongtinh1212 / Tweaks.reg
Last active April 17, 2024 08:23
Registry Tweaks Windows 10
Windows Registry Editor Version 5.00
;USE AT YOUR OWN RISK!
;USE AT YOUR OWN RISK!
;USE AT YOUR OWN RISK!
;Improves system responsiveness and network speed.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile]
"SystemResponsiveness"=dword:00000001
@AveYo
AveYo / ..runasTI.bat
Last active April 13, 2024 13:25
Lean and Mean runas TrustedInstaller / System compact snippet to easily integrate in your batch scripts
@echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2022
goto :nfo
[FEATURES]
- innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile
- sets ownership privileges, high priority, and explorer support; get System if TI unavailable
- accepts special characters in paths for which default run as administrator fails
- adds Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer
[USAGE]
- First copy-paste RunAsTI snippet after .bat script content
- Then call it anywhere to launch programs with arguments as TI
@Pix13
Pix13 / zram-cust.sh
Last active May 26, 2020 13:37 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
#!/bin/bash
# Custom SoC ZRAM script
# Tuned for quad core, 1 GB RAM models
# put me in /etc/init.d/zram.sh and make me executable
# then run "sudo update-rc.d zram.sh defaults"
# Custom SoC system memory: 628133888
modprobe zram
echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams
@simbesh
simbesh / Shield_Intents.MD
Last active March 9, 2021 17:38 — forked from mcfrojd/Shield_Intents.MD
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Credits and thanks: Home Assistant Forum users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh


Starts Netflix (Shows profiles if its the first start.)

{"entity_id" :"media_player.shield", "intent": "-n com.netflix.ninja/.MainActivity"}

Starts Twitch (Starts to play the stream)

{"entity_id" :"media_player.shield", "intent": "twitch://stream/frenck"}
@davlast
davlast / JDownloader2.sh
Last active January 15, 2020 06:47 — forked from leosuncin/JDownloader2.sh
JDownloader 2 headless startup script
#!/bin/sh
DESC="JDownloader 2 Headless"
NAME=JDownloader2
PIDFILE=/var/run/$NAME.pid
COMMAND="/usr/bin/java -- -Djava.awt.headless=true -jar /opt/JDownloader2/JDownloader.jar"
RUN_AS=pi
d_start() {
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 30, 2024 17:56
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@atiris
atiris / osmc-java-jdownloader-installer.sh
Last active September 8, 2023 13:01
Wizard to install the current version of JDownloader (jdownloader.org) on raspberry pi (running osmc or another linux). You can install (together or individually) latest java for RPI, download and install headless JDownloader (my.jdownloader.org) and create service to start JDownloader after boot and restart automatically after crash.
#!/bin/bash
# Script: osmc-java-jdownloader-installer.sh
# Author: Jozef Pažin
# Description: Wizard to install the current version of java and/or jdownloader on raspberry pi running osmc.
# License: MIT | use arbitrarily, attribution is not required
# How to run:
# - Check if this code is correct first because this script need to be run under root and run gist
# from web is not recommended in terms of security only that you know exactly what it does. Check it:
# curl -Ls https://gist.github.com/atiris/34dc670264274b3a472f2a718e4de83a/raw | nano -
@mcevskb
mcevskb / trakt-remove-history.js
Last active July 8, 2021 21:07 — forked from hugoboos/trakt-remove-history.js
Remove duplicate episodes from Trakt
// Run in console on the history page (http://trakt.tv/users/<username>/history)
// Will remove all the duplicate episodes, on that page, from the watched history.
var episodesRemoved = []
// episodeItems = $("[data-type=episode]")
episodeItems.each(function(){
var $this = $(this);
var episodeId = $this.data('episode-id')
var showId = $this.data('show-id')
@AveYo
AveYo / @ batch scripts for power users.md
Last active May 18, 2024 02:01
Windows batch scripts for power users

windows_update_toggle.bat v10.1 final
~ one script to rule them all!
~ block build upgrades and/or automatic updates without breawking Store downloads and Defender protection updates
~ there is a lot of focus on Defender updates working independently, unlike any other updates "management" solution
~ ifeo safe blocking with no destructive changes of ownership, deleting files, removing tasks, or over-blocking
~ toggle everything from the Desktop right-click context menu!
but wait, there is more:
~ hide/unhide/install update lists with counter at the Desktop right-click context menu!

Previous update toggle batch suite scripts have been overwritten on pastebin, but will still be available here: