Skip to content

Instantly share code, notes, and snippets.

View rsmets's full-sized avatar
🖖
greetings

Ray Smets rsmets

🖖
greetings
  • Unum ID
  • San Francisco, CA
View GitHub Profile
@rsmets
rsmets / razor.zsh-theme
Last active November 4, 2023 17:39
My custom (and favorite) zsh shell theme.
# Great Scott! Aliens, arrows and paths!
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}|%{$reset_color%}%{$reset_color%}%{$fg_bold[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}%{$fg_bold[blue]%}|%{$reset_color%}👽"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}%{$fg_bold[blue]%}|"
# Create a function to get the prompt path and show absolute path when in $HOME dir
prompt_path() {
local dir="$PWD"
@rsmets
rsmets / foundAudioUploadCurlHowTo.md
Last active February 4, 2023 03:18
Found Audio How To Upload with Curl

While the website upload capabilites are being added...

You can still upload audio to Found Audio to be listed on the site by following these instructions.

Hit the /s3 path with the fileName, author and genre values populated. For example:

curl --location --request POST 'https://api.foundaudio.club/s3' \
--header 'Content-Type: application/json' \
--data-raw '{
<script>
export let params={};
export let service=null;
export let id=null;
import Fa from 'svelte-fa'
import { faEdit, faPlus, faTrash } from '@fortawesome/free-solid-svg-icons';
import feathers from '../web_feathers.js';
const rest = feathers.service('logs');
#!/usr/bin/env bash
#author: Ray Smets
# 5/4/16
#Required: Github's emiller's git-mv-with-history.sh
#https://gist.github.com/emiller/6769886
#This script moves a directory from one git repo to another while keep the commit
#history intact. After this runs you most likely will want to push to the orignal remote.