Skip to content

Instantly share code, notes, and snippets.

@jinjier
jinjier / javdb-top250.md
Last active October 27, 2025 01:04
JavDB top 250 movies list. [Updated on 2025/10]
@thedewi
thedewi / adb-vibrate-off.md
Last active February 20, 2024 17:33
Using ADB (the Android Debugger) to stop an app vibrating

A. Enable Developer Options

This just enables weird settings on your phone. It doesn't pose any risks as long as you don't run amok in the Developer options menu. And it can be disabled again at the end of the process if you like.

  1. Go to Settings > About.
  2. Find Build number at the bottom.
  3. Tap it 7 times, and you should see a popup message telling you are a developer.

B. Enable USB debugging

@vicradon
vicradon / disable-windows-update.md
Created August 10, 2021 01:04
How to disable windows updates on windows 10
  1. Open a terminal as Administrator
  2. Enter this command gpedit.msc. This opens a new window called Local Group Policy Editor
  3. Go to Computer Configuration > Administrative Templates > Windows Components > Windows Update
  4. Double click on Configure Automatic Updates
  5. Set the option as disabled and click Ok
  6. Enjoy your updates-free windows.
@bgregwang04
bgregwang04 / Maho.sub.releases.md
Created January 3, 2021 04:44
魔穗字幕组 / Maho.sub 作品合集
@joelcoxokc
joelcoxokc / instructions.md
Created March 10, 2020 02:19 — forked from garrettjoecox/instructions.md
Make windows 10 suck less
@eliashussary
eliashussary / change-wallpaper.bat
Created February 16, 2018 15:35
A simple batch script to change your windows wallpaper. It takes a single argument, the path of your desired wallpaper.
echo off
:: Handle CLI Args
IF [%1]==[] (
echo No wallpaper path provided, please provide a full qualified path. Ex: C:\dir1\dir2\wallpaper.jpg
exit /b 1
)
:: Commands
echo Changing wallpaper to: %1
@nico-lab
nico-lab / hevc_nvenc.txt
Last active June 11, 2025 11:50
ffmpeg -h encoder=hevc_nvenc
Encoder hevc_nvenc [NVIDIA NVENC hevc encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: cuda cuda d3d11va d3d11va
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11
hevc_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass
@nico-lab
nico-lab / h264_nvenc.txt
Last active October 21, 2025 15:42
ffmpeg -h encoder=h264_nvenc
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: cuda cuda d3d11va d3d11va
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11
h264_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass
@calvinbui
calvinbui / Remove All User Folders From This PC 64-bit.reg
Created November 2, 2017 13:49
Remove All User Folders From This PC 64-bit
Windows Registry Editor Version 5.00
; Remove Desktop From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Remove Documents From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
@garoto
garoto / ffmpeg-hevc-encode-nvenc.md
Created July 10, 2017 17:15
This gist shows you how to encode specifically to HEVC with ffmpeg's NVENC on supported hardware, with a two-pass profile and optional CUVID-based hardware-accelerated decoding.

Encoding high-quality HEVC content with FFmpeg - based NVENC encoder on supported hardware:

If you've built ffmpeg as instructed here on Linux and the ffmpeg binary is in your path, you can do fast HEVC encodes as shown below, using NVIDIA's NPP's libraries to vastly speed up the process.

Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with:

ffmpeg  -i <inputfile>  \
-filter:v hwupload_cuda,scale_npp=w=1920:h=1080:format=nv12:interp_algo=lanczos,hwdownload \

-c:v hevc_nvenc -profile main -preset slow -rc vbr_hq \