Skip to content

Instantly share code, notes, and snippets.

View cameronj86's full-sized avatar

Cameron Jackson cameronj86

View GitHub Profile
const apiUrl = "http://api.quotable.io/random?tags=";
async function start() {
var quote;
var cite;
const response = await fetch(apiUrl);
const data = await response.json();
if (response.ok) {
// Update DOM elements
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 6, 2024 15:28
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@2e3s
2e3s / README.md
Last active April 2, 2024 11:58
Pomodoro in KDE

I use a great widget focus-plasmoid (KDE store) for Pomodoro-driven work on KDE. There are no prominent alternatives so far.

The work happens on a different virtual desktop (or activity).

  • When focus starts, the virtual desktop with working applications gets switched on.
  • When focus ends, a message box asks for a short description of what is done in the past period (when it is still in the context), then a daily report is shown as a popup and the virtual desktop gets changed.
  • A few seconds of the sleep time is to avoid confusion and prepare to get switched after a dong sound.
  • The report gets also saved in a folder along the script for every day and can be reviewed later.