I hereby claim:
- I am commiebstrd on github.
- I am commiebstrd (https://keybase.io/commiebstrd) on keybase.
- I have a public key whose fingerprint is CB35 C786 56F1 71B7 7CEB 8D24 6E2F 7CA1 6E1C 8F68
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import socket | |
class my_sock(): | |
def __init__(self): | |
self.host = "" # hostname\IP | |
self.port = 0 # port | |
self.af_inet = socket.AF_INET # sock type | |
self.proto = socket.SOCK_STREAM # sock proto |
Basic setup taken from The Path to Rust on the Web
rustup target add wasm32-unknown-emscripten
brew install emscripten
brew install clang nodejs git
- for llvmcargo build --target=wasm32-unknown-emscripten
claims to work but no wasm or js are created
emcc -v
complains about system llvm not having wasm target#![feature(asm)] | |
fn calc() -> usize { | |
let mut a: usize = 0; | |
unsafe { | |
asm!(/* Instructions: for(i=10; 0<i; i--){ a+=i } */ | |
"mov rcx, 10\n\t" /* rcx = 10 - i - counter */ | |
"xor rax, rax\n\t" /* rax = 0 - a - storage */ | |
"loop:\n\t" /* label */ | |
"add rax, rcx\n\t" /* rax+=rcx */ |
build: | |
gcc -o bin main.c pipe.c patch.c | |
clean: | |
rm -f bin |
#!env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import string | |
import logging | |
from random import randint | |
from pprint import pprint | |
def get_random(val, max): |
fdisk /dev/sda
g
# efi partition