Skip to content

Instantly share code, notes, and snippets.

View lepiaf's full-sized avatar

Thierry T. lepiaf

View GitHub Profile
@lepiaf
lepiaf / gist:511110482d65714e71b6773781ebb952
Last active July 5, 2022 17:32
how to change channel in unifi ap via ssh
https://community.ui.com/questions/Changing-channel-width-with-SSH/2d212ac9-7f30-4c30-ad80-57b77cd0e234?page=1
- login to ssh
- edit /tmp/running.cfg and look radio.2.channel for 5Ghz
- edit /tmp/system.cfg and update radio.2.channel for 5Ghz
- run command save
- run command reboot
enjoy
https://launchpad.net/~andy.sayler/+archive/ubuntu/openssh-pkcs11-ecdsa
https://bugzilla.mindrot.org/show_bug.cgi?id=2474#c25
from https://www.foell.org/justin/microsoft-mouse-3600-and-ubuntu-16-04-lts/
I like this Microsoft “Mobile Mouse” 3600. It connects to my laptop via bluetooth so there’s no need to add a dongle.
It works with Linux but it’s a bit finicky. In this post I’m addressing Ubuntu 16.04 LTS. This might seem like moot point because 18.04 LTS is literally right around the corner. However, there a chance it’s meticulous connection procedure will still need to be followed. So here’s how to consistently get it to connect to your computer.
I’ve highlighted all the commands you’ll need to type in bold. The other text is the output you’ll be seeing. The device ID will be different for your 3600 mouse, and it will be different every time you try to pair it. Just be careful to copy and paste off of your screen and not mine 😉
Put your mouse into pairing mode by holding the bottom button down for more than 5 seconds. Then launch the bluetooth control tool from the terminal, and start a scan. Note the ID of BluetoothMouse3600
@lepiaf
lepiaf / mysqld_exporter.service
Last active May 23, 2022 12:03
Prometheus - mysql_exporter systemd
# /etc/systemd/system/mysql_exporter.service
[Unit]
Description=Mysql Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=root
@lepiaf
lepiaf / xdebug.md
Last active September 14, 2017 10:15
phpstorm xdebug
https://www.esev.com/blog/post/2015-01-pgp-ssh-key-on-yubikey-neo/
@lepiaf
lepiaf / screen.md
Last active July 10, 2017 09:56
run command in screen
command description
screen -S import create screen with name
ctrl + a + d exit screen
screen -r import return into screen by name
ctrl + d delete current screen
@lepiaf
lepiaf / server.conf
Created May 28, 2017 12:42
Dibble configuration for DHCPv6
# Logging level range: 1(Emergency)-8(Debug)
log-level 7
# Don't log full date
log-mode short
# set preference of this server to 0 (higher = more prefered)
preference 0
iface eth0 {
// also ranges can be defines, instead of exact values
@lepiaf
lepiaf / unbound.conf
Last active April 3, 2024 21:36
Unbound configuration IPv4 and IPv6
server:
interface: 0.0.0.0
interface: ::0
access-control: 192.168.42.0/24 allow
access-control: 127.0.0.0 allow
access-control: 2001:db8:dead:beef::/48 allow
# unbound optimisation
num-threads: 4