Skip to content

Instantly share code, notes, and snippets.

View ashleysommer's full-sized avatar

Ashley Sommer ashleysommer

View GitHub Profile
@ashleysommer
ashleysommer / scratch.py
Created September 5, 2021 09:45
benchmark return self
import timeit
setup_code = """\
class TestClass1:
__slots__ = ("inner",)
def __init__(self):
self.inner = dict()
def add(self, item):
self.inner[item] = 1
#!/bin/sh
bluetoothctl disconnect 00:1D:43:A0:A4:64
sudo systemctl stop bluetooth
killall pavucontrol
killall pasystray
pulseaudio -k
killall pulseaudio
sleep 1
killall -9 pulseaudio
systemctl --user stop pipewire.socket
#!/bin/sh
bluetoothctl disconnect 00:1D:43:A0:A4:64
sudo systemctl stop bluetooth
killall pavucontrol
killall pasystray
sudo rm -rf /usr/lib/systemd/system/pulseaudio-enable-autospawn.service
sudo sed -i 's/; autospawn = yes/autospawn = no/' /etc/pulse/client.conf
sudo sed -i 's/; autospawn = yes/autospawn = no/' /home/user/.config/pulse/client.conf
sudo sed -i 's/; autospawn = yes/autospawn = no/' /var/lib/gdm3/.config/pulse/client.conf
systemctl --user stop pulseaudio.socket
Jan 18 13:02:21 ash pulseaudio[1000]: This is PulseAudio 13.99.1
Jan 18 13:02:21 ash pulseaudio[1000]: Compilation host: x86_64-pc-linux-gnu
Jan 18 13:02:21 ash pulseaudio[1000]: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-fQvFZE/pulseaudio-13.99.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
Jan 18 13:02:21 ash pulseaudio[1000]: Running on host: Linux x86_64 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
Jan 18 13:02:21 ash pulseaudio[1000]: Found 8 CPUs.
Jan 18 1
@ashleysommer
ashleysommer / keybase.md
Created November 3, 2020 05:50
ashleysommer keybase proof

Keybase proof

I hereby claim:

  • I am ashleysommer on github.
  • I am ashleysommer (https://keybase.io/ashleysommer) on keybase.
  • I have a public key whose fingerprint is 2CA9 AEF3 8F32 D36E 6FCC 4649 46A9 ADB0 B404 1CBD

To claim this, I am signing this object:

@ashleysommer
ashleysommer / pulseaudio log
Created August 25, 2020 06:28
log of pulseaudio with APTX headphones
Aug 25 16:22:49 localhost pulseaudio[25822]: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
Aug 25 16:22:49 localhost pulseaudio[25822]: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
Aug 25 16:22:49 localhost pulseaudio[25822]: Timer slack is set to 50 us.
Aug 25 16:22:49 localhost pulseaudio[25822]: RealtimeKit worked.
Aug 25 16:22:49 localhost pulseaudio[25822]: Successfully gained nice level -11.
Aug 25 16:22:49 localhost pulseaudio[25822]: This is PulseAudio 13.99.1
Aug 25 16:22:49 localhost pulseaudio[25822]: Compilation host: x86_64-pc-linux-gnu
Aug 25 16:22:49 localhost pulseaudio[25822]: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-EPqXvV/pulseaudio-13.99.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclar
@ashleysommer
ashleysommer / IntelliJDebugger.jl
Created July 23, 2020 14:26
Fixed Julia include file for Intellij-Julia
using Debugger
using JuliaInterpreter
using Sockets
using REPL
using JSON
import Debugger: Debugger, locdesc, locinfo, print_sourcecode, print_next_expr, print_locals, maybe_quote, pattern_match_kw_call, pattern_match_apply_call, breakpoint_linenumbers, repr_limited
import JuliaInterpreter: JuliaInterpreter, Frame, @lookup, caller, pc_expr, isexpr
_intellij_debug_mode = true
_intellij_current_stack = []
@ashleysommer
ashleysommer / benchmark.py
Created July 19, 2020 03:24
Benchmarking the new Memory2 rdflib triplestore implementation
import random
from string import ascii_uppercase, ascii_lowercase, digits
from rdflib import Graph, ConjunctiveGraph, URIRef, BNode, Literal
import timeit
ALPHABET = ascii_uppercase + ascii_lowercase + digits
def make_word(length=8):
return ''.join(random.choice(ALPHABET) for _ in range(length))
# [DEBUG] Sync
2019-11-03T08:19:16.227367
SYNC /notable/notes/
27 files
localSyncTimestamps: {}
----
/plus/remote.php/webdav/notable/notes/
null
null
Sat, 02 Nov 2019 22:11:05 GMT
@ashleysommer
ashleysommer / infra_d3d11.log
Created March 8, 2019 05:48
dxvk_wine_issue
-- EMPTY --