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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/mac/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
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
Ensure LF is used for everything: | |
git config --global core.eol lf | |
git config --global core.autocrlf input | |
Run this: | |
git config --global core.excludesfile ~/.gitignore_global | |
Add this to ~/.gitignore_global: | |
/.vagrant | |
/node_modules |
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
<?php | |
// composer require --dev friendsofphp/php-cs-fixer | |
// vendor/bin/php-cs-fixer fix --show-progress=dots --diff | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'@PHP81Migration' => true, |
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/sh | |
# Install the Chrome Binary release to support Chrome-based API. | |
# The binary will be available at this path: /usr/bin/google-chrome-stable | |
# Copyright 2017-present: Intoli, LLC | |
# Source: https://intoli.com/blog/installing-google-chrome-on-centos/ | |
# | |
# Redistribution and use in source and binary forms, with or without |
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
<?php | |
use Illuminate\Support\Collection; | |
/** | |
* This macro will help you turn any nested array into an associative array, | |
* where each element is represented with dot notation. | |
* | |
* For example: | |
* |
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
// Create a smol embedding; CloudflareWorkersAIEmbeddings is provided by langchain | |
function setupEmbeddings(env: Env): CloudflareWorkersAIEmbeddings { | |
return new CloudflareWorkersAIEmbeddings({ | |
binding: env.AI as unknown as Fetcher, | |
modelName: '@cf/baai/bge-small-en-v1.5', | |
stripNewLines: true, | |
onFailedAttempt: (error) => { | |
console.log('Failed attempt on embed', error); | |
} | |
}); |
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
default_template: | | |
**{title}** | |
{snippet} | |
{link} (via {name}) | |
feeds: | |
- url: https://hnrss.org/frontpage | |
name: HackerNews | |
channels: | |
- telegram:technews |
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
h1 { | |
font-size: 130%; | |
} | |
h2 { | |
font-size: 110%; | |
margin-bottom: 0px; | |
} | |
li, a, h3 { |
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
<artifacts_info> | |
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
# Good artifacts are... | |
- Substantial content (>15 lines) | |
- Content that the user is likely to modify, iterate on, or take ownership of | |
- Self-contained, complex content that can be understood on its own, without context from the conversation | |
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
- Content likely to be referenced or reused multiple times |
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
### Keybase proof | |
I hereby claim: | |
* I am rennokki on github. | |
* I am alexrenoki (https://keybase.io/alexrenoki) on keybase. | |
* I have a public key ASCb0AnFZbyFJXJfLcz4XG83nR4qFTJ3EAY5abTKmned_Qo | |
To claim this, I am signing this object: |