This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tracks the origin of net_udp_rcvbuferrors, printing socket metadata associated with the packet drops. | |
// | |
// usage: bpftrace trace_udp_rcvbuferrors.bt | |
// sample output: | |
// 12:32:25 iperf3/3391 ::ffff:192.168.60.3:5201 -> ::ffff:192.168.60.1:50512 retval=-1 dropped=23809 qlen=36 qsize/qmaxsize=213248/212992 bytes | |
kprobe:udp_queue_rcv_skb | |
{ | |
$sock = (struct sock *)arg0; | |
if ($sock->sk_type != SOCK_DGRAM || ($sock->__sk_common.skc_family != AF_INET && $sock->__sk_common.skc_family != AF_INET6)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chains of recurrences -- a method to expedite the evaluation of closed-form functions | |
On computational properties of chains of recurrences | |
Symbolic Evaluation of Chains of Recurrences for Loop Optimization | |
Efficient Symbolic Analysis for Optimizing Compilers | |
Using the chains of recurrences algebra for data dependence testing and induction variable substitution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void __cdecl main_main() | |
{ | |
__int64 *v0; // rdi | |
__int64 v1; // rdi | |
__int64 v2; // rax | |
__int64 v3; // rax | |
__int64 v4; // rcx | |
const char *v5; // rdx | |
__int128 v6; // rax | |
__int64 v7; // rcx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval "global.get_window_actors().filter(a=>a.meta_window.has_focus()===true)[0]?.get_meta_window()?.get_wm_class()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Hasher interface { | |
Compute( | |
context.Context, | |
hash Hash, | |
new map[string]string, | |
) (Hash, error) | |
} | |
type Changeset interface { | |
Change( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- mode:go;mode:go-playground -*- | |
// snippet of code @ 2020-11-14 14:23:30 | |
// === Go Playground === | |
// Execute the snippet with Ctl-Return | |
// Provide custom arguments to compile with Alt-Return | |
// Remove the snippet completely with its dir and all files M-x `go-playground-rm` | |
package main | |
import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rust rmsbolt starter file | |
// Local Variables: | |
// rmsbolt-command: "rustc -C opt-level=0" | |
// rmsbolt-disassemble: nil | |
// End: | |
fn is_rms(a: char) -> i32 { | |
match a { | |
'R' => 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql (12.4, server 9.5.0) | |
Type "help" for help. | |
sample=# create table sample (id integer, metadata jsonb) ; | |
CREATE TABLE | |
sample=# insert into sample values (1, '{"test" : { "test" : 1 }}'::jsonb); | |
INSERT 0 1 | |
sample=# select * from sample; | |
id | metadata | |
----+----------------------- |
NewerOlder