Check system arch:
$ arch
armv7l
Check docker info:
$ docker info 2>/dev/null |grep 'OSType:\|Arch'
OSType: linux
Architecture: armv7l
Check system arch:
$ arch
armv7l
Check docker info:
$ docker info 2>/dev/null |grep 'OSType:\|Arch'
OSType: linux
Architecture: armv7l
import board | |
import busio | |
import digitalio | |
import time | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K | |
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket | |
import adafruit_requests as requests | |
SPI0_SCK = board.GP18 | |
SPI0_TX = board.GP19 |
Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat
the TGZs, and extract:
$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -
You don't even need to use brace expansion. Globbing will order the files numerically:
$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -
#!/usr/bin/env bash | |
set -o xtrace | |
set -o errexit | |
set -o nounset | |
if ! [ -x "$(command -v eyeD3)" ]; then | |
# ubuntu package is old, try `pip install eyeD3[display-plugin]` | |
sudo apt install eyed3 | |
fi | |
audio="${1}" |
I hereby claim:
To claim this, I am signing this object:
<templateSet group="surround"> | |
<template name="desc" value="describe("$END$") { $SELECTION$ } " description="Surround with describe block" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="SCALA_STRING" value="false" /> | |
<option name="SCALA_COMMENT" value="false" /> | |
<option name="SCALA_XML" value="false" /> | |
<option name="SCALA" value="true" /> | |
</context> | |
</template> | |
<template name="it" value="it("should $END$") { $SELECTION$ } " description="Surround with it block" toReformat="true" toShortenFQNames="true"> |
/* | |
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o xtrace | |
#requires curl and jq | |
auth="Authorization: token YOUR_SECRET_OAuth_TOKEN" | |
declare -i pages |
export ORACLE_HOME=/usr/lib/oracle/12.1/client64 | |
export TNS_ADMIN=$ORACLE_HOME/network/admin |