Skip to content

Instantly share code, notes, and snippets.

View KevinNitroG's full-sized avatar
😐
Sad

Kevin Nitro KevinNitroG

😐
Sad
View GitHub Profile
@diffficult
diffficult / bluetoothdoubledipping.md
Last active September 30, 2025 13:25
Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

You may have experienced when dual booting that you need to re-pair your bluetooth devices (ie., Headphones, mouse, keyboard, etc) this usually happens because you have already paired the device with another operating system using the same bluetooth adapter when dual booting (either Linux or Windows).

Some devices cannot handle multiple pairings associated with the same MAC address (ie., bluetooth adapter). As per suggested on the ArchWiki you can fix this by re-pairing the device each time, but there's actually another solution to not do so each time you choose to use your device on a different OS.

How can we accomplish this?

Easy, just pair the device on a OS and copy the bluetooth keys generated to the other OS so our device doesn't notice the difference.

@Blaumaus
Blaumaus / tweaks.md
Created August 30, 2019 13:00
Android build.prop tweaks

BUILD.PROP TWEAKS

I am not responsible for any damage caused by that tweaks. Use it on your own risk.


# CUSTOM PROPERTIES

# DNS (Cloudflare =))
net.rmnet0.dns1=1.1.1.1
net.rmnet0.dns2=1.0.0.1
@daithinh
daithinh / Liệt kê danh sách file trong folder Google Drive vào Google Sheets - GDrive.VIP.js
Last active June 11, 2023 16:09
Hướng dẫn cách liệt kê danh sách file trong folder Google Drive vào Google Sheets- List all files in a folder Google Drive by GDrive.VIP
// Hướng dẫn liệt kê danh sách file trong folder Google Drive - GDrive.VIP
// GDRIVE.VIP: Dán ID folder vào dưới
var folderId = 'ID Folder';
// Function 1: Liệt kê tất cả folder và viết vào sheet.
function listFolers(){
getFolderTree(folderId, false);
};
@ORESoftware
ORESoftware / git.commits.md
Created May 18, 2019 17:41
Removing old unneeded commits - saving disk space and making git clones faster

Say my git repo has 5,000 commits, how can I remove the first 4,000 commits that are quite old and no longer needed, in order to save disk space?

by Sebass van Boxel, Solutions Engineer at GitHub (2018-present)

First of all, I would try less destructive ways to clean up disk space in your git project. If you're collaborating on a repository with others, it's considered a bad practice to rewrite published history. If you’ve already decided that this is what you want to do, please skip the first part. One of the great powers of Git is that it preserves all history. Often you only realize that you really needed that history when it isn’t there anymore. For new people that join your project, it can be of great value to know what happened for what reason, by “removing” those old commits, they'll lose that context. My advice, before anything else, would be to run Git’s built-in housekeeping task:

@bmaupin
bmaupin / free-database-hosting.md
Last active November 12, 2025 09:28
Free database hosting
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 13, 2025 09:25
Conventional Commits Cheatsheet
@gtors
gtors / gist:effe8eef7dbe7052b22a009f3c7fc434
Created December 10, 2018 12:57
Makefile -> compilation_commands.json
@navono
navono / jsonParser.bat
Last active September 14, 2025 19:40
parse JSON file by windows batch
:: Read file "package.json" into variable string, removing line breaks.
set string=
for /f "delims=" %%x in (package.json) do set "string=!string!%%x"
rem Remove quotes
set string=%string:"=%
rem Remove braces
set "string=%string:~2,-2%"
rem Change colon+space by equal-sign
set "string=%string:: ==%"
@hoangdh
hoangdh / download-vtvgiaitri.sh
Created November 6, 2018 14:46
Tải film từ VTV Giải trí.
#!/bin/bash
regex='(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]'
if [ -e $1 ]
then
lists=`cat $1`
for x in $lists
do
name=`echo $x | grep -Eo '?.*?\.mp4' | awk -F '/' {'print $NF'}`
ffmpeg -i "$x" -c copy $name
done
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active November 10, 2025 18:09
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018