This file contains hidden or 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 | |
# Save screenshot with timestamp to Desktop | |
filename="$HOME/Pictures/Screens/Screenshot_$(date +%Y-%m-%d_%H.%M.%S).png" | |
screencapture -i "$filename" | |
# Copy the new file to clipboard if it exists (only if you didn't cancel the screenshot) | |
if [ -f "$filename" ]; then | |
osascript -e 'set the clipboard to (read (POSIX file "'"$filename"'") as TIFF picture)' | |
fi |
This file contains hidden or 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
#### ..# #### | |
## . ..## ### #####.## | |
### # ##. ## .## .. ####.# | |
##.###.##.# ### ## ## ##_ | |
####_#_ # ## ## -##__/ | |
### \ # ## ## ## # | |
| v / | |
| |_# | |
##_____/ O k_#k | |
##-_____ | |
This file contains hidden or 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
# Copyright (c) Meta Platforms, Inc. and affiliates. | |
# This software may be used and distributed according to the terms of the GNU General Public License version 3. | |
# | |
# UPDATE from Shawn (Mar 5 @ 2:43 AM): Facebook disabled this URL. I've mirrored the files to an R2 bucket, which this script now points to. | |
# | |
#PRESIGNED_URL="https://dobf1k6cxlizq.cloudfront.net/*?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kb2JmMWs2Y3hsaXpxLmNsb3VkZnJvbnQubmV0LyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NzgzNzA1MjR9fX1dfQ__&Signature=a387eZ16IkmbotdkEl8Z397Mvxhw4Bvk4SpEiDkqMLOMVMk5F962BzN5eKO-061g5vAEskn-CSrf4w3knubwPiFW69LTsJ8Amj-WOvtBOBy9soc43j77WGUU-3q2eNjMIyNZYsD~rub4EkUJGNpD61YtRrFvAU7tNQ1YMNL5-UUOk1~OHeaWerWisKPldufOyX6QdrrjeToVH1L0eGm1Ob4LnoYyLH96BHFou4XsOUR8NuyQfwYtmE2G6P2eKk~OV9-ABzYHxC2DyOWiWnt7WO~ELHnf17s9qreQAjEkCGEi4pHJ7BIkg6~ZfRmvRl3ZaPtqD80AH4SfO4hd5WQ0ng__&Key-Pair-Id=K231VYXPC1TA1R" # replace with presigned url from email | |
PRESIGNED_URL="https://agi.gpt4.org/llama/ |
This file contains hidden or 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
DB_FILE=example-2fa-db.txt | |
# use fuzzyfinder to search for which service to use | |
LINE="$(cut -d: -f1 $DB_FILE | fzf)" | |
# get the private key of line | |
AUTH_CODE="$(grep "^$LINE:" $DB_FILE | cut -d: -f2-)" | |
# print the temporary 2fa code | |
echo "$(oathtool -b --totp "$AUTH_CODE")" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
1 | |
00:00:00,000 --> 00:00:08,780 | |
Hello, everyone, and welcome to Module 10 of the Machine Learning course, which is about | |
2 | |
00:00:08,780 --> 00:00:15,000 | |
data generation or synthesis. | |
3 | |
00:00:15,000 --> 00:00:21,000 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
// translates dynamic-length hamming codes into raw data | |
function hamming(n) { | |
const s = n.length | |
let o = "" | |
let errors = [] | |
for (let i = 1; i < s; i++) { | |
const pw2 = !( i & (i - 1) ) // is power of two | |
if (!pw2) { | |
o += n[i] | |
} else { |
This file contains hidden or 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 { Collapse } from "antd"; | |
import React, { FC, PropsWithChildren } from "react"; | |
import styles from "./styles.module.scss"; | |
interface Props { | |
expanded: boolean; | |
} | |
export const HeadlessCollapse: FC<PropsWithChildren<Props>> = ({ | |
expanded, | |
children, |
NewerOlder