Installing mysql2
gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.
Make sure mysql-client
, openssl
and zstd
are installed on Mac via Homebrew.
Replace
mysql-client
with whichever mysql package you are using
# ActiveJob natively captures constructor arguments in an `@arguments` instance variable | |
# which is also exposed as an `arguments` property on each job instance. | |
# | |
# Calls to `perform_now` and `perform_later` both forward arguments to the constructor. | |
# | |
# For example, all of these invocation styles work. | |
# | |
# result = DoStuffJob.new("foobar").perform # sync | |
# result = DoStuffJob.new.perform("foobar") # sync | |
# result = DoStuffJob.perform_now("foobar") # sync |
""" | |
Built on top of this gist by @karpathy: | |
https://gist.github.com/karpathy/00103b0037c5aaea32fe1da1af553355 | |
stable diffusion dreaming over text prompts | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stable_diffusion_walk.py --prompts "['blueberry spaghetti', 'strawberry spaghetti']" --seeds 243,523 --name berry_good_spaghetti |
""" | |
stable diffusion dreaming | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry | |
to stitch together the images, e.g.: | |
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4 |
import "AssetLedger.sol"; | |
// TODO describe rules of exchange. | |
// In the AF market all users benefit from a "last look" facility to prevent | |
// them falling foul of mechanical arb sniping by those exploiting the way | |
// the blockchain and smart contract data lags the real markets being tracked. | |
// The system proceeds through a series of batching steps, which in practice | |
// might correspond to some number of blocks (for example, each batching step | |
// corresponds to a block). Orders collected in batching step B_i are initially | |
// in a "pending" state although visible within the book. Orders then remain |
#!/usr/bin/env ruby | |
require "nokogiri" | |
require "open-uri" | |
require "json/add/struct" | |
require "logger" | |
require "typhoeus" | |
if ARGV[0] =~ /-{1,2}h(elp)?/ | |
puts "Usage: ./%s subdomain-name" % $0 |
// | |
// The new assembly support in Solidity makes writing helpers easy. | |
// Many have complained how complex it is to use `ecrecover`, especially in conjunction | |
// with the `eth_sign` RPC call. Here is a helper, which makes that a matter of a single call. | |
// | |
// Sample input parameters: | |
// (with v=0) | |
// "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad", | |
// "0xaca7da997ad177f040240cdccf6905b71ab16b74434388c3a72f34fd25d6439346b2bac274ff29b48b3ea6e2d04c1336eaceafda3c53ab483fc3ff12fac3ebf200", | |
// "0x0e5cb767cce09a7f3ca594df118aa519be5e2b5a" |
Your firewall must allow the following ports. TCP ports must allow incoming connections and the UDP port must allow both incoming and outgoing connections.
Mainnet:
Purpose | Protocol | Port | Flag |
---|---|---|---|
DHT | UDP | 18467 | -p |
REST | TCP | 18469 | -r |
WS | TCP | 18466 | -w |
Heartbeat | TCP | 18470 | -b |
Userstyles to the monospace fonts on certain sites and the Firefox Devtools, etc., to Fira Code. | |
I don't write userstyles very often, so these may not be particularly effecient or sensible. But at least they work. Corrections welcome! | |
Stylish of Firefox (at least) allows importing userstyles from arbitrary urls. It doesn't auto-update though, but mays till be easier than pasting by hand? :shrug: |
# for redirecting hhtp traffic to https version of the site | |
server { | |
listen 80; | |
server_name example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
# for redirecting to non-www version of the site | |
server { | |
listen 80; |