Showing posts with label utils. Show all posts
Showing posts with label utils. Show all posts

Sep 14, 2022

LunarVim

LunarVim is a fast IDE layer for Neovim. Vim, at some point let you be focus on the code, and by that, use the keyboard as the main tool, instead of the mouse.

Here's the list of steps to install LunarVim (and NeoVim) in Ubuntu.

$ sudo apt install software-properties-common -y

$ sudo add-apt-repository ppa:neovim-ppa/stable -y

$ sudo apt update

$ sudo apt install neovim -y

$ bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh) 

Add lvim to $PATH

If your terminal can't find the lvim command, add the installation folder to your path or move the lvim command to somewhere in your path. The default install folder is ~/.local/bin.
 

 

Links:

  • https://www.linuxcapable.com/how-to-install-neovim-editor-on-ubuntu-22-04-lts/
  • https://www.lunarvim.org/01-installing.html#prerequisites
  • https://www.lunarvim.org/02-after-install.html#add-lvim-to-path 
  • https://github.com/neovim/neovim/releases/tag/v0.7.2
  • https://github.com/neovim/neovim/wiki/Installing-Neovim

 

 

 

Jul 21, 2022

Utils: rh_access.py

Just release a small util to query CVE released by Red Hat.


$ ./rh_access.py -e cve-2022-34484 cve-2022-29226 cve-2022-26354 -v

rh_access.py

Links:


Jul 1, 2022

Patch_Tuesday Utils

A step-by-step how I generate patch_tuesday.exe from python script. You can download the python script or the executable directly (at GitHub).


c:\home> pip install colorama

c:\home> pip install pyfiglet

c:\home> pip install pyinstaller

 

Method 1:

c:\home> pyinstaller --onefile --add-data "C:\Python3\Lib\site-packages\pyfiglet";./pyfiglet   patch_tuesday.py

Method 2:

c:\home> pyinstaller --onefile --collect-all pyfiglet patch_tuesday.py


c:\home> cd dist

c:\home\dist> patch_tuesday.exe -h

patch_tuesday.exe -h

c:\home\dist> patch_tuesday.exe -k 2022-jun -v

patch_tuesday.exe -k 2022-jun -v

Tips: Try "patch_tuesday.exe -k 2022-jun -vc" for chart output.


Links:



Mar 18, 2022

CodExt – Python Codecs extension

CodExt is a (Python2-3 compatible) library that extends the native codecs library (namely for adding new custom encodings and character mappings), hence its name combining CODecs EXTension. It provides 120+ new codecs and also features a guessing mode for decoding multiple layers of encoding and CLI tools for convenience.


Links:

  • https://github.com/dhondta/python-codext
  • https://hakin9.org/codext-encode-decode-anything-with-python/

Jan 18, 2022

Linux System Monitoring Tools

One thing I like Linux is about "command line", and the other is the terminal-based system monitoring tools.

Other the the standard "top" utility that helps to display al the running processes and gives some important information on the performance of the system.

Here are a list of "top" alternatives.

  1. htop - http://hisham.hm/htop/
  2. atop - https://www.atoptool.nl/index.php
  3. nmon - http://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage
  4. vtop - https://github.com/MrRio/vtop
  5. bashtop - https://github.com/aristocratos/bashtop#installation
  6. gtop - https://github.com/aksakalli/gtop
  7. glance - https://nicolargo.github.io/glances/

 

Dec 10, 2021

Mouse Jiggler

With the idea from HakByte, we wrote a similar small python utils and convert it o Windows EXE. 

This is mouse jiggler tool which prevents it from falling asleep by moving the mouse to simulate human input (bypass screensaver locking).

Then I just convert it to Windows executable with pyinstaller.

pyinstaller --onefile --noconsole mouse_jiggler.py

pyinstaller --onefile -w -f  mouse_jiggler.py

Links:

Nov 23, 2021

Presentation from Command Line

Today, I'm going to share my view on those command line presentation tools that I tried. 

Good and bad with command line presentation tools.

- Cannot never win any design award.
- fonts might be too small.
+ help to FOCUS.

 

mdp - Markdown Presentation

  • uses single markdown text file.
  • can be converted to HTML and PDF (with additional tools).


tpp - Text Presentation Program

  • uses own formatting (instead of markdown).
  • colorful

 

vimdeck - VIM as a presentation tool

  • uses makrdown + ruby + SyntaxRange
  • supports H1/H2/Images (to ascii), and fenced code blocks.
  • supports highlighting syntax.


vtmc - Video Terminal Master of Ceremonies

 

tkn - Terminal Keynote

  • uses ruby and png files.
  • supports code, center, block, image, section.
  • can be converted to PDF.

 

tiptip - Terminal Plain-text Presentations

  • uses CoffeeScript.

 

patat - Presentation Atop The ANSI Terminal

  • uses pandoc (markdown/LaTeX) to parse the slides.
  • largely based upon MDP and VTMC
  • support different running options.
  • support YAML configuration (at 2 places).

 

 lookatme - LookAtMe

  • uses markdown notation.
  • supports live code, images, 
  • live terminal.
  • options for different types of rendering. 

 

Links:

  • mdp - https://github.com/visit1985/mdp
  • tpp - https://synflood.at/tpp.html
  • vimdeck - https://github.com/tybenz/vimdeck
  • vtmc - https://github.com/jclulow/vtmc
  • vtmc_box - https://github.com/justin2004/vtmc_box
  • tkn - https://github.com/fxn/tkn
  • tiptip - https://github.com/felixrabe-attic/mcrio--tiptip
  • patat - https://github.com/jaspervdj/patat
  • lookatme - https://github.com/d0c-s4vage/lookatme