Skip to content

Instantly share code, notes, and snippets.

View mrsipan's full-sized avatar

mrsipan mrsipan

View GitHub Profile
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJJZ5toO694nI4nX4zxlqVxlMVo11umHQd1dkkmlYcJ1 6@gmail.com
@mrsipan
mrsipan / ed2.age
Created July 1, 2026 14:03
ed2_personal
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNjcnlwdCA1VzlUc0xSRkVlbEZlZ2J4
bkhTS2lRIDE4ClZNWmxuNURnb3pvaStjTE5LTWJjVEpsdURGRjh0aUJoQUpVNlo3
UTBxbE0KLS0tIHB1WUYyN1dHa0p6dWsvb2FVQlFVdE1ELzNpRmdZWnphRjBhYVdJ
WnA4M3cKhGTbKUbjDdtjvt5asO6hKGmSsRd0coG518+lgkz2WvfTaqAamAF8+g74
A9tjS+85BCvoHgVZzmvUKi1FXlOdp+Sc2Qqd2j6b6Vy+5b5riXZbLVCcxV9erwRg
VqAvBJlMcmDKkDckXY5zvYr8yXHH/AU6ZYqgitZGs5l2l0WqvECUo+pQ7oQ9F8qx
Eyg4CUEovHoTj2c1LaEyLjfdMBtsC5Epv4E9q8djaK/eHr5N/TcQRmFT9p/jJ9EQ
VMN6vTH8VkaFrFD4Tun7EYvLVP6Sm5+Cuw69F04oY4htyw2D2T+Wxp9gJxPai/BI
8EBad7M/F2JxBYP558eW1FicanCkcNKMhNpor9RrRl5bhdlSGOf/Jiyg9f5+b/an
@mrsipan
mrsipan / list-git-files.sh
Created October 17, 2025 15:51
List git files
#!/usr/bin/env dash
# Ensure we're in a Git repository
if [ ! -d .git ]; then
printf "%s\n" "This is not a Git repository."
exit 1
fi
find . -type f ! -path "./.git/*" | while read -r file; do
printf "~~~~~ File: %s ~~~~~\n" $file
[style]
# Align closing bracket with visual indentation.
align_closing_bracket_with_visual_indent=True
# Allow dictionary keys to exist on multiple lines. For example:
#
# x = {
# ('this is the first element of a tuple',
# 'this is the second element of a tuple'):
# value,
from pprint import pprint as pp
#import bs4
import datetime
#import inscripts
#import lxml
import os
#import pexpect
import random
import re
# import requests
#+LATEX_COMPILER: xelatex
# #+LATEX_COMPILER: lualatex
#+LATEX_CLASS_OPTIONS: [8pt,twocolumn]
#+LATEX_HEADER: \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{setspace}
# #+LATEX_HEADER: \doublespacing
# #+LATEX_HEADER: \onehalfspacing
#+LATEX_HEADER: \singlespacing
#+LATEX_HEADER: \usepackage[scaled]{helvet}
#+LATEX_HEADER: \usepackage{fontspec}
# #+latex_compiler: lualatex
#+latex_compiler: xelatex
#+latex_class_options: [12pt]
#+latex_header: \usepackage{setspace}
#+latex_header: \onehalfspacing
# #+latex_header: \doublespacing
#+latex_header: \usepackage[scaled]{helvet}
#+latex_header: \usepackage{fontspec}
# #+latex_header: \setmainfont{Red Hat Text}
#+latex_header: \setmainfont{Fira Sans}
vim9script
silent! source $VIMRUNTIME/defaults.vim
set nocompatible
set autoindent
set background=dark
set backspace=indent,eol,start
set cinoptions=:0,l1,g0,t0,+.5s,(.5s,u0,U1,j1
set encoding=utf-8
set history=999
set incsearch
from oauth2client import client
from googleapiclient import sample_tools
import sys
import argparse
def main(argv=sys.argv):
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--draft', dest='isDraft', action='store_true',
@mrsipan
mrsipan / vicuna.sh
Created April 18, 2023 04:32
llama.cpp for vicuna commands and prompt
./main --color --threads 7 --batch_size 256 --n_predict -1 --top_k 12 --top_p 1 \
--temp 0.36 --repeat_penalty 1.05 --ctx_size 2048 --instruct \
--reverse-prompt "### Human:" \
--model ./models/13B/ggml-vicuna-13b-4bit.bin \
-f prompts/vicuna.txt
printf 'A chat between a curious human and an artificial intelligence assistant.
The assistant gives helpful, detailed, and polite answers to the human's questions.' > prompts/vicuna.txt