Skip to content

Instantly share code, notes, and snippets.

View artob's full-sized avatar
⌨️
Coding

Arto Bendiken artob

⌨️
Coding
View GitHub Profile
@itzmeanjan
itzmeanjan / Cargo.toml
Last active March 19, 2025 11:29
😎 Parallel Matrix Multiplication on GPU, using Rust Vulkan Compute API of `vulkano` 🚴🏼
[package]
name = "gpu-matrix-multiplication"
version = "0.1.0"
edition = "2024"
rust-version = "1.85.0"
[dependencies]
vulkano = "=0.35.1"
vulkano-shaders = "=0.35.0"
rand = "=0.8.4"
@yyolk
yyolk / GH-CF-strict-SSL-w-CDN.md
Created August 27, 2021 19:48 — forked from zbeekman/GH-CF-strict-SSL-w-CDN.md
Setting up GH-pages with custom domain, strict (end-to-end) SSL with CloudFlare DNS & CDN

Custom domains, GH-pages, Cloudflare and strict SSL end-to-end encryption

Why I wrote this

Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and

Irreducible control flow in Wasm

This is a summary of current discussions, and a follow-up to our recent meetings, prompted by the issue here. Anyone who's been following along with the last few weeks of discussions and presentations might wish to skip directly to the follow-up part.

What is irreducible control flow?

Reducible control flow is the control flow directly representable through semi-structured control flow constructs (loops, conditionals, and break/continue). It can be characterised in terms of a property of the control flow graph that all loops are single-entry. For more details, see the diagram and "Reducibility" subsection here.

Irreducible control flow is roughly "everything else". For example, goto into the middle of a loop would result in irreducible

@hdriqi
hdriqi / check-nft-snippet.js
Created March 5, 2021 00:32
Check NFT Balance on Paras
const { keyStores, connect } = require('near-api-js')
const getConfig = (env, contractName) => {
if (!contractName) {
throw '[env] contractName not found'
}
switch (env) {
case 'mainnet':
return {
@gballet
gballet / blockhash.csv
Last active April 29, 2021 13:28
List of contracts calling instructions BLOCKHASH and DIFFICULTY up to block 11555359
contract address opcode count
340113cd9eceedc5ae1f08bc391f120daf53277a 4147134
f5ae0e27cf423b1ed6513c3ca35cc14c22ee66fd 3677603
f0155486a14539f784739be1c02e93f28eb8e960 3493554
00868b5f38673a0c6804a4e1c130b7676177bb48 2665302
d1ceeeeee83f8bcf3bedad437202b6154e9f5405 2463296
f97e0a5b616dffc913e72455fde9ea8bbe946a2b 2424092
3401cab9bee49bcb76e13a8a09619e53d45c0af0 1414773
b77feddb7e627a78140a2a32cac65a49ed1dba8e 923262
6f6deb5db0c4994a8283a01d6cfeeb27fc3bbe9c 776227
@MichaelCurrin
MichaelCurrin / install-ruby-bundler.md
Last active February 3, 2025 02:40
Install Ruby 3 and Bundler

Install Ruby 3 and Bundler

Resources:

1. Install Ruby

@artob
artob / links.md
Last active November 12, 2020 07:00
Links for my 2020-11-11 presentation
@artob
artob / xref.md
Created November 6, 2020 15:51
Solidity Hard-Fork Cross Reference
[Solidity] [Default Target] [OpenEthereum]
0.7.4 Istanbul 2.6.6+
0.7.3 Istanbul 2.6.6+
0.7.2 Istanbul 2.6.6+
0.7.1 Istanbul 2.6.6+
0.7.0 Istanbul 2.6.6+
0.6.12 Istanbul 2.6.6+
0.6.11 Istanbul 2.6.6+
0.6.10 Istanbul 2.6.6+
{
"agreement": {
"title": "I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.",
"type": "boolean",
"required": true
}
}
@pirate
pirate / docker-compose.yml
Last active December 7, 2024 19:10
Example networking sidecar ingress containers for Cloudflare Argo, Wireguard, Tailscale, LetSencrypt, Caddy, and SOCKS/SSH tunnel containers in Docker Compose.
# Example networking sidecar ingress containers for Cloudflare Argo, Wireguard, Tailscale, LetSencrypt, Caddy, and SOCKS/SSH tunnel containers in Docker Compose.
# https://gist.github.com/pirate/1996d3ed6c5872b1b7afded250772f7c
# Goes well with these docker-compose database container examples:
# https://gist.github.com/pirate/1fafaa18a47254f388aa5c0f79f7d263
version: '2.4'
services:
demo: