Tech Tips

Sunday, June 14, 2020

Unable to rename in go projects in vscode

›
vscode used to use gorename to do the renames. However, gorename does not support go modules. gopls should be used instead. If it is not ava...
5 comments:
Sunday, March 22, 2020

Run command on suspend

›
Create a file located in /usr/lib/systemd/system-sleep directory: #!/bin/sh if [ " ${ 1 } " == "pre" ] ; then ...
Tuesday, March 3, 2020

Debug route table

›
List all routes in system: route -n Get route for a specific IP: ip route get 1 .1.1.1

Log denied connections in firewalld

›
Edit filr /etc/sysconfig/firewalld: FIREWALLD_ARGS = --debug = 10
Friday, February 14, 2020

Wait until able to connect

›
while ! nc -w5 -z 10 .0.0.100 22 ; do echo "hello" ; done

Log executed command

›
14 :27 $ ( set -x ; sleep 1 && sleep 2 ) + sleep 1 + sleep 2
Thursday, January 30, 2020

Check and modify connection mtu

›
To check: [ root@lxd-node3 ~ ] # netstat -i Kernel Interface table Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-D...
Thursday, January 23, 2020

lxd: Fix version in snap

›
snap refresh lxd --channel = 3 .18

fedora: Lockdown a kernel version

›
Fedora typically keeps 3 latest kernel versions. However, what if you want to keep an old specific kernel version which is known to work wel...
Thursday, January 2, 2020

Dell Precision 5540 - Battery drains in sleep mode

›
Run the following command to check the suspend mode: cat /sys/power/mem_sleep If the output looks like this: [ s2idle ] deep It means th...
Monday, December 23, 2019

Increase storage of a lxd container

›
By default lxd stopped to assign root (disk) device to a container. To modify storage volume of a container add a device like this: lxc conf...

Log quireis in dnsmasq

›
Add the following line to dnsmasq configuration file: log-queries
Friday, November 22, 2019

Lxd on Fedora 31

›
Fedora 31 has started to use cgroups v2 by default. According to Common F31 bugs it doesn't play nice with Docker, lxd and others. To m...

How to regenerate grub configuration

›
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Friday, October 4, 2019

wifi utils

›
List used wifi frequences sudo iwlist wlp1s0 scan | grep Frequency | sort | uniq -c | sort -n List available channels iwlist channel ...
1 comment:
›
Home
View web version
Powered by Blogger.