Skip to content

Instantly share code, notes, and snippets.

2025-01-10 17:00:06.147 [INF] GRPH: Processed channels=0 updates=67 nodes=33 in last 59.999201246s
2025-01-10 17:01:06.148 [INF] GRPH: Processed channels=0 updates=109 nodes=0 in last 59.999698732s
2025-01-10 17:02:06.148 [INF] GRPH: Processed channels=0 updates=90 nodes=38 in last 1m0.000524585s
2025-01-10 17:03:06.148 [INF] GRPH: Processed channels=0 updates=99 nodes=4 in last 59.999054626s
2025-01-10 17:04:06.148 [INF] GRPH: Processed channels=0 updates=78 nodes=21 in last 59.999283795s
2025-01-10 17:05:06.148 [INF] GRPH: Processed channels=0 updates=75 nodes=58 in last 1m0.000323368s
2025-01-10 17:06:06.148 [INF] GRPH: Processed channels=0 updates=70 nodes=17 in last 59.999370151s
2025-01-10 17:07:06.148 [INF] GRPH: Processed channels=0 updates=137 nodes=16 in last 59.999786356s
2025-01-10 17:08:06.148 [INF] GRPH: Processed channels=0 updates=90 nodes=50 in last 59.999011296s
2025-01-10 17:09:06.148 [INF] GRPH: Processed channels=0 updates=92 nodes=0 in last 59.998882544s
@learntheropes
learntheropes / update_time
Created February 29, 2024 17:25
update time
sudo ntpdate -b time.nist.gov
CREATE EXTENSION citext;
CREATE DOMAIN email AS citext
CHECK ( value ~ '^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$' );
@learntheropes
learntheropes / change_password.sh
Created January 31, 2024 11:38
postgres change default user password
$ sudo -u postgres psql
psql (14.1 (Ubuntu 14.1-2.pgdg20.04+1))
Type "help" for help.
postgres=# \password postgres
Enter new password:
Enter it again:
@learntheropes
learntheropes / swap_zfs.sh
Last active July 5, 2023 03:37
Ubuntu set swap on a zfs drive
# https://askubuntu.com/questions/1198903/can-not-use-swap-file-on-zfs-files-with-holes/1198916#1198916
sudo zfs create -V 8G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false rpool/swap
sudo mkswap -f /dev/zvol/rpool/swap
sudo swapon /dev/zvol/rpool/swap
# Make the swap persistent after reboot
# https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04#step-5-making-the-swap-file-permanent
<template>
<section class="section container">
<div class="card">
<div class="card-image">
<figure class="image is-4by3">
<img
src="https://bulma.io/images/placeholders/1280x960.png"
alt="Placeholder image"
/>
</figure>
sudo wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash
@learntheropes
learntheropes / main.scss
Last active September 17, 2019 14:57
sass in nuxtjs with bulma
npm install --save-dev @nuxtjs/style-resources sass-loader node-sass
@learntheropes
learntheropes / debian_ubuntu_command_line.md
Created August 16, 2019 21:20
Debian/Ubuntu command line staff

Get timezone

timedatectl status | grep "Time zone"
@learntheropes
learntheropes / kbfs.md
Last active August 16, 2019 20:03
kbfs staff

Get ubuntu/debian default mountdir

printenv | grep $XDG_RUNTIME_DIR

If $XDG_RUNTIME_DIR exists, then KBFS is mounted at $XDG_RUNTIME_DIR/keybase/kbfs Otherwise is mounted at /home/user/.config/keybase/kbfs

Change mountdir