App-Cheats

 view release on metacpan or  search on metacpan

cheats.txt  view on Meta::CPAN

journalctl -b -r                       # Start to end of current boot in reverse.
journalctl --list-boots                # List boots by IDs.
journalctl  -k                         # Display kernel messages.
journalctl -f                          # Like tail -f.


#############################################################
## JP2A
#############################################################

# png to ascii converter (linux,ascii,art)
sudo apt install jp2a
jp2a --colors programmer_icon.png


#############################################################
## Kate Editor
#############################################################

# Kate editor shortcuts
F6  - Left margin
F9  - Right margin (code folding)
F11 - Line numbers

cheats.txt  view on Meta::CPAN


# Simple perl library for generating pdf files
sudo apt-get install libpdf-api2-simple-perl

# Simple perl library for generating pdf files with tables
# Need also PDF::API2
sudo apt-get install  libpdf-table-perl

# Get the dimensions of a PNG image file (picture)
sudo apt-get install libimage-size-perl
perl -MImage::Size -le 'print for imgsize("logo.png");'

# HTML to PDF tool
sudo apt-get install wkhtmltopdf

# Send output to pdf
# setup
sudo apt-get install aha
echo -e "Im $RED RED $RESTORE now" | aha


cheats.txt  view on Meta::CPAN

  },
  "5" => {
    "ChildPid" => 28847,
    "Count" => 5,
    "Title" => "From-5"
  }
}

# Process killing example:
perl -E '$pid = fork; if (!$pid){ say "[$$] child", sleep 1 while 1 } else {  say "[$$] parent"; waitpid $pid, 0; say "[$$] parent end" }'
perl -E '$pid = fork; if (!$pid){ say "[$$] child", sleep 1 while 0; say "start"; system qq(google-chrome --headless --virtual-time-budget=15000 --window-size=200,200 --screenshot=$ENV{HOME}/Downloads/my.png log); say "wait"; sleep 10 } else {  say "...
#
perl -E 'for ( shift ) { say kill 0, $_; sleep 1; say kill -9, $_; sleep 1; say kill 0, $_ }' 3022126


#############################################################
## Perl Functions - getpwnam, getgrent, getgrnam, getgrgid
#############################################################

# UID in scalar context, all fields in list
perl -lE '$a=getpwnam("<USER>"); say $a'

cheats.txt  view on Meta::CPAN

Encoding=UTF-8
Version=1.0
Type=Application
Name=XAIR
# If file name is to be renamed, also probably need to update this class,
# (as is done now).
# Run:
#   xprop WM_CLASS      # WM_CLASS(STRING) = "X-AIR-Edit", "X-AIR-Edit"
StartupWMClass=X-AIR-Edit
Exec=/home/tim/git/xair/software/latest/RUN.sh
Icon=/home/tim/git/xair/software/latest/xair.png


#############################################################
## VBA Regex
#############################################################

# Regex for validating input on database
cat data | add_color -r '(?x) ^ (?! ^( (ALLENGINES|ASAPPLICABLE|PW\d+\w+-?\w+)(,|$))+ ((Except:)? (\d{6}-\d{6}|\d{6}) (,|$) )* $ ) .*'




( run in 0.538 second using v1.01-cache-2.11-cpan-df04353d9ac )