These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
| # It's only a POC for now | |
| defmodule ContextBase do | |
| @moduledoc """ | |
| Abstracts away common schema functions, such as list, get, create, update, delete, etc. | |
| Assumes that the schema module has a `changeset` function. | |
| Usage: | |
| defmodule MyContext do | |
| use ContextBase, repo: MyApp.Repo, schema: MyApp.MySchema | |
| end |
I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.
I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:
Last modified date : 2025-04-30
This covers the installation of SDL3 on a Unix system based on Debian (with apt).
Contribute to cover more systems.
Below explanations are if you plan to build the whole library from sources of the official Github repository.
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| "flag" | |
| ) | |
| const ( |
| from modal import Image, Stub, Secret, gpu | |
| from pathlib import Path | |
| import os | |
| MODEL_PATH = "/model" | |
| def download_models(): | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| token = os.environ["HUGGINGFACE_TOKEN"] | |
| tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-hf", use_auth_token=token) |
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps.
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/color" | |
| "image/gif" | |
| "math" | |
| "os" | |
| ) |
| // create api context | |
| ctx := context.Background() | |
| // get bytes from base64 encoded google service accounts key | |
| credBytes, err := b64.StdEncoding.DecodeString(os.Getenv("KEY_JSON_BASE64")) | |
| if err != nil { | |
| log.Error(err) | |
| return | |
| } |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "github.com/golang-jwt/jwt" | |
| "log" | |
| "net/http" | |
| "time" | |
| ) |