Skip to main content

Posts

Cheap Gaming

 Today I made a plan for a young boy that just wanted to play some games with his friends, and was getting very frustrated with sharing the XBOX TV in the lounge with us all. It is impossible for a parent to try and keep up with the constant changes of game requirements, and trying to fit a gaming PC into a reasonable budget (not even mentioning a notebook) is just impossible. That was until now... Had an old Toshiba Tecra S11 I got back from my daughter when she got her school Chromebook, upgrade the RAM from 4Gb to 8Gb, dropped in a 200Gb SSD and reloaded Windows 10. Registered for the free GeForce Now trial and now he prefers playing Fortnite on this rather than the XBOX because it loads quicker than the XBOX! Happy gaming son!

Add Video.js to Blogger Site

Wanted to host some live streaming on our Blogger website, and needed to record the setting somewhere, so here we go. Edit the Blogger Theme XML file and add into just before the tag the Video.JS files: <script src='https://www.unpkg.com/video.js/dist/video.min.js' type='text/javascript'/> <script src='https://www.unpkg.com/@videojs/http-streaming' type='text/javascript'/> <script src='https://www.unpkg.com/videojs-airplay' type='text/javascript'/> <script src='https://www.unpkg.com/videojs-chromecast-extended' type='text/javascript'/> The CSS code is a little bit more difficult, it looks like the Blogger servers do not allow inclusion of external CSS anymore, or rather not external CSS anymore. For this, open the CSS link  https://www.unpkg.com/video.js/dist/video-js.min.css and copy the code into the XML template somewhere at the other CSS code in the file. And then in t

Netdata + SNMP + Mikrotik

Always wanted to see my Internet line usage as a gauge without having to log into the router. So today I configured SNMP in Netdata to collect from my Mikrotik router. /etc/netdata/node.d/snmp.conf: { "enable_autodetect": false, "update_every": 5, "max_request_size": 100, "servers": [ { "hostname": "10.1.1.1", "community": "public", "update_every": 5, "max_request_size": 50, "options": { "timeout": 20 }, "charts": { "mikrotik1.cpu": { "title": "CPU ", "units": "percentage", "type": "line", "family": "cpu", "dimensions": { "used&

Rclone rcat and cat

Good afternoon all, and just before we all enjoy a great weekend... I know world backup day (  http://www.worldbackupday.com  ) was two weekends ago, but I thought I would share this BRILLIANT little trick I found. I hit the 400K file limit on my Backup Google Team Drive 2 weeks ago, which is a problem, to say the least. Then I thought about it and figured that the worlds best cloud sync tool should have thought about this already, and someone has. Turns out rclone has rcat into the cloud or cat from the cloud! This means you can do something like: tar -zcf - Backups/Folder/ | rclone rcat gdrive:/20190412.backup.tgz and then to get it back: rclone cat gdrive:/20190412.backup.tgz | tar -zxvf - Enjoy!!!

Kubernetes in Docker on Mac

brew link --overwrite kubernetes-cli kubectl config use-context docker-for-desktop kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml vim dashboard-adminuser.yaml apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kube-system kubectl apply -f dashboard-adminuser.yaml kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}') Copy the token. kubectl proxy Open http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

Tech Tip: Linux Virtual Router Redundancy Protocol Daemon and KeepAliveD

I was asked a very good question today on how to make two Linux servers used as routers, failover on the same network. I've done many implementations of ISP failover and cluster deployments, but this was the first time I've heard about VRRPD. Virtual Router Redundancy Protocol Daemon is part of all the major Linux distributions and uses keepalived  to monitor and react to failures. Interesting solutions for server level services, but Docker Swarms takes care of service level services. And it is supported by Mikrotik as well. ( https://wiki.mikrotik.com/wiki/Manual:Interface/VRRP )

MacOS OCR and translate in console

Had received a purple envelope from Belastingdienst.nl with some important information of the 30%, so needed to get this into English. Made for a good reason to figure this process out. So it looks like Tesseract-OCR is the best Open Source OCR package I could find and the whole project is at  https://github.com/tesseract-ocr/tesseract  and it credits Google as the developer at  https://en.wikipedia.org/wiki/Tesseract_(software) For the translation we will use the Translate Shell, found at  https://www.soimort.org/translate-shell/ . This lovely little script supports a number of translation engines, so one of them should work for you. 1. Scan the letter. Many options here, so not going to waste time on how to get this done. Just if you have a text option and go for 300DPI. We need TIFF on the other end, so if you can get TIFF, just do that. 2. Install the software brew install tesseract brew install translate-shell 3. Run the software tesseract input.tiff out