Skip to content

Instantly share code, notes, and snippets.

View ulfbert-inc's full-sized avatar

Vadzim Tonka ulfbert-inc

  • Earth
View GitHub Profile
@ulfbert-inc
ulfbert-inc / LTSpiceBenchmarkReport.txt
Created November 6, 2022 17:28
LTSpice Benchmark Report for Intel i9-11900K
LTSpice Benchmark Report
DESKTOP 11/06/2022 18:18:16
Name NumberOfCores NumberOfEnabledCore NumberOfLogicalProcessors
---- ------------- ------------------- -------------------------
11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz 8 8 8
LTSpice avg startup time: 0.1416125 seconds

Keybase proof

I hereby claim:

  • I am vadzimt on github.
  • I am vadzimt (https://keybase.io/vadzimt) on keybase.
  • I have a public key whose fingerprint is 647C DB35 5CFF DB26 977C 1E17 EE58 4470 9605 DA78

To claim this, I am signing this object:

Alice's Adventures in Wonderland
ALICE'S ADVENTURES IN WONDERLAND
Lewis Carroll
THE MILLENNIUM FULCRUM EDITION 3.0
@ulfbert-inc
ulfbert-inc / arch-xhyve.sh
Created October 15, 2015 08:42 — forked from ChaosJohn/arch-xhyve.sh
Run Arch Linux in xhyve
#!/bin/bash
tmp=$(mktemp -d)
pushd "$tmp"
iso=/Users/lloeki/Downloads/archlinux-2015.08.01-dual.iso
echo "fixing disk"
dd if=/dev/zero bs=2k count=1 of=tmp.iso
dd if=$iso bs=2k skip=1 >> tmp.iso
echo "mounting disk"
This note explains how to build Postgres from source and setup to debug it using LLDB on a Mac. I used this technique to research this article:
http://patshaughnessy.net/2014/10/13/following-a-select-statement-through-postgres-internals
1. Shut down existing postgres if necessary - you don’t want to mess up your existing DB or work :)
$ ps aux | grep postgres
pat 456 0.0 0.0 2503812 828 ?? Ss Sun10AM 0:11.59 postgres: stats collector process
pat 455 0.0 0.0 2649692 2536 ?? Ss Sun10AM 0:05.00 postgres: autovacuum launcher process
pat 454 0.0 0.0 2640476 304 ?? Ss Sun10AM 0:00.74 postgres: wal writer process
pat 453 0.0 0.0 2640476 336 ?? Ss Sun10AM 0:00.76 postgres: writer process
Ohai.plugin(:Uname) do
provides 'uname'
depends 'kernel'
collect_data do
uname Mash.new(:message => `uname -a`)
end
end
object funsets {
type Set = Int => Boolean
def contains(s: Set, elem: Int): Boolean = s(elem)
//> contains: (s: Int => Boolean, elem: Int)Boolean
def singletonSet(elem: Int): Set = Set(elem) //> singletonSet: (elem: Int)Int => Boolean
def union(s: Set, t: Set): Set = i => s(i) || t(i)
//> union: (s: Int => Boolean, t: Int => Boolean)Int => Boolean
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 86, in run
self.finish_response()
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
self.write(data)
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 212, in write
self.send_headers()
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
self.send_preamble()
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 194, in send_preamble
❯ pip install --user -r requirements.txt
Downloading/unpacking Django==1.6.3 (from -r requirements.txt (line 1))
Downloading Django-1.6.3-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded
Downloading/unpacking Markdown==2.4 (from -r requirements.txt (line 2))
Downloading Markdown-2.4.tar.gz (260kB): 260kB downloaded
Running setup.py (path:/private/var/folders/zp/905n_6ps4wj2v69hf65hlc6m0000gn/T/pip_build_vt/Markdown/setup.py) egg_info for package Markdown
Downloading/unpacking MarkupSafe==0.21 (from -r requirements.txt (line 3))
Downloading MarkupSafe-0.21.tar.gz
Running setup.py (path:/private/var/folders/zp/905n_6ps4wj2v69hf65hlc6m0000gn/T/pip_build_vt/MarkupSafe/setup.py) egg_info for package MarkupSafe