AES128 uses a 16 byte secret key.
const key = new Uint8Array(16);
crypto.getRandomValues(key);
/* | |
the twitter api is stupid. it is stupid and bad and expensive. hence, this. | |
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes. | |
When finished, it downloads a JSON file containing the raw text content of every bookmark. | |
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please? | |
*/ |
# Script runs on mac. Would need to be adapted to run on windows. | |
require 'sqlite3' | |
require 'json' | |
require 'zip' | |
require 'tmpdir' | |
require 'find' | |
# Function to unzip the file | |
def unzip_file(file, destination) |
# Bun is now officially supported and these environments variables are no longer needed. Keeping this gist for legacy purposes. | |
# SKIP_DEPENDENCY_INSTALL=true | |
# UNSTABLE_PRE_BUILD=asdf install bun latest && asdf global bun latest && bun i |
""" | |
The code below combines approaches published by both @eugene-yh and @jinyongyoo on Github. | |
Thanks for the contributions guys! | |
""" | |
import torch | |
import peft |
type Primitive = | null | undefined | string | number | boolean | symbol | bigint; | |
type LiteralUnion<LiteralType, BaseType extends Primitive,> = LiteralType | (BaseType & Record<never, never>); | |
export interface Shopify { | |
PaymentButton: { | |
init(): any | |
} | |
autoloadFeatures(param: any): any | |
/** | |
* Only show in Theme previews, it's a class instance, yuck. |
In this guide, I'll show you how to create a Bash script that generates a short poem based on the changes made in your Git repository and uses it as a commit message. We'll integrate the OpenAI API to generate the poems and override the git commit -m
command to use our custom script.
Create a file called poetic_commit.sh
and paste the following code:
#!/bin/bash
# Save your OpenAI API Key in the OPENAI_API_KEY variable
I will not be responsible on any inconvenience / damage / loss on behalf this tutorial nor the modified Apple Music Preview bundle.
Only for research purposes.
System / Package Name | Version |
---|
Guide updated to use the official installation .iso from Microsoft, which finally became available in Dec. 2024! For the VHDX disk image based guide check an earlier version of this gist.
When following this guide on a host not capable of aarch64 virtualization, replace -cpu host -accel kvm
with -cpu max
.
qemu-img create -f qcow2 win11.qcow2 25G
html { | |
--max-width: 1200px; | |
--columns: 6; | |
--gutter: 1.5rem; | |
} | |
* { | |
--grid: minmax(var(--gutter), 1fr) | |
repeat( | |
var(--columns), | |
minmax( |