Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@besser
besser / cura_klipper_end.gcode
Last active April 23, 2024 16:08
Klipper configuration file and Cura Start/End gcode
SET_GCODE_VARIABLE MACRO=END_PRINT VARIABLE=machine_depth VALUE={machine_depth}
END_PRINT
@bmaupin
bmaupin / free-backend-hosting.md
Last active April 23, 2024 16:07
Free backend hosting
@n18l
n18l / Hot Corners.ahk
Last active April 23, 2024 16:05
An AutoHotKey script for hot corner functionality, similar to macOS.
#NoTrayIcon
#NoEnv
#Persistent
#SingleInstance Force
SendMode Input
CoordMode, Mouse, Screen
; Tracks whether a hot corner was just activated, preventing it from being
; activated repeatedly.
global PreviousCorner := "None"
@veekaybee
veekaybee / normcore-llm.md
Last active April 23, 2024 16:03
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@pallocchi
pallocchi / saveNewAttachmentsToDrive.js
Last active April 23, 2024 16:10
Automatically Save Email Attachments to Google Drive Using Google Apps Script
function saveNewAttachmentsToDrive() {
var folderId = "PUT_YOUR_FOLDER_ID_HERE"; // Replace with the ID of the destination folder in Google Drive
var searchQuery = "to:your-email@example.com has:attachment"; // Replace with the search query to find emails with attachments
var lastExecutionTime = getLastExecutionDate();
var threads = GmailApp.search(searchQuery + " after:" + lastExecutionTime);
var driveFolder = DriveApp.getFolderById(folderId);
for (var i = 0; i < threads.length; i++) {
var messages = threads[i].getMessages();
for (var j = 0; j < messages.length; j++) {
var message = messages[j];
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del> <M-L>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-Y> <M-S-Z>
$SearchWeb
$SelectAll <M-A>
$Undo <M-Z>
@Brandonbr1
Brandonbr1 / readme.md
Last active April 23, 2024 16:02
This Simply Disables all useless or uneeded for windows 10/11 services to make your computer faster.

Make sure you run this script as admin,otherwise it will fail to execute

About this script

Warning this is a hardcore removal script, unlike the others, This tries to fully remove almost all uneeded services, without making the computer unusable

Disclamer

By running or using this script you accept. I am not hield responsible if anything breaks or stops working on your computer/machine. That is your fault and it is up to you to re-enable the service.

Printers will not work with this script.

yt-dlp termux full installation guide.md

Prepare

  1. Install Termux from Github: https://github.com/termux/termux-app/releases
  2. Download the apk and install it -> Note that installing termux from Play Store is highly discouraged.

In Termux:

pkg update
@mrclay
mrclay / exceljs-extras.js
Last active April 23, 2024 16:00
Convert Exceljs rich text values to HTML or plaintext strings
function isRichValue(value) {
return Boolean(value && Array.isArray(value.richText));
}
function richToString(rich) {
return rich.richText.map(({ text }) => text).join('');
}
function richToHtml(rich) {
let str = rich.richText.map(({ font = {}, text }) => {
@xavierfoucrier
xavierfoucrier / gpg-signing.md
Last active April 23, 2024 15:59
GPG signing with Git and Github Desktop

GPG signing – git github-desktop

Here is a short guide that will help you setup your environment to create signed commits or signed tags with Git locally. This has been extensively tested on Windows with Git and the Github Desktop application: I use it every day for my professional development projects.

I you face any issue, feel free to leave a comment below.

Summary

  1. Sign commits or tags
  2. Key passphrase
  3. Disable signatures
  4. Renew a GPG key