Skip to content

Instantly share code, notes, and snippets.

@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
<?php
/**
* Tweaks the query used for finding pages in the menus area so that if a number
* is entered in the search field, the query will look for a post with that ID
* instead of searching by the number.
*/
add_action( 'parse_query', function( $query ) {
// Only apply this to the menu quick search
if ( isset( $_POST['action'] ) && 'menu-quick-search' == $_POST['action'] ) {
@anamorph
anamorph / HOWTO Install AWS CLI on Debian.md
Last active January 14, 2025 15:38
HOWTO Install AWS CLI on Debian

HOWTO Install AWS CLI on Debian

1. installing pre-reqs

sudo apt-get install python python-pip

2. installing the cli:

sudo pip install awscli

3. configuring the cli:

aws configure
@stackblogger
stackblogger / top 100+ social bookmarking sites list.md
Last active January 14, 2025 15:40
DoFollow Backlink Sites | High PR Free Backlink Sites

TOP 100+ Social Bookmarking Sites List

DoFollow Backlink Sites | High PR Free Backlink Sites

Detailed article is shared here- TOP 100+ Social Bookmarking Sites List

Get more High PR Social Bookmarking Sites list with details of Domain Authority (DA), Page Authority (PA), Page Rank (PR) and Spam Score (SS) updated on November 6th 2024.

A backlink is a type of link pointing out from a website to your website. It is also called inbound or incoming backlinks. Backlinks are used to generate traffic to your website. Search engines continuously crawls the web pages and if they find a link to your website at some page then they crawl your page too. So it increases the search engine visibility in the back end. Get top 100+ DoFollow High PR Backlink Sites list.

@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

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.

Index