Skip to content

Instantly share code, notes, and snippets.

@sontek
sontek / snowjob.sh
Last active April 5, 2024 06:51
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
@sontek
sontek / snowjob.py
Created December 22, 2011 04:24
Make your terminal snow with python
#!/usr/bin/env python
import os
import random
import time
import platform
snowflakes = {}
try:
# Windows Support
This file has been truncated, but you can view the full file.
< 1> send packet: +
history[1] tid=0x0103 < 1> send packet: +
< 19> send packet: $QStartNoAckMode#b0
< 1> read packet: +
< 6> read packet: $OK#9a
< 1> send packet: +
< 13> send packet: $qHostInfo#9b
< 347> read packet: $triple:616172636836342d2d6c696e75782d676e75;ptrsize:8;watchpoint_exceptions_received:before;endian:little;os_version:6.4.16;os_build:362e342e31362d6f7262737461636b2d30303130352d67313430393462666565633039;os_kernel:233120534d50204d6f6e205365702031382032313a34353a3338205554432032303233;hostname:72756272696b612d366462396436383662362d6c686a7277;#53
< 18> send packet: $qGetWorkingDir#91
< 20> read packet: $2f6170702f737263#a1
This file has been truncated, but you can view the full file.
< 1> send packet: +
history[1] tid=0x0103 < 1> send packet: +
< 19> send packet: $QStartNoAckMode#b0
< 1> read packet: +
< 6> read packet: $OK#9a
< 1> send packet: +
< 13> send packet: $qHostInfo#9b
< 347> read packet: $triple:616172636836342d2d6c696e75782d676e75;ptrsize:8;watchpoint_exceptions_received:before;endian:little;os_version:6.4.16;os_build:362e342e31362d6f7262737461636b2d30303130352d67313430393462666565633039;os_kernel:233120534d50204d6f6e205365702031382032313a34353a3338205554432032303233;hostname:72756272696b612d366462396436383662362d6c686a7277;#53
< 18> send packet: $qGetWorkingDir#91
< 20> read packet: $2f6170702f737263#a1
Console is in 'commands' mode, prefix expressions with '?'.
Executing script: initCommands
Launching: /Users/johnanderson/code/drape/rubrika/target/debug/rubrika server --port 8800 --log-level debug
Launched process 21687
Stop reason: signal SIGSTOP
debug_info list
Module /Users/johnanderson/code/drape/rubrika/target/debug/rubrika : 729 compile units with debug info
Module [vdso] : 0 compile units with debug info
debug_info show
Console is in 'commands' mode, prefix expressions with '?'.
Executing script: initCommands
Launching: /Users/johnanderson/code/drape/rubrika/target/debug/rubrika server --port 8800 --log-level debug
Launched process 21687
Stop reason: signal SIGSTOP
debug_info list
Module /Users/johnanderson/code/drape/rubrika/target/debug/rubrika : 729 compile units with debug info
Module [vdso] : 0 compile units with debug info
debug_info show
codelldb demangled rustlegacy: _ZN5tokio7runtime4task4list11get_next_id17h4940ffae09e6ba7dE -> "tokio::runtime::task::list::get_next_id"
codelldb demangled rustlegacy: _ZN5tokio7runtime4task4list24LocalOwnedTasks$LT$S$GT$22close_and_shutdown_all28_$u7b$$u7b$closure$u7d$$u7d$17hb1381ae0a4b7bdb7E -> "tokio::runtime::task::list::LocalOwnedTasks<S>::close_and_shutdown_all::{{closure}}"
codelldb demangled rustlegacy: _ZN5tokio7runtime4task4list24LocalOwnedTasks$LT$S$GT$22close_and_shutdown_all28_$u7b$$u7b$closure$u7d$$u7d$17hd0589695afded7faE -> "tokio::runtime::task::list::LocalOwnedTasks<S>::close_and_shutdown_all::{{closure}}"
codelldb demangled rustlegacy: _ZN5tokio7runtime4task4list24LocalOwnedTasks$LT$S$GT$6remove28_$u7b$$u7b$closure$u7d$$u7d$17h3424bb17b2160466E -> "tokio::runtime::task::list::LocalOwnedTasks<S>::remove::{{closure}}"
codelldb demangled rustlegacy: _ZN5tokio7runtime4task4list24LocalOwnedTasks$LT$S$GT$10with_inner28_$u7b$$u7b$closure$u7d$$u7d$17h9cf8bee
Sep 19 09:52:17 ubuntu-ditto systemd[1]: Started nix-daemon.service - Nix Daemon.
Sep 19 09:52:17 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 3828, user johnanderson
Sep 19 09:53:20 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 4839, user johnanderson
Sep 19 09:54:31 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 5922, user johnanderson
Sep 19 09:54:32 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 6166, user johnanderson
Sep 19 09:54:34 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 7225, user johnanderson
Sep 19 09:54:35 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 8286, user johnanderson
Sep 19 09:54:35 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 8530, user johnanderson
Sep 19 09:54:37 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 9514, user johnanderson
Sep 19 09:54:38 ubuntu-ditto nix-daemon[3833]: accepted connection from pid 10504, user johnanderson
@sontek
sontek / gist:5d2764bee3ded510407374c578c011f6
Created September 19, 2023 16:49
azure-cli failing to install with nix
❯ nix profile install nixpkgs#azure-cli -vvvvvv
evaluating derivation 'flake:nixpkgs#azure-cli'...
performing daemon worker op: 11
acquiring write lock on '/nix/var/nix/temproots/5791'
performing daemon worker op: 1
using cache entry '{"name":"flake-registry.json","type":"file","url":"https://channels.nixos.org/flake-registry.json"}' -> '{"etag":"W/\"5af996fe37b5c4ba47ef9b3d545ba977b527e2dcdc6e926dda7787b7db6bcf6e\"","url":"https://channels.nixos.org/flake-registry.json"}', '/nix/store/5fjljy6g6l4lfdxcb1hjkg4bwrs2kqpx-flake-registry.json'
performing daemon worker op: 11
performing daemon worker op: 12
looked up 'flake:nixpkgs' -> 'github:NixOS/nixpkgs/nixpkgs-unstable'
performing daemon worker op: 11
@sontek
sontek / gist:b5d522c0ff42e9b5b46a49735286dda4
Created March 11, 2023 01:49
details from repo github call
{
'id': 575952771,
'node_id': 'R_kgDOIlRXgw',
'name': 'base',
'full_name': 'ublue-os/base',
'private': False,
'owner': {
'login': 'ublue-os',
'id': 120078124,
'node_id': 'O_kgDOByg_LA',