It happens that there are many standards for storing cryptography materials (key, certificate, ...) and it isn't always obvious to know which standard is used by just looking at file name extension or file content. There are bunch of questions on stackoverflow asking about how to convert from PEM to PKCS#8 or PKCS#12, while many tried to answer the questions, those answers may not help because the correct answer depends on the content inside the PEM file. That is, a PEM file can contain many different things, such as an X509 certificate, a PKCS#1 or PKCS#8 private key. The worst-case scenario is that someone just store a non-PEM content in "something.pem" file.
This file contains 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
# CircuitPython USB MIDI to serial MIDI converter for Raspberry Pi Pico (RP2040). | |
# IMPORTANT! Should *only be used for MIDI in*, i.e. from USB devices to hardware | |
# MIDI synths, and *not* in the opposite direction. Doing so could risk damage to | |
# the microcontroller, your computer, or both. | |
# Wire a 10Ω resistor from the Tx pin on the Raspberry Pi Pico or other | |
# RP2040 board to the 3.5mm stereo jack tip, a 33Ω resistor from the 3v3 pin on | |
# the Raspberry Pi Pico to the 3.5mm stereo jack ring, and the ground pin on the | |
# Raspberry Pi Pico to the 3.5mm stereo jack sleeve. |
This file contains 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
tell application "Capture One 20" | |
set imageNames to "" | |
repeat with variantItem in (get selected variants) | |
-- Set the white balance to 2400K, -12 tint | |
set adj to (get adjustments of variantItem) | |
set temperature of adj to 2400 | |
set tint of adj to -12 | |
-- Set linear curve |
This file contains 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
import json | |
import nuke | |
def Matrix4toList(M): | |
mVals = [] | |
for i in range(len(M)): | |
mVals.append(M[i]) | |
return mVals | |
# --- load file --- |
This file contains 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
import sys | |
import struct | |
import binascii | |
# See https://github.com/f4exb/sdrangel/tree/master/plugins/samplesource/filesource | |
data = open(sys.argv[1], "rb").read() | |
out = open(sys.argv[2], "wb") | |
w = bytearray() |
This file contains 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
set cut_paste_input [stack 0] | |
version 5.2 v1 | |
Group { | |
inputs 0 | |
name HexGenerator | |
selected true | |
xpos -50 | |
ypos -482 | |
addUserKnob {20 HexGenerator} | |
addUserKnob {41 format T HexGenCalc.format} |
This file contains 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
// start the node server by doing: `node insta_login_check.js` | |
const puppeteer = require('puppeteer'); | |
const delay = require('delay'); | |
const user = { | |
username: '[email protected]', | |
password: 'passw0rd', | |
}; |
This file contains 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
#!/bin/bash | |
if [ ! -d files ]; then | |
# Make the content | |
echo "Generating root content.." | |
mkdir files | |
echo "$(date)" > files/date.txt | |
echo "Another content" > files/other.txt | |
fi | |
#These config are based by Nand device that you will use! |
For the LCD/Joystick HAT: https://www.waveshare.com/1.44inch-lcd-hat.htm
PIN Mapping:
Symbol | Raspberry Pi PIN (BCM) | Description |
---|---|---|
KEY1 | P21 | Button 1/GPIO |
KEY2 | P20 | Button 2/GPIO |
KEY3 | P16 | Button 3/GPIO |
Joystick Up | P6 | Joystick Up |
This file contains 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
import requests | |
import hashlib | |
import time | |
import uuid | |
import os | |
import copy | |
import json | |
# Fixed up version of my previous code to work with the Cloud endpoints. | |
# Hopefully this works. |
NewerOlder