Keybase proof
I hereby claim:
- I am bergkvist on github.
- I am bergkvist (https://keybase.io/bergkvist) on keybase.
- I have a public key ASBysYhr038dSRqnPQ75tCcXQcZsSK-JnXxg9XLlCJQ5Mgo
To claim this, I am signing this object:
pragma solidity ^0.5.0; | |
contract PackageTracking { | |
struct Place { | |
bool exists; | |
string country; | |
string location; | |
} | |
struct Package { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
s="$(nvidia-settings -q CurrentMetaMode -t)" | |
MODE="${1:-On}" | |
if [[ "${s}" != "" ]]; then | |
s="${s#*" :: "}" | |
nvidia-settings -a CurrentMetaMode="${s//\}/, ForceCompositionPipeline=$MODE, ForceFullCompositionPipeline=$MODE\}}" | |
fi | |
from IPython.core.magic import register_cell_magic | |
import multiprocessing as mp | |
from functools import wraps | |
import importlib.util | |
import traceback | |
import sysconfig | |
import tempfile | |
import secrets | |
import sys | |
import os |
#!/bin/sh | |
pip_index_url="example.com/pypi" | |
private_package="myprivatepackage" | |
personal_access_token="$1" | |
curl -k -s -L -o/dev/null -w"%{http_code}" --url "https://$pip_index_url/$private_package" --header "Authorization: Basic $(printf '%s' "$personal_access_token:" | base64)" | |
# To configure pip to use registry: | |
# export PIP_EXTRA_INDEX_URL="https://$personal_access_token@$pip_index_url" |
#!/bin/sh | |
build_and_run() { | |
cc main.c -o main -Wall -Wextra | |
./main | |
} | |
trap 'kill "$p" >/dev/null 2>/dev/null' INT | |
build_and_run & | |
p=$! |
// These require compiler support for statement expressions (https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html) | |
#define assert_ok(e) ({int x = (e); if (x < 0) { printf("%s:%d: ", __FILE__, __LINE__); fflush(stdout); perror(#e); abort(); } x;}) | |
#define assert_ptr(e) ({void* p = (e); if (p == NULL) { printf("%s:%d: %s: NULL pointer returned\n", __FILE__, __LINE__, #e); abort(); } p;}) |