Skip to content

Instantly share code, notes, and snippets.

View sbeckeriv's full-sized avatar
🐢
Horray another status box

Stephen Becker IV sbeckeriv

🐢
Horray another status box
  • Death By Escalator
  • Seattle
View GitHub Profile
example data. i think item no was the item reviwed not won.
Response, Date, Item No., Age, Country
1-Jan, 76417 - Gringotts™ Wizarding Bank – Collectors', 10, Portugal
The top 10 countries by frequency of participants are:
United States: 86
United Kingdom: 31
Canada: 15
@sbeckeriv
sbeckeriv / init.vim
Created September 7, 2022 15:55
disable plugins on big files.
" disable syntax highlighting in big files found on reddit
" https://www.reddit.com/r/neovim/comments/pz3wyc/comment/heyy4qf/?utm_source=reddit&utm_medium=web2x&context=3
" https://www.reddit.com/r/neovim/comments/s9kdsm/disable_treesitter_for_files_larger_than_x_lines/ lua version?
function DisableSyntaxTreesitter()
echo("Big file, disabling syntax, treesitter and folding")
if exists(':TSBufDisable')
exec 'TSBufDisable autotag'
exec 'TSBufDisable highlight'
" etc...
@sbeckeriv
sbeckeriv / serde.rs
Created December 8, 2021 21:28
change a rust struct to a single string and back in serde for serde_json
// currently MyId Serialize to a string
#[derive(Hash, PartialEq, Eq, Debug, Clone, Deserialize, Serialize)]
pub struct MyId(pub String);
// i want to change it so that i format my string so it is safe. In this case I want to
// base64 it. I create a ::new that does this. I want my json to stay the same and validate
// the json value is real base64.
@sbeckeriv
sbeckeriv / rust.yml
Last active July 21, 2020 17:57
Github action for rust to cross compile to mac with caching and releases
name: Rust
on: [push]
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup component add rustfmt
find . -iname *.srt -type f | while read i;
do
vtt=${i/.srt/.vtt}; [[ -f "$vtt" ]] || echo $vtt && ffmpeg -hide_banner -loglevel panic -i "$i" "$vtt"
done
@sbeckeriv
sbeckeriv / Dockerfile
Last active February 8, 2020 00:10
Rust Rocket Docker slim
FROM rustlang/rust:nightly-slim
WORKDIR /app
COPY ./ /app
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
pkg-config \
libssl-dev
@sbeckeriv
sbeckeriv / tmux.md
Created May 30, 2019 17:27 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family FiraCode-Regular
# bold_font auto

Keybase proof

I hereby claim:

  • I am sbeckeriv on github.
  • I am sbeckeriv (https://keybase.io/sbeckeriv) on keybase.
  • I have a public key ASBmP80VqBAhitfvzJyE6V7dKVJDmDBuQcQPr4PYYTdy9Ao

To claim this, I am signing this object:

becker@pop-os:~/trash/aha/aha-app$ cat ~/.config/kitty/kitty.conf
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace