Skip to content

Instantly share code, notes, and snippets.

@gabrielepiccinnu
gabrielepiccinnu / README.md
Created July 5, 2026 20:35
Copy as path (copy full file path) from the GNOME Files (Nautilus) right-click menu - nautilus-python extension

Copy as path from the Nautilus right-click menu (GNOME Files extension)

Add a Copy as path entry to the GNOME Files (Nautilus) right-click menu so you can copy the full absolute path of any file or folder to the clipboard with a single click. When several items are selected, one path per line is copied. It also works on the empty background of the current folder, so you can copy the path of the directory you are browsing.

This is a tiny nautilus-python extension for the modern Nautilus 4.x API, tested on GNOME 50 and Fedora. The entry appears as a top level item in the context menu,

@dori4n
dori4n / Office 2021 ISO Links at Microsoft.md
Last active September 15, 2026 13:13
Office 2021 ISO Download Links at Microsoft
@damiankw
damiankw / kill-vscode-server.sh
Created October 22, 2025 10:18
A quick script to delete those pesky vscode node servers polluting a Remote-SSH
#!/bin/bash
# kill-vscode-server.sh - Script to kill VS Code server processes
# Configure:
# nano kill-vscode-server.sh
# chmod +x kill-vscode-server.sh
# Usage:
# Interactively, with confirmation prompt
# ./kill-vscode-server.sh
@byteab
byteab / hand-drawn-character-creator.html
Created August 17, 2026 15:28
Seeded procedural animated hand drawn like characters, Canvas2D brush strokes on a Three.js rig.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who are you?</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" rel="stylesheet">
@giannoulakis
giannoulakis / laravel-forge-migration.sh
Created April 5, 2020 03:57
Script to migrate Laravel Forge application between servers
#! /bin/sh
#example$ ./laravel-forge-migration.sh www.example.com giannoulakis/example
DOMAIN=$1
GIT=$2
#Forge API Authorization
AUTH="Bearer __________________"
#destination server ID
@pmanot
pmanot / macos-sqlite-databases.md
Created September 14, 2026 12:04
macOS SQLite database paths and schemas

macOS SQLite database paths and schemas

Path inventory: 2026-01-21. Table inventories: 2026-06-10. macOS build was not recorded in the original inventory.

~ denotes the user's home directory. Paths and schemas vary by macOS version, account configuration, and library location. Listed columns are schema examples; their presence does not establish populated values or retention periods.

Knowledge

~/Library/Application Support/Knowledge/knowledgeC.db
@eduncan911
eduncan911 / README.md
Last active September 15, 2026 11:17
Fixing Thermal Throttling on Thinkpad P1 and X1 Extreme - Linux Edition

Fixing Thermal Throttling on Thinkpad P1 and X1 Extreme - Linux Edition

Lenovo messed up with the X1E and P1 Gen 1 versions (and maybe later generations) in that the system boots with a thermal limit (aka Tjunction or tjmax) set to 82C (some report 80C). What this means is that regardless of power draw or under-volting settings, when your CPU hits 82C, it will drop the frequency down to the "Configurable TDP-down" frequency, or even lower. It will also may limits the system power draw.

Thermal Paste and Stress Testing

How to make a 1 click connect to bluetooth device button

image

making a shortcut

  • Install Bluetooth Command Line Tools
  • you can use the command line tools to display all device ids by simply running btdiscovery
  • Create a Connect batch script:
@badlogic
badlogic / comment.ts
Created May 4, 2026 12:29
pi comment extension
import { spawnSync } from "node:child_process";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import type { ExtensionAPI, SessionEntry } from "@mariozechner/pi-coding-agent";
import type { AssistantMessage } from "@mariozechner/pi-ai";
function getLastAssistantText(branch: SessionEntry[]): string | undefined {
for (let i = branch.length - 1; i >= 0; i--) {
const entry = branch[i];
@muhammadardie
muhammadardie / README.md
Created October 16, 2025 05:12
How to Solve "Failed to create session: Maximum number of sessions (xxx) reached, refusing further sessions"

How to Solve "Failed to create session: Maximum number of sessions (8192) reached, refusing further sessions"

Problem Description

When you see this error in your system logs:

pam_systemd(crond:session): Failed to create session: Maximum number of sessions (8192) reached, refusing further sessions.
pam_systemd(sshd:session): Failed to create session: Maximum number of sessions (8192) reached, refusing further sessions.