Category: Uncategorized

  • How to see all certificates that web server sends

    It can be done using openssl:openssl s_client -connect SERVER:PORT -showcerts

  • Command to take screenshot

    You can use scrot -z ‘/tmp/Screenshot from %F %H-%M-%S.png’ (you might need to install scrot first).

  • Using Android phone for network access on FreeBSD

    Simply load urndis module# kldload urndisConnect mobile phone using USB cable with FreeBSD machine. On phone choose “USB tethering” for USB. On FreeBSD machine there should appear new network device ue0 or something similarly named. You can use for example dhclient ue0 to pull IP address for that device and then you can configure routing…

  • Postgres configuration

    Useful query to get information about parameters: select name, context, pending_restart, setting from pg_settings

  • Simple script to toggle touchpag on/off

    Here is simple script to toggle touchpad on laptop on or off First you have to discover which device id is actually touchpad – you can do that using xinput list. There touchpad will be shown as one more mouse. Then you can update script below with touchpad’s ID on your system (replace <ID> with…

  • Compiling mono 6 on FreeBSD 12

    Steps: There might be complaint about missing python or python3 but that should be resolved by proper symlinking in /usr/local/bin. gmake check can be used to run tests, gmake install to install mono. Might make sense to install gnome-sharp and gtk-sharp after installing mono. This works for my FreeBSD 11 This works for my FreeBSD…