Skip to content

Instantly share code, notes, and snippets.

@willurd
willurd / web-servers.md
Last active October 24, 2025 16:17
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@0xjac
0xjac / private_fork.md
Last active October 24, 2025 16:17
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@willccbb
willccbb / grpo_demo.py
Last active October 24, 2025 16:15
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@jinjier
jinjier / javdb-top250.md
Last active October 24, 2025 16:05
JavDB top 250 movies list. [Updated on 2025/10]
@Jarvisyoung
Jarvisyoung / javdb-top250.md
Created October 24, 2025 16:02 — forked from jinjier/javdb-top250.md
JavDB top 250 movies list. [Updated on 2025/10]
@denji
denji / nginx-tuning.md
Last active October 24, 2025 16:02
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active October 24, 2025 15:58
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@JudsonMurray
JudsonMurray / ReadonlyBool.cshtml
Created October 24, 2025 15:58 — forked from Scribbio/ReadonlyBool.cshtml
Linking readonly to a dynamic boolean in Razor
@* We can link the readonly html attribute to a bool defined in Razor code.
This is a neat trick if you want to use the same view for different purposes.
For example, I have an AddProduct page that also acts as the EditProduct page. In "EditProduct" mode, some of the form fields that are
used to add a new product are no longer editable (such as the product name).
This is achieved using the html readonly attribute in the relevant fields set against a single boolean variable "@editMode".
This variable is defined at the top of the page and can be set multiple ways through the controller: ViewBag/ViewModel, etc.