I hereby claim:
- I am pzmarzly on github.
- I am pzmarzly (https://keybase.io/pzmarzly) on keybase.
- I have a public key ASAL2siJMVlE6bSF0oFdX0ItcK5hBxXCw5EH3PX2yazosgo
To claim this, I am signing this object:
{ | |
"node": { | |
"tag": "node:20-slim", | |
"uuid": "node@sha256:24a8b77508a4edaa99ef31f020e915da31c87068b4164d6746bf0c1684c71f98" | |
}, | |
"postgres": { | |
"tag": "postgres:16", | |
"uuid": "postgres@sha256:1e90f8560705b0daccbd8eb25573627c8452fc9282496433aab1259ae4c85824" | |
}, | |
"redis": { |
struct T(String); | |
impl Drop for T { | |
fn drop(&mut self) { | |
println!("Dropping {}", self.0); | |
} | |
} | |
fn main() { | |
{ |
use protocol_derive::Protocol; | |
use std::rc::Rc; | |
#[derive(Protocol, Debug, PartialEq)] | |
pub struct Health(pub u8); | |
#[derive(Protocol)] | |
pub struct Player { | |
pub name: String, | |
pub health: Rc<Health>, |
#!/bin/bash | |
set -e | |
# we have files a.pdf and b.pdf | |
mkdir tmp | |
cd tmp | |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOUTPUTFILE=a1.pdf -dFirstPage=1 -dLastPage=1 ../a.pdf | |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOUTPUTFILE=a2.pdf -dFirstPage=2 -dLastPage=2 ../a.pdf | |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOUTPUTFILE=b1.pdf -dFirstPage=1 -dLastPage=1 ../b.pdf |
[herecura] | |
SigLevel = Never | |
Server = https://repo.herecura.be/herecura/x86_64/ | |
[disastrousaur] | |
SigLevel = Never | |
Server = https://mirror.repohost.de/disastrousaur/ | |
[dx37essentials] | |
SigLevel = PackageOptional |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
I hereby claim:
To claim this, I am signing this object:
qemu-system-i386 -machine accel=kvm -smp 1,cores=4,maxcpus=4 -m 1024 -vga virtio -display sdl,gl=on -soundhw hda file.iso |
List of alternatives:
--- | |
# Simple HTML Compressor for Jekyll/Liquid | |
# removes x4 spaces indentation and newlines | |
# lefts scripts untouched | |
# check is newline character between two "a" characters a correct \n for your site (Windows or Unix newline character) | |
# licensed MIT | |
# 2015 Paweł Zmarzły | |
--- | |
{% capture lines %}a | |
a{% endcapture %}{% assign newline = lines | remove: "a" %}{% assign content_lines = content | split: newline %}{% for curr_line in content_lines %}{% if curr_line contains '<script' %}{% assign need_line = true %}{% endif %}{% if curr_line contains '</script' %}{% assign need_line = false %}{% endif %}{% if need_line %}{{curr_line}}{{newline}}{% else %}{{curr_line | replace: " ", " "}}{% endif %}{% endfor %} |