All posts by expire0

By January 26, 2019

Cassandra is great for storing unknown type and amounts of data. One of the key benefits I like it. When you update a row and the primary matches. It will only update that row instead of adding a new row. With Mysql you had to set the unique option on the column. Git repo

Read More
By December 29, 2018

Inside OpenKB’s lab.

Read More
By May 01, 2018

Found some interesting commands to free up some virtual memory without a reboot. I did not think the command will work so i ran a test in the lab and sure enough. It works like a charm. just so you can see real time stats sync; echo 1 > /proc/sys/vm/drop_caches To clear inodes sync; echo

Read More
By December 31, 2017

Debian Distro upgrade. For this example we are upgrading from jessie to stretch A) # apt-get update # apt-get upgrade # apt-get dist-upgrade sed -i ‘s/jessie/stretch/g’ /etc/apt/sources.list B) # apt-get update (if you receive a error similar to E: Release file expired. run apt-get -o Acquire::Check-Valid-Until=false update ) # apt-get upgrade # apt-get dist-upgrade C)

Read More
By November 16, 2017

Block an IP iptables -I INPUT -s -j DROP After rebooting the server we notice the rules are removed. It’s best to save your configs and restore them after a reboot. iptables-save > /etc/iptables/rules iptables-restore < /etc/iptables/rules flush all rules iptables -F flush rules in the input chain iptables -F INPUT iptables -L –line-numbers

Read More
1 2 3 33