πŸ“š node [[pomodoro]]

Pomodoro

  • a [[tool]]
    • [[pomodoro technique]]
      • [[25 minutes]] of focused work followed by [[5 minutes]] of rest.
      • I should do it more. "I should do it more" is something that one can end up saying about many things. So I'm trying to keep things easy: two a day keeps the doctor and the fireperson away.
    • A [[pomodoro]], for me, signals an [[intent]].
      • My default intent is [[getting things done]] with [[good intent]] for [[public utility]].
      • I'm trying to be explicit about setting intents in general; a bit ritualistic even.
      • Whenever I notice the risk of getting distracted from the task at hand, I dump thoughts in [[later]].
    • My current running contexts or intents can be found in [[do]] (they expand into lists of todo items/trees/graphs depending on level of modelling) and, well, in this [[agora]].
      • I am not particularly great at integrating tasks into a single place for organized ordering; to solve (or work around?) this issue it is in part that I started this Agora, as it lets me integrate things easily.
    • I also use a [[paper notebook]] for day planning and tracking.
    • #pull [[termdown]] for my (as of [[2022-05-20]]) preferred timer app on [[linux]].
    • #pull [[goodtime]] for my (as of [[2022-05-20]]) preferred timer app on [[android]].
    • #pull [[marinara]] is also open source and good ([[web extension]]).
β₯… node [[2022-05-20]] pulled by user

2022-05-20

β₯… node [[android]] pulled by user

Table of Contents

related [[phone]]

Why root your Android? [[sadinfra]]

[2020-01-20] BusyBox cron container example

https://gist.github.com/andyshinn/3ae01fa13cb64c9d36e7

Try crond --help:

[2019-01-19] Is Rooting Your Device Still Worth It? /r/Android

Yes, and I wouldn't even consider buying a phone that couldn't be rooted. Main reasons include:  

- Adaway  
- build.prop tweaks to change DPI and change volume steps  
- uninstall system apps
- root broswer (I use Solid Explorer)
- Viper4android for audio tweaks
- Kernel Audiutor to tweak performance
- WiFi key recovery to see wifi passwords you've entered

Xposed modules including:  

- Xposed edge for custom swipe gestures (I use swipe from the right edge to open recents)  
- Youtube background playback  
- Youtube adaway  
- Media volume channel
- Greenify  
- Amplify

[2019-01-19] What are the benefits to rooting in 2018? /r/Android

Systemwide adblock, without running a VPN all the time (because I use a separate VPN for work sometimes and juggling is annoying). 
Blocking internet access to certain apps (Gboard, camera, etc. Don't need EVERYTHING I say keylogged by Google.)
Customization of stuff like emojis, where the clock is in the status bar, etc.

[2018-09-04] How you use your android to the maximum? /r/androidapps [[android]] [[fun]]

horrifying. I wake up at 6:30am with no alarm because I just do. I grab my phone to look at facebook while I take a dump. Its probably not charged and the battery is at 5% and the screen is too dim to read. So I sit it on the floor and read the back of a misc bottle on the sink. I plug in my phone and spend the next 2 hours drinking coffee and playing candy crush, facebook and reddit on my ipad (unless I forgot to charge that too) or my laptop. Eventually I decide to go to work. I might plug my phone into the radio using the headphone jack or I might just listen to music on radio, or NPR. Either way I drive 10 minutes to work while not thinking at all about whether I have to send an email. I'm probably thinking about boobs.
I get to work and do whatever I want, respond to a bunch of emails, ignore some others, work some on my manuscripts, teach a class. Maybe look at my phone once to see if I got a text. Go home when I feel like it. Listen to radio on way home. Put my phone down somewhere once I'm there and forget to charge it. Drink beer and watch old eps of Louis C.K. and fuck my wife (edit: or wait until she's asleep and take my phone into the bathroom to jerk it to some vid on beeg.com).
repeat.

OnePlus 6 and OnePlus 6T seeing work for mainline Linux kernel support [[android]]

OnePlus 6 and OnePlus 6T seeing work for mainline Linux kernel support - https://news.ycombinator.com/item?id=25969614

[2021-01-31] SQLiteViewer ugh didn't work, just displayed blank when opening file

SQLiteViewer (A simple SQLite database viewer) - https://f-droid.org/packages/com.orpheusdroid.sqliteviewer

[2021-01-06] jonasoreland/runnerup: A open source run tracker [[exercise]] [[android]]

[2020-04-22] Wireless Debugging through ADB in Android using WiFi [[android]] [[debug]]

adb tcpip 5555 (when it's plugged in, once)
adb connect host:port

[2021-03-29] getting termux environment in adb [[adb]] [[termux]]

sudo adb shell
$ su -c /data/data/com.termux/files/usr/bin/tsu

[2021-03-27] Where are Android settings stored? - Android Enthusiasts Stack Exchange [[android]] [[backup]]

As it turns out, there is no magic file or directory that contains all settings. They are stored in various places, and depends greatly on how the manufacturer decides to set things up. I primarily work with Samsung phones, so the information here will mostly be Samsung oriented. Also, note that all of the below requires root access. If anyone has anything to add / rectify, feel free to comment.

more BBS battery examination… [[android]]

listened some music, used phone a bit but not much since basically at home
10h, -17% battery

  • alarms
    GMS 187 ALARMWAKEUPACTIVITYDETECTION
  • sensors
    nova launcher:
    ugh. uses accelerometer all the time??
    maps.me: 3h49m total
    uses accelerometer and gyroscope?? this is ridiculous, why???
  • cpu states
    1.8GHz 35m
    691 2h27m
    deep sleep 6h25m
    other are negligible

[2021-04-08] hmm. maybe maps.me is this?? https://github.com/mapsme/omim/issues/4866

[2021-03-27] FAQ Β· seedvault-app/seedvault Wiki [[backup]]

[2021-03-27] Liberate Your Device - Free Your Android! - FSFE

[2021-03-27] grote/Transportr: Free Public Transport Assistant without Ads or Tracking [[maps]]

hmm doesn't really work in londong?

β₯… node [[goodtime]] pulled by user
β₯… node [[linux]] pulled by user

Linux

The bog standard free software operating system. Runs everywhere. Good. Fast. Monolithic C kernel.

Understanding Linux performance Best Linux tips and tricks

Table of Contents

related [[infra]]

docker [[docker]]

[2018-06-15] docker system prune to cleanup

[2021-01-12] figuring out what takes disk space docker images | awk '{print $3}' | xargs docker inspect | less [[docker]]

[2021-02-12] Docker compose port mapping - Stack Overflow

If you want to bind to the redis port from your nodejs container you will have to expose that port in the redis container:

version: '2'
services:
  nodejs:
    build:
      context: .
      dockerfile: DockerFile
    ports:
      - "4000:4000"
    links:
      - redis
  redis:
    build:
      context: .
      dockerfile: Dockerfile-redis
    expose:
      - "6379"
The expose tag will let you expose ports without publishing them to the host machine, but they will be exposed to the containers networks.

[2021-04-14] apt-get clean and other strategies for keeping image size small? Β· Issue 35 Β· rocker-org/rocker [[docker]]

ok, so for debian/ubuntu images don't really need autoclean – it's already run automatically

[2021-05-02] Attach and Detach from Docker Container | HowToProgram [[docker]] [[drill]]

In general, to detach from a Docker container and leave it running, we can use the CTRL-p CTRL-q key sequence.

systemd [[systemd]]

debugging: systemctl --failed, journalctl

logs – for individual jobs you can see them via status (or sdj)
presistent is not showing anythin by default?

profiling: systemd-analyze blame

networking [[network]]

who uses local port

sudo ss -tulpn | grep 5060
sudo ss -anpt  | grep 8640

testing if port is open

netcat -l 5559

one the other machine

echo "TEST" | netcat host 5559

[2020-06-15] linux - Test if a port on a remote system is reachable (without telnet) - Super User

Nice and verbose! From the man pages.
Single port:
nc -zv 127.0.0.1 80

testing if port is open

apt

install build dependencies: sudo apt-get build-dep package

cron [[cron]]

[2018-02-26] if cron fails to start a job, it will send the output to local mail

grep cron /var/log/syslog
tail -f /var/log/syslog | grep cron

[2018-05-10] mail subject – use bash comment operator

*:* TestJob; cron command

mind the space after colon!

sandboxing [[sandbox]]

docker is excellent for quick sandboxes (just use ubuntu:latest image or something) [[docker]]

firejail for network sandbox [[network]] [[testing]]

  • doesn't require root!
  • firejail --noprofile --net=none

udev [[udev]]

udevadm info /dev/sdc2

[2019-03-07] when you update rules file sudo udevadm control --reload-rules

[2019-03-07] to trigger the target script sudo udevadm trigger

[2017-05-08] Gateway 0.0.0.0 means that the subnet is link-local i.e. there is no gateway involved, the packets are delivered directly to the target [[network]]

-----

[2018-06-08] Linux ignores the setuid bit on all interpreted executables (i.e. executables starting with a #! line).

ok apparently setuid shell scripts are quite risky…

[2020-01-29] linux - How to make htop sort by PID

press > and select RES

[2020-01-24] logs - View stdout/stderr of systemd service [[systemd]]

Note that using the standard logging mechanism like this will not create persistent logs by default. To do that, you'll need to create /var/log/journal, and then run sudo systemctl restart systemd-journald

[2020-01-29] How to read memory usage in htop? - Server Fault [[drill]]

https://serverfault.com/questions/517483/how-to-read-memory-usage-in-htop

Hide user threads (shift + H) and close the process tree view (F5), t

[2020-12-04] linux - prevent system freeze/unresponsiveness due to swapping run away memory usage - Super User

If a process demands a lot of memory, the system moves all other process to the swap file. Including it seems, necessary processes like the X11 server or the terminal.

[2018-04-27] guide to XKB

-

whereis command [[habit]]

β₯… node [[marinara]] pulled by user
β₯… node [[termdown]] pulled by user
  • a [[tool]].
    • [[console]] [[timer]]
    • [[install]] sudo apt-get install espeak python3-pip && pip3 install termdown
    • I have this tiny shell script/drop in alias I use to do [[pomodoro]]:
      • alias pomodoro='while true; do termdown -v en 25m -c 10 --font doh -T focus -e; termdown -v en 5m -c 10 --font doh -e -T rest; done'
β₯… node [[web-extension]] pulled by user
πŸ“– stoas
β₯± context
β₯… related node [[50 minute pomodoro]]
β₯… related node [[8 pomodoros]]
β₯… related node [[eight pomodoros for the revolution]]
β₯… related node [[eight pomodoros]]
β₯… related node [[four pomodoros for the kind revolution]]
β₯… related node [[four pomodoros for the revolution]]
β₯… related node [[infinite pomodoros]]
β₯… related node [[one pomodoro]]
β₯… related node [[pomodoro 0]]
β₯… related node [[pomodoro technique]]
β₯… related node [[pomodoros for the revolution]]
β₯… related node [[pomodoros]]
β₯… related node [[writing pomodoro]]
β₯… related node [[pomodoro for the revolution]]
β₯… related node [[pomodoro praxis]]
β₯… related node [[synchronized pomodoros]]