Skip to content

Instantly share code, notes, and snippets.

View rennokki's full-sized avatar
📦
Tired or worn out, I get it done.

Alexander G. rennokki

📦
Tired or worn out, I get it done.
View GitHub Profile
### 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:
@rennokki
rennokki / claude_3.5_sonnet_artifacts.xml
Created July 24, 2024 16:00 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<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
h1 {
font-size: 130%;
}
h2 {
font-size: 110%;
margin-bottom: 0px;
}
li, a, h3 {
@rennokki
rennokki / rssfeeds.yaml
Last active October 25, 2024 04:49
RSS Feeds
default_template: |
**{title}**
{snippet}
{link} (via {name})
feeds:
- url: https://hnrss.org/frontpage
name: HackerNews
channels:
- telegram:technews
@rennokki
rennokki / code.ts
Last active October 10, 2023 07:52
// 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);
}
});
<?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:
*
#!/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
@rennokki
rennokki / .php-cs-fixer.php
Last active May 2, 2022 15:24 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Coding Style Ruleset
<?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,
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
@rennokki
rennokki / .zshrc
Last active November 6, 2020 19:05
# 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