I hereby claim:
- I am szampardi on github.
- I am szampardi (https://keybase.io/szampardi) on keybase.
- I have a public key whose fingerprint is C82B 9604 7310 0D65 E181 5FC1 9EDA 6A85 887E FB0B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FROM ubuntu:bionic | |
SHELL ["/bin/bash", "-xeo", "pipefail", "-c"] | |
RUN export DEBIAN_FRONTEND=noninteractive; \ | |
apt-get update; \ | |
apt-get dist-upgrade -yqq; \ | |
apt-get install -yqq --no-install-recommends python3-pip python3-setuptools; \ | |
pip3 install --no-cache beets pylast | |
ENTRYPOINT ["/usr/bin/beet"] |
#!/bin/bash -ex | |
# https://developers.google.com/android/ota#redfin | |
export DEVICE=${1:-redfin} | |
# https://grapheneos.org/releases#redfin-stable | |
export TAG_NAME=${2} | |
export PATCH_LEVEL=$(cut -d'.' -f1,2,3 <<<"${TAG_NAME}") | |
_patch_level=$(tr '[:upper:]' '[:lower:]' <<<"${PATCH_LEVEL}") | |
mkdir grapheneos |
# vc_redist.x64.exe 2015 | |
# https://www.microsoft.com/en-us/download/details.aspx?id=48145 | |
#!/bin/bash | |
cd /home/${USER}/.steam | |
#rm -fr steam/steamapps/common/AoE2DE/resources/_common/movies | |
#rm -fr steam/steamapps/common/AoE2DE/resources/en/campaign/movies | |
find steam/steamapps/common/AoE2DE -type d -name movies -exec rm -vrf {} \; |
curl -sL -F formtype=simple -F [email protected] http://www.speech.cs.cmu.edu/cgi-bin/tools/lmtool/run | grep -o 'http*://[^"]*' |
#!/bin/bash -e | |
# gpus.json | |
# to find out uuid, first match PCI port with GPU UUID | |
# #> lspci -vnn | grep VGA -A 2 && cat /proc/driver/nvidia/gpus/*/information | |
# then confirm | |
# #> nvidia-smi -L | |
if [[ -z ${1} ]] || [[ ! -s ${1} ]]; then | |
printf 'must provide json config file with first argument\n' |
package main | |
import ( | |
"encoding/hex" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"os/signal" |
#!/usr/bin/env bash | |
CORTEX_CRYPTO="aes-256-cbc" | |
_cortex_logger() { printf '{%s}[%s](%s):%s\t%s\n' "$(date -u '+%FT%TZ')" "${1}" "$(caller)" "${2}" "${@:3}" 1>&2; } | |
_cortex_io() { | |
case "${CORTEX_FILE}" in | |
"") _cortex_logger "$(caller)" ERR "CORTEX_FILE environment variable is empty/unset" && return 127 ;; | |
*) |
package main | |
import ( | |
"bufio" | |
"context" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"os" | |
"strconv" |
#!/bin/bash -ex | |
_gpio="${1}" | |
_direction="${2:-out}" | |
if [[ ! -d /sys/class/gpio/gpio"${_gpio}" ]]; then | |
echo "${_gpio}" >/sys/class/gpio/export | |
fi | |
echo "${_direction}" >/sys/class/gpio/gpio"${_gpio}"/direction |