This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust | |
| on: [push] | |
| jobs: | |
| rustfmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - run: rustup component add rustfmt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 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... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Using kitty terminal to tell Claude to continue after the limit has been reached and is available again. | |
| # claude-resume 02:20 2 | |
| # claude-resume 02:20 2 "continue planning the best.." | |
| # End of LM Studio CLI section | |
| claude-resume() { | |
| if [[ ! "$1" =~ ^[0-9]{2}:[0-9]{2}$ ]]; then | |
| echo "Usage: claude-resume HH:MM WINDOW_ID [message]" | |
| return 1 | |
| fi |
OlderNewer