Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@miguelmota
miguelmota / i3-cheat-sheet.md
Last active June 21, 2025 17:24 — forked from JeffPaine/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (window/command or alt by default depending on config)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@Prathap-Chandra
Prathap-Chandra / sentence-embeddings.py
Last active June 21, 2025 17:21
Semantic Search with SBERT's all-MiniLM-L6-v2 model
from sentence_transformers import SentenceTransformer, util
import torch
embedder = SentenceTransformer("all-MiniLM-L6-v2")
# Corpus with example sentences
corpus = [
"A man is eating food.",
"A man is eating a piece of bread.",
@Baccega
Baccega / autoIndexersImporter.js
Last active June 21, 2025 17:17
This script allows you to automatically import indexers from your Jackett server to your Sonarr or Radarr instance.
// Auto indexers importer from Jackett to Sonarr/Radarr
// Author: Baccega Sandro
// 1) Fill the constants values: JACKETT_API_KEY, SONARR_RADARR_API_KEY, JACKETT_CONFIG
// 2) Copy this code and run it on Sonarr/Radarr's a browser window's console
(async function () {
const JACKETT_HOST_PORT = "PUT_JACKETT_HOST_PORT"; // Example: 192.168.1.10:9117
const JACKETT_API_KEY = "PUT_JACKETT_API_KEY_HERE";
@cliss
cliss / mergechapters.py
Created January 26, 2021 14:30
Merge Files with Chapters
import datetime
import json
import os
import subprocess
import sys
#############
### USAGE ###
#############
@OdinsPlasmaRifle
OdinsPlasmaRifle / arch_linux_installation.md
Last active June 21, 2025 17:07
LVM on LUKS Arch installation with systemd-boot
@RStankov
RStankov / container.tsx
Created February 21, 2024 21:22
Modal System
// The most complex part of the modal system
// There are lot of small details heres
// I extracted this from a real project
// Notice: Hooks hide a lot of complexity
import { IModalOpen } from './types';
import { closeModal } from './triggers';
import { useEffect, useMemo, useRef, useState } from 'react';
import { useEventBus } from '../eventBus';
import { InsideModalProvider } from './context';
@talkingmoose
talkingmoose / Jamf Pro Computer EraseDevice.zsh
Last active June 21, 2025 17:02
Use Jamf Pro Classic API to send EraseDevice command (Erase All Content and Settings on macOS Monterey and newer) to one or multiple computers by Jamf Pro ID. This script doesn't support computers locked using Device Lock with unique passcodes.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/d8dbdbc920cbaddd7d60f44f17bf268a
@iamnolanhu
iamnolanhu / CHATGPT VERSION (GPT-4 | GPT-4.1)
Created June 18, 2025 13:39
REALITY FILTER — A LIGHTWEIGHT TOOL TO REDUCE LLM FICTION WITHOUT PROMISING PERFECTION
✅ REALITY FILTER — CHATGPT
• Never present generated, inferred, speculated, or deduced content as fact.
• If you cannot verify something directly, say:
- “I cannot verify this.”
- “I do not have access to that information.”
- “My knowledge base does not contain that.”
• Label unverified content at the start of a sentence:
- [Inference] [Speculation] [Unverified]
• Ask for clarification if information is missing. Do not guess or fill gaps.
@dadatuputi
dadatuputi / ancestornames.py
Created June 17, 2020 02:04
Ancestor Names
from gedcom.element.individual import IndividualElement
from gedcom.parser import Parser
file_path = 'temp.ged'
gedcom_parser = Parser()
gedcom_parser.parse_file(file_path)
root_child_elements = gedcom_parser.get_root_child_elements()
first_names = {}
@ripsource
ripsource / Cargo.toml
Created May 25, 2025 09:25
A commented and working examples of a subintent transaction on Radix using Radix Engine Toolkit
[package]
name = "example-radix-transaction"
version = "0.1.0"
edition = "2021"
[dependencies]
radix-client = { git = "https://github.com/ociswap/radix-client", features = [
"gateway",
], tag = "v1.0.1" }
radix-transactions = "1.3.0"