Skip to content

Instantly share code, notes, and snippets.

View atais's full-sized avatar

Michał Siatkowski atais

View GitHub Profile
@atais
atais / handbrake.sh
Created July 10, 2017 20:21
Batch convert DVD videos (with VIDEO_TS folder) to MKV using HandBrake CLI
#!/bin/bash
###########
#
# Batch convert DVD Videos with HandBrake CLI
# The script will recursively look for "VIDEO_TS" folders and parse them
#
# Read this to understand:
# https://mattgadient.com/2013/06/12/a-best-settings-guide-for-handbrake-0-9-9/
# http://www.thewebernets.com/2015/02/28/easiest-best-optimal-settings-for-handbrake-dvd-video-conversion-on-mac-windows-and-linux/
#
@atais
atais / DisplayProductID-0
Last active November 25, 2020 18:46
Mac OS inverted colours problem
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>DisplayProductID</key>
<integer>0</integer>
<key>DisplayVendorID</key>
<integer>16652</integer>
<key>IODisplayEDID</key>
<data>
@atais
atais / ubuntu_install.sh
Last active February 27, 2021 20:55
my apps, backup for clean install
#!/bin/bash
### no clutter
cd /tmp
### OpenVPN
# VPN: https://necromuralist.github.io/posts/openvpn-on-ubuntu-1804/
sudo apt install -y openvpn network-manager-openvpn network-manager-openvpn-gnome
### Git
@atais
atais / ddns-check
Last active May 23, 2024 09:11
Check if ip is up to date
#/bin/sh
CIP=$(curl -s https://api.ipify.org/?format=json | jq .ip -r)
DIP=$(nslookup domain.pl ns107.ovh.net | awk '/^Address: / { print $2 }')
if [ "$CIP" != "$DIP" ] ; then
echo "[$(date)] $CIP != $DIP"
/share/CE_CACHEDEV1_DATA/Web/ddns/ddns-update $CIP
else
echo "[$(date)] $CIP == $DIP"
@atais
atais / ddns-update
Last active March 25, 2020 09:50
update ddns on OVH
#!/bin/sh
###
# Based on
# https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS#google-domains
# https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS#bind9-ddns-using-nsupdate
###
set -u
@atais
atais / README.md
Last active November 12, 2024 17:28
Sony Android TV De-bloat

Sony Android TV De-bloat

I have used it for my Sony 65W855C Android TV. I can confirm the TV is still fully functional.

So far I have not switched the launcher.

To do

I am still looking for ADB command to limit background process.