Skip to content

Instantly share code, notes, and snippets.

View KevinNitroG's full-sized avatar
🤔
Am I existing?

Kevin Nitro KevinNitroG

🤔
Am I existing?
View GitHub Profile
@nikolovlazar
nikolovlazar / keybindings.json
Last active July 8, 2024 23:04
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@alexgleith
alexgleith / SimpleLoadS2.ipynb
Last active June 21, 2024 10:35
Simplest example for finding and loading Sentinel-2 data using Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@monokaijs
monokaijs / Download Tiktok Videos.md
Last active January 6, 2024 04:29
Download Video Tiktok

Hướng dẫn

Vào một trang video Tiktok bất kỳ, copy đoạn code phía dưới, quay lại trang xem video Tiktok rồi nhấn Ctrl + Shift + I (hoặc Command + Shift + I trên Macbook). Sau đó qua tab console, paste đoạn code vào rồi nhấn Enter, chờ tí tẹo Video sẽ bắt đầu tải.

(function () {
  const videoEl = document.querySelector('video');
  function downloadVideo(url) {
    fetch(url).then(response => {
      if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
      return response.blob();
@dragid10
dragid10 / fix-libfprint.py
Last active March 31, 2024 05:01
Clear Fingerprints (Framework)
# Import PyGObject
# PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more.
from gi import require_version
# for arguments
from sys import argv
from os import geteuid
if geteuid() != 0:
exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.")
@rigwild
rigwild / record.vb
Created March 7, 2022 11:17
Export Powerpoint presentation as a 60 fps video
' Save presentation as pptm then create a macro in "View > Macros", run it
Sub MkVideo()
If ActivePresentation.CreateVideoStatus <> ppMediaTaskStatusInProgress Then
ActivePresentation.CreateVideo FileName:=Environ("USERPROFILE") & "\Desktop\video.wmv", _
UseTimingsAndNarrations:=True, _
VertResolution:=1080, _
FramesPerSecond:=60, _
Quality:=100
Else: MsgBox "There is another conversion to video in progress"
End If
@mcxiaoke
mcxiaoke / miui-safe-disabled-apps.md
Last active August 22, 2023 22:53
MIUI Safe Disabled Apps (MIUI 13)

Intro

Disable app pm disable-user app.package.name

Re-enable it pm enable app.package.name

Uninstall app Sometimes uninstall command may not work without -k option on un-rooted devices

@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active July 19, 2024 19:31
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@rmtsrc
rmtsrc / README.md
Last active March 31, 2024 05:38
Remove existing fingerprints from Goodix BIOS via libfprint

Install

Fixes issue with Goodix fingerprint reader when a fingerprint has already been enrolled in the BIOS, but then the OS has been removed (without un-enrolling the fingerprint first). I.e. fprintd device reported an error during enrol: Finger is too similar to another, try use a different finger

sudo pamac install base-devel meson gobject-introspection gtk-doc

git clone https://gitlab.freedesktop.org/libfprint/libfprint.git

cd libfprint
@tig
tig / F7History.ps1
Last active April 16, 2024 16:07
Use F7 as "Show Command History" in Powershell
# See https://github.com/gui-cs/F7Hisoty which replaces this
ap.spotify.com
beta.datasharing.spotify.com
datasharing.spotify.com
s2.video.doubleclick.net
0.fls.doubleclick.net
00.video-ak.cdn.spotify.com
000.fls.doubleclick.net
000000.fls.doubleclick.net
000000000.fls.doubleclick.net
01.video-ak.cdn.spotify.com