Skip to content

Instantly share code, notes, and snippets.

# Copying these from: http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# split panes using | and -
bind d split-window -h
bind - split-window -v
unbind '"'
unbind %
set -g base-index 1
setw -g pane-base-index 1
@ashpreetbedi
ashpreetbedi / .zshrc
Created December 29, 2024 12:12
zshrc configuration
# Activate subl command by adding Sublime Text path to PATH
SUBL_PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin"
# Add Bun to path
export BUN_INSTALL="$HOME/.bun"
# Add global python to path
GLOBAL_PYTHON_PATH="/opt/homebrew/bin/python3.13"
export PATH=$GLOBAL_PYTHON_PATH:/opt/homebrew/bin:/usr/local/bin:$SUBL_PATH:$BUN_INSTALL/bin:$PATH
# enable direnv i.e. load env vars from a .envrc file in the current and parent directories.
eval "$(direnv hook zsh)"
@ashpreetbedi
ashpreetbedi / .tmux.conf
Last active December 29, 2024 10:34
Ashpreet's dotfiles
# Copying these from: http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# split panes using | and -
bind d split-window -h
bind - split-window -v
unbind '"'
unbind %
set -g base-index 1
setw -g pane-base-index 1
@ashpreetbedi
ashpreetbedi / HackerNews_AI.md
Created January 29, 2024 17:00
How to clone the Hackernews AI: https://hn.aidev.run

Follow these steps to run the HackerNews AI

Happy to answer any questions!

@ashpreetbedi
ashpreetbedi / gist:0a3b9b3e41111e97856af2dfa9e7dd94
Created November 27, 2023 11:12 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this.
It's much easier than you think and you'll be shocked by how relatively well it works with little work.
@ashpreetbedi
ashpreetbedi / csv_ai.py
Created November 15, 2023 23:41
CSV AI built using OpenAI Assistant API. Checkout https://docs.phidata.com/assistants for more info
import typer
from rich.prompt import Prompt
from phi.assistant import Assistant
from phi.assistant.thread import Thread
from phi.assistant.file.url import UrlFile
from phi.assistant.tool import CodeInterpreter
imdb_movie_data_s3 = UrlFile(
url="https://phi-public.s3.amazonaws.com/imdb/IMDB-Movie-Data.csv"
@ashpreetbedi
ashpreetbedi / conversation.py
Created September 30, 2023 18:21
A very simple LLM conversation
from phi.conversation import Conversation
conversation = Conversation()
if __name__ == "__main__":
conversation.print_response("Share a quick recipe for a healthy breakfast.")
@ashpreetbedi
ashpreetbedi / gist:bdeb4fc853fbe70a0b849df1cf873103
Created November 8, 2022 14:51 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: