Skip to content

Instantly share code, notes, and snippets.

Avatar

Thierry T. lepiaf

View GitHub Profile
View gist:251aa5ccd9a42376adf04dc2cebea0aa
https://launchpad.net/~andy.sayler/+archive/ubuntu/openssh-pkcs11-ecdsa
https://bugzilla.mindrot.org/show_bug.cgi?id=2474#c25
View Microsoft Mouse 3600
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 Jul 20, 2018
Prometheus - mysql_exporter systemd
View mysqld_exporter.service
# /etc/systemd/system/mysql_exporter.service
[Unit]
Description=Mysql Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=root
View gist:e715cfe51be40f4702923ae36c221d62
go to next tab: ctrl+pgdown
go to previous tab: ctrl+pgup
Key commands in Terminator
Toggle fullscreen: F11
Split terminals horizontally: Ctrl + Shift + O
Split terminals vertically: Ctrl + Shift + E
View yubikey gpg
https://www.esev.com/blog/post/2015-01-pgp-ssh-key-on-yubikey-neo/
@lepiaf
lepiaf / screen.md
Last active Jul 10, 2017
run command in screen
View screen.md
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
Dibble configuration for DHCPv6
View server.conf
# 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 / radvd.conf
Created May 28, 2017
radvd configuration for hurricane electric 6to4 tunnel
View radvd.conf
interface eth0
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix 2001:db8:dead:beef::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
@lepiaf
lepiaf / unbound.conf
Last active May 14, 2021
Unbound configuration IPv4 and IPv6
View unbound.conf
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