Make sure you already have S3 bucket, access key and secret key before go through this notes.
Boto3 allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2.
pip install boto3
Stable Diffusion is an AI art generation model similar to DALLE-2. | |
Here are some prompts for generating art with Stable Diffusion. | |
Example: | |
- A ghostly apparition drifting through a haunted mansion's grand ballroom, illuminated by flickering candlelight. Eerie, ethereal, moody lighting. | |
- portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, smooth | |
- pirate, deep focus, fantasy, matte, sharp focus | |
- red dead redemption 2, cinematic view, epic sky, detailed, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful | |
- a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting, rpg portrait |
#!/usr/bin/env python3 | |
"""Contains code for parsing the IDL file.""" | |
from hashlib import sha256 | |
from keyword import kwlist | |
from dataclasses import dataclass, field, asdict, make_dataclass, fields as dc_fields | |
from types import MappingProxyType | |
from typing import List, Union, Optional, Dict, Any, Literal, Tuple, TypedDict, TypeVar, Type, Mapping, cast, Protocol | |
import re | |
import typing |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
#!/bin/bash | |
# list-of-addons-git.sh | |
# | |
# to be run inside of an openFrameworks project with 'addons.make' file. | |
# writes 'addons.git.make' - list addons and git repo urls, branches, and commits to 'addons.git.make' file | |
INPUT="addons.make" # addons list file | |
OUTPUT="addons.git.make" # output file |
/* | |
Generate SuperCollider file containing simple random pattern | |
*/ | |
( | |
// Time stamp | |
~stamp = Date.getDate.stamp; | |
// This goes in the duration key of the pattern | |
~dur = "Pseq(%)".format(Array.rand(10, 0.1,10.0)); |
In this scenario we are going to set up Vault to sign SSH keys using an internal CA. We will configure the SSH secrets engine and create a CA within Vault. We will then configure an SSH server to trust the CA key we just created. Finally we will attempt to SSH using a private key, and a public key signed by Vault SSH CA.
#!/bin/sh | |
# Darkify Slack on Mac OS or Linux. | |
# curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh | |
if [ "`uname -s`" = "Darwin" ]; then | |
SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
else | |
SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
fi |
import ch.bildspur.postfx.builder.PostFX; | |
import peasy.PeasyCam; | |
import processing.core.PApplet; | |
import processing.core.PShape; | |
import processing.core.PVector; | |
import processing.opengl.PShader; | |
import java.util.ArrayList; | |
public class MainApp extends PApplet { |
// zooming squares. by dave | |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |