| metadata | ||
|---|---|---|
|
This document outlines specific conventions and practices for developing the PM tool itself. These supplement any general guidelines provided by the pm welcome command.
| Aaroon (from Aaron) | |
| Androow (from Andrew) | |
| Barooy (from Barry) | |
| Brooan (from Brian) | |
| Carooline (from Caroline) | |
| Chroostopher (from Christopher) | |
| Daroothy (from Dorothy) | |
| Derook (from Derek) | |
| Edrooward (from Edward) | |
| Eroic (from Eric) |
| # Generate private key | |
| openssl genpkey -algorithm Ed25519 -out private.pem | |
| # Derive public key | |
| openssl pkey -in private.pem -pubout -out public.pem | |
| # Generate signature | |
| openssl pkeyutl -sign -inkey private.pem -rawin -in data_to_sign.txt -out signature.sig | |
| # Verify signature |
| import React, { useState, useEffect } from 'react'; | |
| const DotGridEncoder = () => { | |
| // State variables for customization | |
| const [text, setText] = useState('life is war'); | |
| const [dotSize, setDotSize] = useState(4); | |
| const [gridSpacing, setGridSpacing] = useState(8); | |
| const [encoding, setEncoding] = useState('binary'); // 'binary', 'ascii', 'morse' | |
| const [colorScheme, setColorScheme] = useState('monochrome'); // 'monochrome', 'gradient', 'rainbow' | |
| list_files() { | |
| local dir="$1" | |
| if [ -z "$dir" ]; then | |
| echo "Usage: list_files <directory>" | |
| return 1 | |
| fi | |
| find "$dir" -type f -not -path '*/\.*' | sed 's|^|@/|' | |
| } |
This can be used to create a gist with the contents of a directory, using a custom "ignore" file to filter out unwanted files.
The reason someone might want to do this is if they want to snapshot a directory for future reference but doesn't want to go through the hassle of setting up a full-fledged repository for it.
To use this, in a git repo create your .gistignore file, then run the commands in snapshot.sh.
To download a gist that was created in this way, run the commands in clone.sh.
| import marimo | |
| __generated_with = "0.10.9" | |
| app = marimo.App() | |
| @app.cell | |
| def _(): | |
| import marimo as mo | |
| return (mo,) |
| use std::{ | |
| sync::Arc, | |
| time::{Duration, Instant, SystemTime, UNIX_EPOCH}, | |
| }; | |
| use anyhow::{Context, Error}; | |
| use async_trait::async_trait; | |
| use ic_agent::{export::Principal, identity::AnonymousIdentity, Agent}; | |
| use rand::{rngs::StdRng, SeedableRng}; | |
| use rsa::{ |
| #!/usr/bin/python | |
| from __future__ import absolute_import, division, print_function | |
| import http.client | |
| import socket | |
| import ssl | |
| import time | |
| from ansible.module_utils.basic import AnsibleModule | |
| __metaclass__ = type |