Skip to content

Instantly share code, notes, and snippets.

View purarue's full-sized avatar

purarue

View GitHub Profile
Sonic Pi Boot Error Report
==================
System Information
----------------
* Sonic Pi version: 3.2.2
* OS: Arch Linux
1619336968:Searching for jobs in:
1619336968:/home/username/.local/scripts/supervisor/jobs/shared
1619336968:/home/username/.local/scripts/supervisor/jobs/linux
1619336968:/home/username/Repos/HPI/jobs/shared
1619336968:/home/username/Repos/HPI/jobs/linux
1619336968:Job List:
1619336968:/home/username/.local/scripts/supervisor/jobs/shared/mystars.job
1619336968:/home/username/.local/scripts/supervisor/jobs/linux/mint.job
1619336968:/home/username/.local/scripts/supervisor/jobs/linux/guestbook_comments.job
1619336968:/home/username/.local/scripts/supervisor/jobs/linux/update_rss.job
@purarue
purarue / ttt_log.log
Last active October 29, 2024 22:08
where ttt is used in my dotfiles
[$ grep-dotfiles ttt | clp
/home/username/.config/i3/config:7:# ttt is littered throughout here, to track i3 bindsyms
/home/username/.config/i3/config:8:# see https://github.com/purarue/ttt/ for more info
/home/username/.config/i3/config:15:bindsym $mod+Shift+Escape exec --no-startup-id ttt lock-screen
/home/username/.config/i3/config:47:bindsym XF86Display exec --no-startup-id ttt randomize-wallpaper
/home/username/.config/i3/config:52:bindsym $mod+g exec --no-startup-id ttt trackpad
/home/username/.config/i3/config:62:bindsym $mod+Shift+Tab exec --no-startup-id ttt i3binds-prompt
/home/username/.config/i3/config:109:# wrapper to save history using ttt
/home/username/.config/i3/config:116:bindsym $mod+n exec --no-startup-id ttt networkmanager_dmenu
/home/username/.config/i3/config:119:bindsym --release Print exec --no-startup-id ttt screenshot
# run when tag file doesnt exist
evrytest:data directory: /home/username/.local/share/evry/data
evrytest:Parsed '5 seconds' into 5000ms
evrytest:Tag file doesn't exist, creating and exiting with code 0
# run again immediately
evrytest:data directory: /home/username/.local/share/evry/data
evrytest:Parsed '5 seconds' into 5000ms
@purarue
purarue / my.zsh.history.py
Created August 26, 2020 23:08
an example of me using my zsh DAL
>>> import collections, pprint, my.zsh
>>> pprint.pprint(collections.Counter([e.command for e in my.zsh.history()]).most_common(25))
[('ls', 33943),
('gst', 5689),
('yst', 3667),
('ranger', 3635),
('ec', 3059),
('clear', 2695),
('gds', 1817),
('cd', 1615),
@purarue
purarue / anagram.ex
Last active August 5, 2020 01:51
over engineered, anagram checker to demonstrate using recursion and function arity in elixir
defmodule Main do
#### helper methods
def strlen(item) when is_bitstring(item) do
item |> String.length()
end
def sort_string(item) when is_bitstring(item) do
item |> String.to_charlist() |> Enum.sort()
end
@purarue
purarue / 1-1000.txt
Created July 22, 2020 23:35 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
@purarue
purarue / battleship_score.py
Last active July 21, 2020 00:58
battleship score [interview question]
import pprint
import string
from typing import Tuple
def lookup_str_index(char: str):
return string.ascii_uppercase.index(char) + 1
def parse_coord(locstr: str) -> Tuple[int, int]:
return (int(locstr[0]), lookup_str_index(locstr[1]))
@purarue
purarue / glue_servers.sh
Last active October 29, 2024 22:10
helper script to run all my servers for glue for development
#!/bin/bash
# https://github.com/purarue/glue/
python3 "$REPOS/albums/server/app.py" &
"$REPOS/wca_userinfo/run_server" &
cd "$REPOS/docker-jikan" && ./run
kill $(jobs -p)
@purarue
purarue / open_aired_entries.py
Created June 24, 2020 21:33
Open Aired Entries from a MyAnimeList users PTW list
#!/usr/bin/python
"""Open Aired Entries from a MyAnimeList users PTW list
This is a replacement for this userscript: https://greasyfork.org/en/scripts/37562-open-aired-entries
Usage:
open_aired_entries <USERNAME> [--limit LIMIT]
open_aired_entries -h
Options: