Skip to content

Instantly share code, notes, and snippets.

@voyager123bg
voyager123bg / helm-cheatsheet.md
Created June 4, 2021 11:49 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@alexrozanski
alexrozanski / gist:972958
Created May 15, 2011 08:00
Reposition Traffic Lights
NSButton *closeButton = [self standardWindowButton:NSWindowCloseButton];
NSView *themeFrame = [closeButton superview];
CGFloat buttonYOrigin = NSMaxY(themeFrame.frame)-34;
//Alter the button frames
NSRect closeFrame = closeButton.frame;
closeFrame.origin.y = buttonYOrigin;
closeButton.frame = closeFrame;
@v0lkan
v0lkan / nginx.conf
Last active June 4, 2025 19:21
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@toshvelaga
toshvelaga / DocumentUpload.js
Created August 16, 2023 21:06
Create vector embeddings using MongoDB
const mongoose = require('mongoose')
const Schema = mongoose.Schema
// Create a new schema for uploaded documents
const DocumentUploadSchema = new Schema({
title: String,
description: String,
fileName: String,
uploadDate: {
@pozil
pozil / README.md
Last active June 4, 2025 19:20
POST/CON 25: Build Multi-Agent Experiences with Agent Builder - Resources
@ldez
ldez / gmail-github-filters.md
Last active June 4, 2025 19:20
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@jcubic
jcubic / cdn.md
Last active June 4, 2025 19:18
How to setup a literally free CDN
adminAuth: {
type: "strategy",
strategy: {
name: "google",
label: 'Sign in with Google',
icon: "fa-google",
strategy: require('passport-google-oauth').OAuth2Strategy,
options: {
clientID: 'id',
clientSecret: 'secret',
@5a494d
5a494d / clean.sh
Created August 4, 2020 19:21 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs

Shapez 2 blueprint codes specifications

NOT from the devs
aka Loupau's understanding of blueprint codes

Last updated : 0.1.0-pre1-rc3

To sart, a blueprint code is structured as follows :

prefix + separator + version + separator + blueprint + suffix