Skip to content

Posts...

Page 14 of 49

Don't Symlink Indices in ElasticSearch!

November 9, 2017Category: IT
The other day I've been trying to improve the downtime when updating an index in elasticsearch (ES) and I've decided the best approach would be to create a new index and do a symlink to the active one, keeping the valid index. so, my structure would be: Note: this is likely not a best practice…

Show What's on Swap in Linux

November 6, 2017Categories: IT, Tutorial
If you find your machine running sluggish, it might be the case that you have too many things running and it's hitting the swap. You can check how bad (or good) things are with htop , but it won't tell you which process is sitting on swap. To find out, I've cooked up a tiny script: It will look in…

Fix Jenkins POM Freezer "Wrong Relative POM" Error

October 31, 2017Categories: IT, Tutorial
If you get a build error in Jenkins like: Then you have a POM freezing issue with the parent POM. I.e., the Jenkins plugin has failed to freeze the POM version from a 1.0-SNAPSHOT to an actual 1.0-6034-79 . A cause can be the plugin expects a certain sequence of tags in the POM and doesn't find…

Clean Up Your Zookeeper History

October 31, 2017Category: IT
TL;DR: Use zkCleanup.sh -n 5 command: By default, Zookeeper does not delete any of its history to allow recovery. This however can lead to disk space issues over long-ish periods of time. Therefore, it is advisable to clean up once in a while. Update: I found out that /usr/share/zookeeper/bin…

Match String on Multiple Columns

October 16, 2017Category: Software
TL;DR: Use concatenation, Luke! I had to search a name for an user in a table containing the first and last names in separate columns. After a while I got tired on looking up the first_name and last_name columns one at a time and I decided to try and search both. The result is something like: I…

Make a Shell Script with Arguments (Native)

October 13, 2017Categories: Software, Tutorial
I was building a bash script and I needed several arguments to make it more versatile (e.g. dry-run). The list of parameters was: help as -h or --help dry run ad -d or --dry-run to go through the motions without actually executing commands keep last N images ad -k num or --keep num to…

Handler for Global Logger in Python

October 11, 2017Categories: Software, Tutorial
While writing a command line tool, I've stumbled upon a strange situation: Some logs were written to a file while some others were printed to console . Quite annoying, particularly since every module I use has its own logger via logging.getLogger(__name__) . After some investigation I found out…

Some Resources for Sony Alpha Development

October 9, 2017Categories: Idea, Software
Every time I get a gadget I think of building something for it. Since I've gotten a Sony A6000 things are not different, particularly because I have some issues with the default Sony Android app requiring GPS location (and insisting not to work without it). Therefore, I would like to build an app…

Messy rig

October 4, 2017Category: Hardware
My current rig has: 1 x Vega 56 blower 1 x EVGA FTW2 1070 3 x RX580 Nitro + 1 x RX580 Red Devil It's nice and I can mine either Ethereum with the hybrid Claymore miner or ZCash (albeit I still need to tune it because it crashes). Unfortunately, the airflow is messed up: Vega blows towards the rear…

Vega 56 and ETH - Keep Your Cool(er)

October 3, 2017Category: Hardware
Following my writing , I've rearranged my rig to have the Vega card on one edge (where the intake fan would get "fresh" air from the room rather than heated air from one of the other cards). Results are quite epic. With the settings: Frequency % = 0 Voltage control = manual , with the last…
PreviousNext

All tags