- BIP119: CHECKTEMPLATEVERIFY (CTV) by Jeremy Rubin
- BIP118: SIGHASH_ANYPREVOUT (APO) (aka SIGHASH_NOINPUT) by Christian Decker and Anthony Towns
- OP_CAT by Andrew Poelstra
- OP_CHECKSIGFROMSTACK (CSFS) + OP_CAT
- OP_TAPLEAF_UPDATE_VERIFY (TLUV) by Anthony Towns
- TXHASH + CHECKSIGFROMSTACKVERIFY (TXHASH + CSFS) by Russel O'Connor
- OP_EVICT by ZmnSCPxj
Maintainer: Keil Miller Jr
How to create and manage an AUR package.
The following link should be read:
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 python3 | |
# Distributed under the MIT software license | |
import binascii, struct, sys, io, argparse | |
from PIL import Image | |
IMG_WIDTH = 512 # could be made adaptive... | |
MIN_HEIGHT = 4 # minimum height of image; twitter won't let us upload anything smaller | |
BYTES_PER_PIXEL = 4 # RGBA, 8 bit | |
def div_roundup(x,y): |
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
# Today the twitter user @ayubio said he had received the private key for a Brazillian bank's HTTPS certificate: | |
# - https://twitter.com/ayubio/status/994260981294469120 | |
# - https://twitter.com/ayubio/status/994262029929246722 | |
# - https://twitter.com/ayubio/status/994277992351391744 | |
# To prove he actualy had the key, another user asked him to sign a message with such key and so he did: | |
# - http://pastebin.xyz/p?q=bXllODA | |
# The commands bellow will check that signature | |
# Store the message in a file (tweet.txt) in the same way @ayubio did: |
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
import certstream | |
keywords = ['paypal', 'paypol'] | |
def extract_domains(domains): | |
res = [] | |
for domain in domains: | |
for keyword in keywords: | |
if keyword in domain: | |
res.append(domain) |
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
Objective: compare Task<T> vs ValueTask<T> in a scenario that should | |
be ideal for ValueTask<T> - non-trivial results, but usually (always) | |
already completed. | |
Hypothesis: ValueTask<T> should be more efficient, as it does not (in | |
the "already completed" case) involve allocation. | |
Methodology: create a test rig that computes a number using multiple | |
nested roll-up operations, comparing sync vs async-Task<T> vs async-ValueTask<T>; | |
use "async"/"await" for the rollups in the async cases. Run all tests using |
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
public static void Main() | |
{ | |
var paraCadastrar = new [] | |
{ | |
new { Chave = "CSVDEFAULT", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "JSONDEFAULT", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "YAML", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "INIT", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "CONFIG", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "BSON", Descricao = "Descrição detalhada (ou não)" }, |
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
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
NewerOlder