Category: Uncategorized
-
Elasticsearch start fail on debian 11 after install from ES repos
This guide helped me a lot: https://techviewleo.com/install-elastic-stack-elk-8-on-ubuntu/ After first installing with this parameter: I then used the linked guide. Important parts: Edit the file as below: Also, edit the JVM options to set the memory limits:
-
Install `strings` command in debian/linux
That’s a difficult one to search for. To get the strings command working in Debian 11 / Linux, for example in your bash scripts, install the binutils package!
-
Github what repos have you contributed to (graphql)
https://docs.github.com/en/graphql/overview/explorer { viewer { repositoriesContributedTo(first: 100, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { totalCount nodes { nameWithOwner } } } }
-
Debian VM as GW routing through VPN (tun) with nftables
My LAN interfaces are ens3/ens8/ens9. VPN tunnel set up using openvpn, gets dev tun0. NFTables config file /etc/nftables.conf (do not forget to enable the nftables services): Thanks to: https://superuser.com/questions/985800/complete-masquerading-nat-example-using-nftables-on-linux/1225109#1225109
-
Guacamole broken (Creation of WebSocket tunnel to guacd failed)
Today my guacamole broke. Fixed by putting in guacd settings in the connection settings in guacamole itself. Had to explicitly add ::1 and port 4822 (in my case).
-
Excel return text right of last occurrence of string
=TRIM(RIGHT(SUBSTITUTE(A1;” “;REPT(” “;LEN(A1)));LEN(A1)))
-
Pihole CORS problems
Fix: edit /var/www/html/admin/scripts/pi-hole/php/auth.php add your host names to AUTHORIZED_HOSTNAMES array
-
Move cygwin to different disk, including services
Stop all services, log out other users, in process explorer, add command line column, stop all in old path In cygwin, go to /cygdrive, cp -vR c/cygwin* d/ mount -m > /usr/bin/mountCommands.bat # not sure if we really need this in explorer, rename c:/cygwin to OLD , log off all users if it fails, use…
-
Convert m4b to mp3 on Centos/Fedora using ffmpeg
for m4b in *.m4b; do ffmpeg -i $m4b -acodec libmp3lame -ar 22050 ${m4b}.mp3; done
-
AWK print longest line in file
awk ‘{ if (length($0) > max) {max = length($0); maxline = $0} } END { print maxline }’ YOURFILE
-
Windows “File is open in another program” (lsof in windows)
First get handle: https://docs.microsoft.com/en-us/sysinternals/downloads/handle Run handle once without searching for anything, to accept license. Run in a CMD AS ADMIN: handle64.exe > output.txt . Find the file you want. Then scroll up to header to see what proc is taking it.
-
Fix bricked firmware update jabra (evolve)
Get firmware from support site. Then update via “C:\Program Files (x86)\Jabra\SDKFirmwareUpdater\JabraFwUpdater.exe”
-
Tmux save all output (history) to file
bind-key P command-prompt -p ‘save history to filename:’ -I ‘~/tmux.history’ ‘capture-pane -S -32768 ; save-buffer %1 ; delete-buffer’ Add above in tmux.conf. Then do Prefix+Shift+P
-
Excel return last line of multi line cell
=TRIM(RIGHT(SUBSTITUTE(B5,CHAR(10),REPT(” “;200));200)) Especially useful for project trackers. Add a LEFT(XXX;10) for returning dates.