Skip to content

Instantly share code, notes, and snippets.

@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active March 2, 2025 08:10
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
@lukechilds
lukechilds / get_latest_release.sh
Created August 9, 2016 19:43
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4
@lava
lava / hello_world.md
Last active March 2, 2025 08:04
Hello, world: Deep analysis of a shallow program.

Hello, world!

Please explain in detail what will happen if the following program is executed:

#include <iostream>

int main() {
    std::cout << "Hello, world!" << std::endl;
}
@Hardikanand1st
Hardikanand1st / Power iso Serial keys.txt
Last active March 2, 2025 08:02
power iso Serial Keys
===============================================================================
User Name-: Hardik
Registration code :- TZXZT-USMCB-ZRKYP-MTVG3-JM8UL
===============================================================================
@WebRTCGame
WebRTCGame / JavascriptBooks.md
Last active March 2, 2025 07:54
Free Javascript Books

Useful Links

23 Free JavaScript Books

A curated collection of awesome & free JavaScript books to help you learn the JavaScript programming language.

If you know of any other free JavaScript books that you think should be on this list, please let me know in the comments section and I will get them added.

@Nikasa1889
Nikasa1889 / execBashDocker.sh
Created March 6, 2017 15:14
Bash script to open bash shell on a running docker
#!/bin/bash
#List current running docker images
echo "Select one of the following running images:"
echo -e "Number \t Name"
echo $(docker ps | tail -n +2| awk -F ' ' '{printf("%7d %s\n", NR, $2)}')
read -p "Enter the process number:" selectedID
selectedID=$(($selectedID + 1))
#Get Docker process ID of the specified docker image name
DOCKER_ID=$(docker ps | tail -n +$selectedID | head -1 | awk '{print $1}')
docker exec -it $DOCKER_ID /bin/bash
sepal.length sepal.width petal.length petal.width variety
5.1 3.5 1.4 .2 Setosa
4.9 3 1.4 .2 Setosa
4.7 3.2 1.3 .2 Setosa
4.6 3.1 1.5 .2 Setosa
5 3.6 1.4 .2 Setosa
5.4 3.9 1.7 .4 Setosa
4.6 3.4 1.4 .3 Setosa
5 3.4 1.5 .2 Setosa
4.4 2.9 1.4 .2 Setosa
@ryancdotorg
ryancdotorg / builder.sh
Last active March 2, 2025 07:49
Script to statically cross compile various useful binaries (dropbear, socat, rsync, rpcapd, tcpdump, openssl, zstd) using musl-libc via musl.cc toolchains,
#!/bin/bash
# From https://gist.github.com/ryancdotorg/84275935f0b82578d8c222e2e915fc78
# built binaries at https://ryanc-musl-bins.s3.amazonaws.com/SHA256SUMS.html
set -eo pipefail
set -x
export BUILD_SCRIPT_DATE="$(date -r "$0" -Iseconds)"
PV_VERSION=1.8.5
@LordJZ
LordJZ / OnStartup.cs
Last active March 2, 2025 07:46
JpegMini Crack
using System;
using System.IO;
using System.Reflection;
using ICVT.JPEGMini.Common;
namespace JpegMini.Crack.Runtime
{
public static class OnStartup
{
public static void Run()