Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / hello-http-client.rs
Created November 17, 2024 18:09
hello rust http client / published by https://github.com/dacr/code-examples-manager #2455a322-c6a7-4c96-834e-262b3917262c/b7565908e2b358fd4f356aac538ea3b89d6a32
#!/usr/bin/env rust-script
// cargo-deps : openssl="0.10.68", openssl-sys="0.9.104", curl="0.4.47"
// summary : hello rust http client
// keywords : rust, http-client, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 2455a322-c6a7-4c96-834e-262b3917262c
// created-on : 2024-10-25T19:09:32+02:00
// managed-by : https://github.com/dacr/code-examples-manager
@dacr
dacr / nixos-homemanager.md
Created November 17, 2024 18:09
nixos home manager cheat sheet / published by https://github.com/dacr/code-examples-manager #97b1a626-302a-4a65-a6c6-c2e9b9d10099/ee5d5bf61e363da4782befe309a542f1eb300ec1
@dacr
dacr / Makefile
Created November 17, 2024 18:09
flake configuration for ollama / published by https://github.com/dacr/code-examples-manager #e5d0df54-2723-4ad3-aa10-75a4d6b4c869/4ffd370420a32083a8d85872b447ac49be800123
## summary : flake configuration for ollama
## keywords : nix, flake, ollama, mistral, codestral, llama
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : e5d0df54-2723-4ad3-aa10-75a4d6b4c869
## created-on : 2024-11-17T18:58:08+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : make serve
## attachments : flake.nix, flake.lock
@dacr
dacr / Makefile
Created November 17, 2024 18:09
flake configuration for lmstudio / published by https://github.com/dacr/code-examples-manager #bfaf2c5b-b796-4117-8c6b-2315b7cc15fa/8133e63db27da81e6c1b5fb5dced8583c82a2d18
## summary : flake configuration for lmstudio
## keywords : nix, flake, lmstudio, mistral, codestral, llama
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : bfaf2c5b-b796-4117-8c6b-2315b7cc15fa
## created-on : 2024-11-17T19:02:50+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : make serve
## attachments : flake.nix, flake.lock
@dacr
dacr / direnv.md
Created November 17, 2024 18:09
direnv cheat sheet / published by https://github.com/dacr/code-examples-manager #3f107fb3-d363-4dc3-b3b5-38c5094e1a71/7b2aa8cdeab418b7c469d8d88e7ded22e0873c9b
@dacr
dacr / hello-struct-1.rs
Created October 16, 2024 19:54
hello rust structs / published by https://github.com/dacr/code-examples-manager #1187efee-710d-4f2b-92b5-8d4d3af72bd0/f3e3f518598dcf1fc7002a3acb94586a095e3fa8
#!/usr/bin/env rust-script
// summary : hello rust structs
// keywords : rust, structs, data-class, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 1187efee-710d-4f2b-92b5-8d4d3af72bd0
// created-on : 2024-10-16T09:16:37+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : ./$file
@dacr
dacr / hello-json.rs
Created October 16, 2024 19:54
rust hello json / published by https://github.com/dacr/code-examples-manager #0cc4ba7f-8c56-494e-ad8d-42b0e69b6d4c/fe5a75681231f19dfa7e091f82d35249cb02c611
#!/usr/bin/env rust-script
//! ```cargo
//! [dependencies]
//! serde= { version = "1.0.210", features = ["derive"] }
//! serde_json = "1.0.128"
//! ```
// summary : rust hello json
// keywords : rust, dependencies, @testable
// publish : gist
// authors : David Crosson
@dacr
dacr / hello-strings.rs
Last active November 17, 2024 18:09
hello rust strings / published by https://github.com/dacr/code-examples-manager #4c26c763-ab9d-4a12-a228-8d65e0eafde3/f57022ffcd6ed188944532caa437500c0e161a89
#!/usr/bin/env rust-script
// cargo-deps : trim-margin="0.1.0"
// summary : hello rust strings
// keywords : rust, strings, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 4c26c763-ab9d-4a12-a228-8d65e0eafde3
// created-on : 2024-10-15T22:12:28+02:00
// managed-by : https://github.com/dacr/code-examples-manager
@dacr
dacr / hello-struct-2.rs
Created October 16, 2024 19:54
hello rust structs and methods / published by https://github.com/dacr/code-examples-manager #0d42efab-2b25-4c42-84a4-6d75be03f195/8f883ec44eeea85e72eb4c5526e5fa1c9a294c70
#!/usr/bin/env rust-script
// summary : hello rust structs and methods
// keywords : rust, structs, data-class, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 0d42efab-2b25-4c42-84a4-6d75be03f195
// created-on : 2024-10-16T09:05:31+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : ./$file
@dacr
dacr / hello-type-conversions.rs
Created October 16, 2024 19:54
hello rust type conversions / published by https://github.com/dacr/code-examples-manager #78987a3a-c3e9-401e-bdf6-773c55c6f3fb/ce934c8b84360787a90cdb76a2889e52608db41d
#!/usr/bin/env rust-script
// summary : hello rust type conversions
// keywords : rust, types, conversions, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 78987a3a-c3e9-401e-bdf6-773c55c6f3fb
// created-on : 2024-10-16T09:27:59+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : ./$file