Skip to content

Instantly share code, notes, and snippets.

View DroidFreak32's full-sized avatar
:shipit:
I may be slow to respond.

Rushab Shah DroidFreak32

:shipit:
I may be slow to respond.
View GitHub Profile
@DroidFreak32
DroidFreak32 / ChatGPT NVENC.md
Last active February 6, 2025 17:14
ChatGPT NVENC + Openwrt FW Groovy

https://chatgpt.com/share/67a4b87c-a0fc-8007-b4c9-887145620c6b

Below are two example ffmpeg command lines—one using libx265 (CPU-based, software encode) and one using NVIDIA’s NVENC-based AV1 encoder—that meet your criteria. I’ve kept the original 708×480 resolution (with DAR 4:3) and used CRF/CQ settings in the visually lossless–to–near-lossless range (CRF around 18 for x265; and for AV1 NVENC we use a comparable constant‐quality “CQ” value).


1. Software Encoding with libx265

This command uses libx265 with a “slow” preset and CRF set to 18 (feel free to adjust between 18 and 20 if you’d like a tiny bit more compression versus quality). It also forces the pixel format to yuv420p (8‑bit) to match the source’s 8‑bit depth. (Since your source has a nonstandard resolution with a display aspect ratio of 4:3, ffmpeg should preserve the metadata—but if you ever need to enforce it you can add a video filter like -vf "setdar=4/3".)

From b1de9a7db7ace4b8bfb8931609e4ef8a08efe0c0 Mon Sep 17 00:00:00 2001
From: droidfreak32 <[email protected]>
Date: Tue, 26 Nov 2024 19:45:33 +0530
Subject: [PATCH] mpv_hack
---
stremio | Bin 235712 -> 235712 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/stremio b/stremio
@DroidFreak32
DroidFreak32 / KDE_asusctl_g15.ini
Created September 10, 2022 09:06
Import in KDE custom shortcuts settings
[Data]
DataCount=1
[Data_1]
Comment=Comment
DataCount=2
Enabled=false
Name=AsusLinux
SystemGroup=0
Type=ACTION_DATA_GROUP
diff --git a/res/xml/pulse_settings.xml b/res/xml/pulse_settings.xml
index 3a7d261cb0..72a2d9e59a 100644
--- a/res/xml/pulse_settings.xml
+++ b/res/xml/pulse_settings.xml
@@ -93,7 +93,7 @@
android:title="@string/pulse_filled_block_size"
android:max="8"
android:defaultValue="4"
- android:min="4"
+ android:min="2"
@DroidFreak32
DroidFreak32 / flac2opus.sh
Created December 8, 2019 18:31 — forked from berturion/flac2opus.sh
Encode flac files to opus preserving folder structure and stripping ID3 tags
#!/bin/bash
# Copyright 2019 Bertrand Michas <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCNUMBERLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
[HOL Lab Challenge](https://labs.hol.vmware.com/HOL/console/lab/HOL-1904-02-CHG-HOL)
Module 1
Challenge 1:
Decrease VM's vCPU Count to 2
Challenge 2:
VM has a default gateway that can't be pinged.
The network associated to the VM's network adapter may not be the correct one.
The PG that the adapter was associated with had only one VM.
POA: Change the Adapter to VM-RegionA01-vDS-COMP.
Module 2:
What are the things that may indicate that a disk is about to fail?
HDDs:
Number of damaged/bad sectors,
Increased heat output
Increase in clicking or some other noise in the HDD
Problems in reading or writing data
Initially IBM intriduced a disk monitoring technology for their disks, named "Predictive Failure Analysis", but it was a basic software that give a binary result "device OK" or "drive likely to fail soon".
Later, another variant "intellisafe" was created by CompaQ along with Seagate, Quantum & Conner, that measured the health parameters - Drive vendor was free to choose thae parameters and their treshold values.
@DroidFreak32
DroidFreak32 / mkvextract-helper.sh
Created October 17, 2018 14:49 — forked from konfou/mkvextract-helper.sh
extract all tracks/attachments/chapters from an mkv file
#!/usr/bin/env bash
#
# Extract all tracks/attachments/chapters from an mkv file.
# depends
type -p mkvmerge &>/dev/null || exit 3
type -p mkvextract &>/dev/null || exit 3
# trap SIGINT
trap 'trap - INT; kill -s INT "$$"' INT
#!/bin/bash
echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlmvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi
diff --git a/core/definitions.mk b/core/definitions.mk
index b6869011a..441ff1005 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -2188,7 +2188,7 @@ endef
# Call jack
#
define call-jack
- JACK_VERSION=$(PRIVATE_JACK_VERSION) $(JACK) $(DEFAULT_JACK_EXTRA_ARGS)
+ JACK_VERSION=$(PRIVATE_JACK_VERSION) flock $(BUILD_DROIDDOC) $(JACK) $(DEFAULT_JACK_EXTRA_ARGS)