WIF = base58check encode ([version byte][private key][checksum])
version byte = 80 for mainnet, ef for testnet and regtest
checksum = first 4 bytes of double SHA256 of private key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git pull" \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System: MacOS Sonoma 14.1.2 | |
First, try to unplug and plug back the Yubikey. | |
Second, try rebooting the system. | |
Make sure `opensc` package is up to date. I am using Macports to install utilities/libraries and other command-line utils. | |
``` | |
$ sudo port upgrade opensc | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gst-launch-1.0 -e v4l2src device=/dev/video0 do-timestamp=true ! 'video/x-raw, width=640, height=480, framerate=30/1' ! tee name=t \ | |
t. ! queue ! videoconvert ! autovideosink \ | |
t. ! queue leaky=downstream ! videoconvert ! x264enc tune=zerolatency speed-preset=ultrafast key-int-max=30 byte-stream=true ! splitmuxsink muxer=mp4mux location=output.mp4 | |
Notes: | |
x264enc appears to be not playing nice with streams. Removing its options blocks the pipeline. Replacing it with vaapih264enc works but then splitmuxsink has to be replaced with filesink for some reason... | |
vaapih264enc enables hardware acceleration on systems with Intel hardware. The plugin is available if you install an extra package: sudo apt install gstreamer1.0-vaapi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String, Date, insert, select | |
import datetime | |
# Create in-memory SQLite engine | |
engine = create_engine("sqlite:///:memory:", echo=False, future=True) | |
# Define table | |
metadata = MetaData() | |
cities = Table( | |
'cities', |
OlderNewer