Skip to content

Instantly share code, notes, and snippets.

@staringispolite
staringispolite / asciiputsonglasses
Last active January 14, 2025 15:53
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
@abobija
abobija / README.md
Created April 27, 2024 19:03
SmartConfig ESP32 with Flutter

This is demo project to show how to use the esp_smartconfig package in Flutter to provision ESP32 devices with smart phone.

Gist is follow-up to video:

YouTube video

@MrHallows
MrHallows / fastboot_help.md
Last active January 14, 2025 15:50
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@mjf
mjf / Postgres.md
Last active January 14, 2025 15:47
Postgres

⚠️ WARNING
The ordering of listed projects or documents is random and has no connection to relevance or maturity levels!

Postgres

Extensions

Extension Description
pgaudit Postgres auditing extension
pg_dbms_metadata extract Postgres object metadata
@hasantarhan
hasantarhan / CardRigidbody.cs
Created December 29, 2024 12:08
Card Rigidbody for Unity UI
using UnityEngine;
public class CardRigidbody : MonoBehaviour
{
public float rotationAmount = 10f;
public float maxRotationAngle = 360f;
public float springStiffness = 100f;
public float springDamping = 10f;
public float mass = 3f;
@kalomaze
kalomaze / llm_samplers_explained.md
Last active January 14, 2025 15:45
LLM Samplers Explained

LLM Samplers Explained

Everytime a large language model makes predictions, all of the thousands of tokens in the vocabulary are assigned some degree of probability, from almost 0%, to almost 100%. There are different ways you can decide to choose from those predictions. This process is known as "sampling", and there are various strategies you can use which I will cover here.

OpenAI Samplers

Temperature

  • Temperature is a way to control the overall confidence of the model's scores (the logits). What this means is that, if you use a lower value than 1.0, the relative distance between the tokens will become larger (more deterministic), and if you use a larger value than 1.0, the relative distance between the tokens becomes smaller (less deterministic).
  • 1.0 Temperature is the original distribution that the model was trained to optimize for, since the scores remain the same.
  • Graph demonstration with voiceover: https://files.catbox.moe/6ht56x.mp4
@lukeplausin
lukeplausin / transfer_ssm_file.sh
Last active January 14, 2025 15:44
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=the_file.tar.gz
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session
@nima-rahbar
nima-rahbar / linkvertise-bypass.js
Created January 30, 2021 13:08
Linkvertise Bypass
// ==UserScript==
// @name Linkvertise Bypass
// @namespace https://github.com/nima-rahbar/
// @version 1.0
// @description Bypass links that cannot be bypassed by Universal Bypass
// @author Nima Rahbar
// @match *://*.linkvertise.com/*
// @match *://*.linkvertise.net/*
// @match *://*.link-to.net/*
// @icon https://nimarahbar.com/wp-content/uploads/2017/07/favicon.png