Monthly Shaarli

All links of one month in a single page.

April, 2021

Rockpi4/dev/usbnet - Radxa Wiki

Adding a rockpi as a network device to a host pc. I.e. networking over usb. Could be useful for low-latency vnc streaming.

Linux Hardening Guide | Madaidan's Insecurities

Extensive hardening guide from kernel, firewalls, swap, to userspace and more, covering pretty much all eventualities

PulseAudio/Examples - ArchWiki

To switch between headphones and speakers in pulseaudio activated pc quickly:

pactl set-sink-port [YOUR AUDIO CARD] analog-output-headphones | analog-output-speakers
Zellij: a Rusty terminal multiplexer releases a beta
thumbnail

Hi everyone,

I'm part of the team behind Zellij, and today we're very excited and proud to announce we've released a beta version!

This version should be relatively stable for every day use (we all use it ourselves :)) and includes a nice basic feature-set that we're iterating over and adding to.

If you'd like to read more, here's the announcement: https://zellij.dev/news/beta/

And here's a direct link to the repository: https://github.com/zellij-org/zellij

This release also includes the beginnings of our WebAssembly plugin system. You can read more about how to develop plugins in our documentation: https://zellij.dev/documentation/plugins.html

I hope you like the tool!

reddit permalink

Listing the contents of a remote ZIP archive, without downloading the entire file
GitHub - karlicoss/HPI: Human Programming Interface 🧑👽🤖
thumbnail

A whole library of interfaces to extract quantified self data through (more or less) simple python scripts.

powers ad is explained by many of the thoughts in beepboop

GitHub - andrey-utkin/taskdb: Personal task management solution
thumbnail

An interesting approach using sql database to store tasks and retrieve them with all kinds of tools

GitHub - oniony/TMSU: TMSU lets you tags your files and then access them through a nifty virtual filesystem from any other application.
thumbnail

"TMSU is a tool for tagging your files. It provides a simple command-line utility for applying tags and a virtual filesystem to give you a tag-based view of your files from any other program.

TMSU does not alter your files in any way: they remain unchanged on disk, or on the network, wherever your put them. TMSU maintains its own database and you simply gain an additional view, which you can mount where you like, based upon the tags you set up."

Interesting application of file tagging with a sqlite db in the background. Can be used to view your files in a virtual fs as tagged and so on. On the other hand, the vfs makes use of soft links and not hard links like I would have presumed.

A startpage reminiscing books. Light reword of the Edward Tufte CSS.
thumbnail
Jellyfin with s3 backend

Using an s3 backend (like wasabi, spaces, minio or others) as the block storage for a jellyfin (vps or homelab) installation with rclone. A bit fiddly, but can probably be adapted to iac -style docker stacks and so on.

Sia

"Sia is the leading decentralized cloud storage platform. No signups, no servers, no trusted third parties. Sia leverages blockchain technology to create a data storage marketplace that is more robust and more affordable than traditional cloud storage providers."

You 'rent' space on users' unused storage and it gets saved with 3x redundancy in decentralized, encrypted blocks. Sounds interesting and is pretty cheap (~$4 per TB) so could be something to look into more

Remote Pair Programming Made Easy with SSH and tmux
thumbnail

tmux setup for session sharing, window sharing but also session sharing with independent window usage, quite neat

LineageOS for microG

LineageOS with any google play services replaced by the open-source microG framework

GitHub - darktable-org/darktable: darktable is an open source photography workflow application and raw developer
thumbnail

Allows developing raw (and other) formatted photos, mimicks lightroom and carries similar editing capabilities.
Good library management.

Note: Python testing learning resources
Localtunnel ~ Expose yourself to the world

Create reverse proxy pointing to your pc. Somewhat of a servei / ngrok replacement, still functioning and free as far as I can see.

A possible option for (partially) replacing jupyter-notebook with vim
thumbnail
Using ipad with raspberry pi to create a linux laptop
thumbnail

Connecting ipad to raspberry (over usb vnc, so latency should be minimal) to enable a linux desktop experience (ssh or vnc).

Then connect a keyboard and you should be off to the races.

Comprehensive Fast API Tutorial
thumbnail

Stumbled upon this Fast API Tutorial and was surprised at how thorough this guy is. The link is part 21! Each part is dedicated to adding some small component to a fake cleaning marketplace API. It seems to cover a lot but some of the key takeaways are best practices, software design patterns, API Authentication via JWT, DB Migrations and of course FastAPI. From his GitHub profile, looks like the author used to be a CS teacher which explains why this is such a well thought out tutorial. I don't necessarily agree with everything since I already have my own established style and mannerisms but for someone looking to learn how to write API's this is a great resource.

reddit permalink

EAC Ripping Guide

An in-depth audio ripping guide for EAC

Vim macro intermediate functionality
thumbnail
Standards: Defending $HOME

Steps to take to declutter the home directory in linux -- with the most drastic being setting it to read-only.

GitHub - Alamantus/little-library: A digital give-a-book, take-a-book library for ebooks
thumbnail

Very cute little idea: basically an ebook-serving web page, but with some features that make it more like a little lend-a-book library:

  • you can have single-borrowing, meaning when somebody downloads an ebook it is gone from the server until they reupload it.
  • it shows you who else is currently 'browsing' the little library
  • you can leave a little note for books you put into the library to tell others why they're cool
  • it's designed for drm free ebooks of different varieties (mobi, djvu, epub, etc)
  • it looks like a small wooden bookshelf
GitHub - everestpipkin/tools-list: Open source, experimental, and tiny tools roundup
thumbnail

Open source, experimental, and tiny tools roundup.
Mainly themed around creation, graphically, such as generative art, games and word play.

Contains lots of nice little tools, some of which are truly not famous yet.

Very nice sci-fi art
Changing the file chooser with xdg-desktop-portal
thumbnail

Use ranger as chrome file picker dialog. GitHub Gist: instantly share code, notes, and snippets.

Auto-mounting filesystems on-demand in a virtual folder with systemd
thumbnail

linux - Integration of afuse user-level automounter with sshfs as a systemd service spawned from login for local users - Unix & Linux Stack Exchange

Ends up creating a folder on the home directory which automatically creates virtual directories, e.g. if you ls to folder/user@server.com it will ssh to the respective server and mount it. Only works with key-based authorization (afaik) and you need to have the server mounted or connected at least once before to add it to known hosts (or disabled known hosts, but I don't recommend that).

I am having some troubles with it (stuck shell on opening a new terminal) which I believe is due to the service type being forking but sshfs/ssh not quite forking into the background.
A simple systemd mount unit (with systemd-automount) also works well.

Check network usage per process in Linux – Linux Hint

Using network usage monitoring tools in linux: IPTraf, iftop, nethog

Whereas the first two show usage per port/ip, nethog does so per running user process.

In this article, we will explain a few tools that will allow you to check network usage per process in your Linux system. These tools include IPTraf, Iftop and Nethog. With the help of these tools, you can identify which process or port number is draining much of the network bandwidth.

LineageOS 17.1 on honor 6x - XDA Developers Forums
thumbnail

I just find out that this rom https://forum.xda-developers.com/p8lite/p8-lite-2017-development/rom-lineageos-17-1-huawei-p8-lite-2017-t4064121 could be...

step by step guides for getting it to run on an admittedly older phone

biblatex crate - Rust

A complete and concise bib(la)tex parser for rust, allows you to access things as Bibliography collections and comes with a few formatting niceties

Guides to learning zsh?

What are the best guides for learning zsh for someone that prefers seeing concreete examples that work? I have a hard time reading/understanding the man pages. I am trying to write very simple scripts but I don't understand how to do basic things like creating and using variables:

#!/bin/bash

d= date -v +1d '+%m_%d_%ydayPlan.rtf' #tomorrow's date with underscores + 'dayPlan.rtf'

touch /Users/mangoQuesadilla/Documents/dayplans/${d} #supposed to create a file, but it doesn't work.

reddit permalink

GitHub - joeyespo/grip: Preview GitHub README.md files locally before committing them.
thumbnail

Uses GitHub markdown API (actually queries it for rendering) and displays your readme files.

Can be used just to display github readmes and preview your own project ones, but also to transform markdown files to html-formatted ones (without e.g. pandoc), to create local copies of github wikis (example at link), etc.

The Hitchhiker’s Guide to Online Anonymity | How I learned to start worrying and love privacy

An incredibly thorough guide to online anonymity (and/or privacy) from laptop and phone handling through encryption to password and identity management.

linux - How to recursively find and list the latest modified files in a directory with subdirectories and times - Stack Overflow
thumbnail

Most flexible solution to the problem should be some variation of:

find $DIRECTORY -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head

GitHub - zellij-org/zellij: A terminal workspace with batteries included
thumbnail

A terminal workspace with batteries included. Contribute to zellij-org/zellij development by creating an account on GitHub.

Transfer files over WiFi between your computer and your smartphone
thumbnail
I live in a small apartment with limited space. So it's important that everything is silent and mostly hidden in plain sight.
thumbnail
Using Unix for Linguistic Research

A very gentle introduction to the terminal and working with shell environments for researchers.

Advanced document organizing software
thumbnail

Assist in organizing your piles of documents, resulting from scanners, e-mails and other sources with miminal effort. - eikek/docspell

Mirrors paperless, but comes with more features regarding ocr (NLP, a learning engine, auto-tagging etc), saves the originals and the pdf versions, can send e-mail, has a much more advanced web interface -- but also consumes more resources.

A Vim Guide for Adept Users
thumbnail

Hello Neovim lovers,

Many of you liked the previous article of my series about learning Vim (or Neovim) from the ground up. Good news: the fourth part is out!

I explain in this article

  • How Vim regex work.
  • Useful keystrokes for INSERT mode and VISUAL mode.
  • How to insert special characters easily.
  • How to work with shell commands.
  • How to fold some content.
  • ... and more!

Any feedback (positive or negative) is more than welcome!

Here's the article.

reddit permalink

made this during past week after i saw cool things around here
thumbnail
Help to migrate Caddyfile V1 to V2 for Nextcloud - #30 by Dougy - Help - Caddy Community
thumbnail

Using caddy to run nextcloud as a host and reverse proxy with rewriting and so on

DockerHub Multi-Arch Image als Autobuild
thumbnail

Building arm and arm64 versions of docker images with docker hub autobuilder, by using qemu emulation for the different arches

Leverage deep learning in your Node-RED flows – IBM Developer
thumbnail

Process image, video, audio, or text data using deep learning models from the Model Asset Exchange in Node-RED flows.

GitHub - CarVac/filmulator-gui: Filmulator --- Simplified raw editing with the power of film
thumbnail

Raw file editing software, mimicking lightroom or darktable for editing capabilities with fewer library features.

GitHub - yt-dlp/yt-dlp: A youtube-dl fork with additional features and fixes
thumbnail

A youtube-dl fork with an astounding number of new features. Most interesting to me are sponsorblock integration, thumbnail embedding, multithreading, and comment downloading

GitHub - rndusr/stig: TUI and CLI for the BitTorrent client Transmission
thumbnail

nice commandline client for transmission

GitHub - kanboard/kanboard: Kanban project management software
thumbnail

'Simple' kanboard software - just boards and cards, with a few nice workflow features like highlighting a column that fills up too much.