Blog Spot!


PocketBase - open source Go backend tool in 1 file

PocketBase is an open source Go backend, consisting of:

  • embedded database (SQLite) with real time subscriptions
  • built-in files and users management
  • convenient Admin dashboard UI
  • and simple REST-ish API

banner

Links:

Added on 05.Aug.2022
Tags: go open source backend tool REST single file simple script

Everything SQLite

  • Awesome SQLite - A curated list of awesome things related to SQLite.
  • One-liner for running queries against CSV files

Added on 25.Jun.2022
Tags: sqlite sql db database terminal github awesome-list

zcat for 7zip

#!/bin/bash
# copy this file into /bin/zcat to a file called /bin/7zcat
PATH=${GZIP_BINDIR-'/bin'}:$PATH
exec 7z e -so -bd "$@" 2>/dev/null | cat

gist

Added on 08.May.2022
Tags: zip 7zip 7z cat zcat

How to read a CSV file with bash under Linux terminal

#!/usr/bin/env bash
#
# Read line by line and parse a CSV file
# ex. test@office.com,Alex,1-800-555-321
#
# "IFS" - https://www.baeldung.com/linux/ifs-shell-variable
# ${gsm:2}" - remove the first 2 characters from the string

while IFS=, read -r email name gsm
do
    echo "${name} $email ${gsm:2}"
done < users.csv

Added on 07.Apr.2022
Tags: example code bash csv parse linux terminal

YouTube - play, cast or download videos

CLI Tools

  • youtube-dl - CLI program to download videos from YouTube and other video sites.
  • yt-dlp - A youtube-dl fork with additional features and fixes.
  • ytcast - Cast YouTube videos to your smart TV from CLI. Related [tools].ytcast-tools
    • ytsearch - Search and select youtube video links (no api).

Limit resolution

Sometimes it is better to limit the max resolution when playing videos with MPV.

# video resolutions: ..240, 360p, 480p, 720p,..
mpv --ytdl-format="bestvideo[height<=480]+bestaudio/best[height<=480]" $1

Added on 02.Mar.2022
Tags: linux terminal tools youtube ytcast youtube-dl yt-dlp

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top