This file contains 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 Anthropic from "@anthropic-ai/sdk"; | |
import type { MessageParam } from "@anthropic-ai/sdk/resources"; | |
import dotenv from "dotenv"; | |
import { Instructor } from "./instructor"; | |
import type { z } from "zod"; | |
dotenv.config(); | |
function sendToClaude<T>(message: MessageParam, schema: z.Schema<T>) { | |
const anthropicClient = new Anthropic({ |
This file contains 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 | |
set -e | |
###################################################################### | |
# This Bootstrap Script installs Dokku latest on Ubuntu (use LTS or latest) | |
# | |
# This script also installs UFW (firewall), some basic Dokku plugins, and | |
# raises ulimits. Comment out any step you wish to skip. | |
# | |
# IMPORTANT: This script also disables password authentication via SSH for |
This file contains 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
#!/usr/bin/env bash | |
PLUGIN_BASE='/opt/cisco/secureclient/bin/plugins' | |
read -r -d '' USAGE << EGASU | |
Usage: `basename $0` [-s|-e|-d|-h] | |
-s, --status Print Umbrella Roaming Security module status | |
-e, --enable Enable Umbrella Roaming Security module | |
-d, --disable Disable Umbrella Roaming Security module |
This file contains 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
#!/usr/bin/env bash | |
# Generates gource video (h.264) out of multiple repositories. | |
# Pass the repositories in command line arguments. | |
# Example: | |
# <this.sh> /path/to/repo1 /path/to/repo2 | |
# 960x540 is youtube resolution | |
RESOLUTION="960x540" | |
outfile="gource.mp4" | |
i=0 |
This file contains 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
"use strict"; | |
/** | |
* Hypertext Transfer Protocol (HTTP) response status codes. | |
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
*/ | |
enum HttpStatusCode { | |
/** | |
* The server has received the request headers and the client should proceed to send the request body |
This file contains 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
eval(z='p="<"+"pre>"/* ,.oq#+ ,._, */;for(y in n="zw24l6k\ | |
4e3t4jnt4qj24xh2 x/* =<,m#F^ A W###q. */42kty24wrt413n243n\ | |
9h243pdxt41csb yz/* #K q##H######Am */43iyb6k43pk7243nm\ | |
r24".split(4)){/* dP cpq#q##########b, */for(a in t=pars\ | |
eInt(n[y],36)+/* p##@###YG=[#######y */(e=x=r=[]))for\ | |
(r=!r,i=0;t[a/* d#qg `*PWo##q#######D */]>i;i+=.05)wi\ | |
th(Math)x-= /* aem1k.com Q###KWR#### W[ */.05,0<cos(o=\ | |
new Date/1e3/* .Q#########Md#.###OP A@ , */-x/PI)&&(e[~\ | |
~(32*sin(o)*/* , (W#####Xx######.P^ T % */sin(.5+y/7))\ | |
+60] =-~ r);/* #y `^TqW####P###BP */for(x=0;122>\ |
This file contains 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
\ | |
\ | |
\\ | |
\\ | |
>\/7 | |
_.-(6' \ | |
(=___._/` \ | |
) \ | | |
/ / | | |
/ > / |
This file contains 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
## (Install Homebrew if needed) | |
## /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
## Add GO paths to .bash_profile / .zsh etc | |
export GOPATH="${HOME}/.go" | |
export GOROOT="$(brew --prefix golang)/libexec" | |
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin" | |
## Install Go (Homebrew installed) | |
brew install go |
NewerOlder