Skip to content

Instantly share code, notes, and snippets.

View brett-schneider's full-sized avatar

brett-schneider

View GitHub Profile
@brett-schneider
brett-schneider / Bluetooth-Company-Identifiers.csv
Created November 7, 2024 10:09 — forked from angorb/Bluetooth-Company-Identifiers.csv
[Bluetooth Company Identifiers] Company identifiers are unique numbers assigned by the Bluetooth SIG to member companies requesting one.
0x0000 Ericsson Technology Licensing
0x0001 Nokia Mobile Phones
0x0002 Intel Corp.
0x0003 IBM Corp.
0x0004 Toshiba Corp.
0x0005 3Com
0x0006 Microsoft
0x0007 Lucent
0x0008 Motorola
0x0009 Infineon Technologies AG
@brett-schneider
brett-schneider / forward_proxy.conf
Created October 28, 2024 13:07 — forked from isabelcosta/forward_proxy.conf
testing-tinyproxy-conf-examples
## forwardproxy.conf -- tinyproxy daemon configuration file
User nobody
Group nogroup
Port 8888
Listen 10.0.2.35
BindSame yes
Timeout 600
@brett-schneider
brett-schneider / network-namespace-demo.sh
Created November 23, 2022 19:02 — forked from agentzh/network-namespace-demo.sh
Create 2 network namespaces and bridge them and the default namespace together so that they can directly talk to each other via static IP addresses; also enable Internet access in all the namespaces via NAT.
#!/usr/bin/env bash
set -x
main_if=ens33
ping_count=1
echo 1 > /proc/sys/net/ipv4/ip_forward || exit 1
ip netns del ns1 > /dev/null 2>&1
https://www.verkehr.nrw/webcams/10100022103870128212.jpg
https://www.verkehr.nrw/webcams/10100253688674747061.jpg
https://www.verkehr.nrw/webcams/10100308460257231676.jpg
https://www.verkehr.nrw/webcams/10100453176019429802.jpg
https://www.verkehr.nrw/webcams/10100494175154602454.jpg
https://www.verkehr.nrw/webcams/10100597366060758617.jpg
https://www.verkehr.nrw/webcams/10100909830981984257.jpg
https://www.verkehr.nrw/webcams/10100956863457840062.jpg
https://www.verkehr.nrw/webcams/10100973958359842825.jpg
https://www.verkehr.nrw/webcams/10101043834463572886.jpg
@brett-schneider
brett-schneider / README.md
Created September 17, 2021 21:20 — forked from dnozay/README.md
Collection of useful stuff for interacting with gitlab.

Reset root/admin password

Lost the root/admin password? You can reset it using the command-line. Recipe adapted from gitlab issue #308.

# start the console
sudo gitlab-rails console

How to connect PS3 controller on Mac OSX, PC, etc.

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

@brett-schneider
brett-schneider / tmate_for_ssh.md
Last active July 25, 2021 05:44 — forked from iskolbin/tmate_for_ssh.md
Ubuntu(systemd) tmate service for ssh

The motivation is: reverse ssh to remote computer, the only thing needed is that the remote is connected to the Internet.

  1. On 18.04 or older remote, get tmate, put it in /usr/local/bin (20.04 is 2.4.0 but has issues /w -F [tmate-io/tmate#204]):
curl -L https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz|tar xJv
sudo mv tmate-2.4.0-static-linux-amd/tmate /usr/local/bin
  1. Put public keys in ~/.ssh/authorized_keys