tech

Linux tools that you never knew you needed

Apr 07, 2021
#linux #tips #tech

1. bat - (cat alternative) # bat: A cat(1) clone with syntax highlighting and Git integration. Example: 2. fd - (find alternative) # fd: a simple, fast and user-friendly alternative to find. Examples: 3. httpie - (wget/curl alternative) # httpie: a user-friendly command-line HTTP client for the API era. It comes with JSON support, syntax highlighting, persistent sessions, wget-like downloads, plugins, and more. Examples: # Hello world $ http httpie. ...

Set Animated Gif as Wallpaper

Jan 14, 2021
#linux #tips #tech

NOTE: Environment Ubuntu 20.04 Dependencies # Xwinwrap: sudo apt-get install xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev git clone https://github.com/ujjwal96/xwinwrap.git cd xwinwrap make sudo make install make clean Gifsicle: sudo apt install gifsicle The helper script # A helper script to setup animated .gif in dual monitors. #!/bin/bash # Uses xwinwrap to display given animated .gif in dual monitors. if [ $# -ne 1 ]; then echo 1>&2 Usage: $0 image. ...

Swap space note

May 20, 2020
#linux #tech

1. What is Swap? # Swap file systems support virtual memory, data is written to a swap file system when there is not enough RAM to store the data your system is processing. 2. Swap partition size # 2.1. Old rule of thumb # swap = 2 * the-amount-of-RAM So if a computer had 64KB of RAM, a swap partition of 128KB would be an optimum size. This rule took into the facts that RAM sizes were typically quite small at the time. ...

Ansitheus

May 05, 2020
#tech #ansible #prometheus

Ansitheus = Ansible + Prometheus 1. Prometheus overview # NOTE: Checkout the Prometheus official documentation. Prometheus is an open-source systems monitoring & alerting toolkit originally built at SoundCloud. 1.1. Features # a multi-dimensional data model with time series data identified by metric name & key/value pairs PromQL, a flexible query language to leverage this dimensionality no reliance on distributed storage; single server nodes are autonomous time series collection happens via a pull model over HTTP pushing time series is supported via an intermediary gateway targets are discovered via service discovery or static configuration multiple modes of graphing & dashboarding support 1. ...

Operate Etcd cluster

Apr 28, 2020
#tech #etcd

NOTE: This is my perspective aggregation. You can easily find these such of knowledges in the references. 1. Context # Etcd Version v3.4.0. 2. Requirements # 2.1. Number of nodes # >= 3 nodes. A etcd cluster needs a majority of nodes, a quorum to agree on updates to the cluster state. For a cluster with n-members, quorum is (n/2)+1. 2.2. CPUs # Etcd doesn’t require a lot of CPU capacity. ...

Openstack Autoscaling New Approach

Aug 19, 2019
#openstack #prometheus #faythe #tech

NOTE(kiennt): There is a legacy Faythe guideline. The new version is coming soon, check its repository for status. This guide describes how to automatically scale out your Compute instances in response to heavy system usage. By combining with Prometheus pre-defined rules that consider factors such as CPU or memory usage, you can configure OpenStack Orchestration (Heat) to add and remove additional instances automatically, when they are needed. 1. The standard OpenStack Autoscaling approach # Let’s talk about the standard OpenStack Autoscaling approach before goes to the new approach. ...

Lets Comment

Oct 02, 2018
#tech

Hugo ships with support for Disqus, a third-party service that provides comment and community capabilities to websites via JavaScript. But Disqus generates a shit load of page requests and heavy contents… which even with the benefits that come with having Disqus in place. People just want something that can be used to post a comment, that is. That’s why I choose a Disqus alternative - Utterances. Utterances is a lightweight comments widget built on Github issues. ...