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
#!/usr/bin/env python | |
from pathlib import Path | |
from base64 import b64encode, b64decode | |
from cryptography.hazmat.primitives import hashes | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.primitives.asymmetric import padding | |
from cryptography.hazmat.primitives.serialization.ssh import ( | |
SSHPrivateKeyTypes, |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
) | |
func f(ctx context.Context, xs []int) { |
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
unbind C-b | |
set-option -g prefix C-\\ | |
bind-key C-\\ send-prefix |
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
#!/bin/bash | |
# URL prefix | |
url_prefix='http://testing.mainnet.beacon-api.nimbus.team/eth/v2/beacon/blocks' | |
# Range of numbers to loop over | |
start=6209538 | |
end=9453725 | |
# Number of workers |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
xbindkeys | |
openrazer-daemon | |
polychromatic | |
~/.xbindkeysrc | |
``` | |
"xdotool key KP_1" | |
b:9 |
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
# https://gist.github.com/ydm/dba727d2f1bb9fafac9437b63024efe0 | |
from datetime import datetime, timedelta | |
import pytz | |
def convert_golang_time(s): | |
''' | |
>>> convert_golang_time('2024-06-14 22:40:35.106900879 +0300 EEST m=+8.946057668') | |
'2024-06-14T22:40:35.106901+03:00' | |
''' |
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
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"io" | |
"net/http" | |
"time" | |
) |
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
#![feature(associated_type_defaults)] | |
#![feature(generic_const_exprs)] | |
#[derive(Debug)] | |
struct Vector<const D: usize> { | |
v: [f32; D], | |
} | |
impl<const D: usize> Vector<D> { | |
fn new() -> Self { |
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
#!/bin/bash | |
# NODE=${BEACON_NODE:-http://127.0.0.1:3500} | |
NODE=${BEACON_NODE:-http://testing.mainnet.beacon-api.nimbus.team} | |
out() { printf "%s %s\n" "$1" "$2"; } | |
error() { out "==> ERROR:" "$@"; } >&2 | |
die() { error "$@"; exit 1; } | |
[ -z "$1" ] && die "usage: $0 <slot> <index>" |
NewerOlder