Skip to content

Instantly share code, notes, and snippets.

View MatheusR42's full-sized avatar
🤜
🤛

Matheus Araujo MatheusR42

🤜
🤛
View GitHub Profile
def createTable(variableToChange, graphFunc):
table = []
p = 0.05
n = 300
if variableToChange == "N":
for n in range(100, 1000, 50):
G = erdos_renyi_graph(n, p) if graphFunc == 'erdos_renyi_graph' else watts_strogatz_graph(n, 4, p)
@MatheusR42
MatheusR42 / cloneAll.js
Created March 10, 2021 00:50
Batch clone repos
const fs = require('fs');
const util = require('util');
const path = require('path');
const exec = util.promisify(require('child_process').exec);
const appDir = path.dirname(require.main.filename);
const repos = [
'[email protected]:MatheusR42/repo-name-1.git',
'[email protected]:MatheusR42/repo-name-2.git',
]
@MatheusR42
MatheusR42 / commands.sh
Created March 10, 2021 00:52
Commands to migrate all branchs and tags to other git server
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
git fetch --all && git pull --all
git remote set-url origin <repo-url>
git push --all && git push --tags
@MatheusR42
MatheusR42 / README.md
Created May 5, 2021 15:18
Chaordic/Linx Impulse VTEX checkout tagging
@MatheusR42
MatheusR42 / bluetoothdoubledipping.md
Created May 26, 2024 16:18 — forked from diffficult/bluetoothdoubledipping.md
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.