Skip to content

Instantly share code, notes, and snippets.

@rtomayko
rtomayko / ssh-persistent-control-master.md
Created June 7, 2017 19:43
10x SSH connection speedup w/ persistent control masters

SSH Persistent Control Master Config

Add to ~/.ssh/config:

Host *
  # Enable persistent connection multiplexing
  ControlMaster auto
  ControlPath ~/.ssh/-%r@%h:%p
 ControlPersist 600
@1UPNuke
1UPNuke / arch-ascii.txt
Last active November 16, 2025 00:12
Arch Linux logo using ASCII characters, made with neofetch in mind
\033[38;2;23;147;209m A
/#\
/###\
/#####\
/#######\
_ "=######\
/##=,_\#####\
/#############\
/###############\
/#################\
@enigma0x3
enigma0x3 / rpc_dump_rs5.txt
Created January 22, 2019 16:57 — forked from masthoon/rpc_dump_rs5.txt
RPC interfaces RS5
--------------------------------------------------------------------------------
<WinProcess "smss.exe" pid 368 at 0x5306908L>
64
[!!] Invalid rpcrt4 base: 0x0 vs 0x7ffec24f0000
--------------------------------------------------------------------------------
<WinProcess "csrss.exe" pid 472 at 0x5306e48L>
64
Interfaces :
Endpoints :
@posener
posener / go-shebang-story.md
Last active November 16, 2025 00:11
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@LucasOe
LucasOe / callouts.css
Created November 10, 2025 19:50
Obsidian callouts for all colors and lucide icons
/* https://help.obsidian.md/callouts#Customize%20callouts */
/* Colors */
.callout[data-callout-metadata="red"] {
--callout-color: var(--color-red-rgb);
}
.callout[data-callout-metadata="blue"] {
--callout-color: var(--color-blue-rgb);
}
.callout[data-callout-metadata="purple"] {
@phuctm97
phuctm97 / dock.sh
Last active November 16, 2025 00:06
macOS preferences
#!/bin/bash
# Enable auto hide.
defaults write com.apple.dock autohide -bool true
# Hide process indicators.
defaults write com.apple.dock show-process-indicators -bool false
# Set orientation.
defaults write com.apple.dock orientation -string left
Product Year Version Product Keys
Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
https://x.com/massgravel/status/1988306014371008542
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active November 16, 2025 00:04
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@eylenburg
eylenburg / msoffice_in_linux.md
Last active November 16, 2025 00:02
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. LinOffice - Microsoft Office Launcher for Linux, my own fork of Winapps which is focused on only running Microsoft Office, with some Office-specific improvements over Winapps and a fully automated setup. Eventually I would like to create a GUI for it. Decribed below
  2. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  3. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Last release in Feb 2022 and seems to be abandoned.
@Pieeer1
Pieeer1 / ActionTask.cs
Created November 15, 2025 22:15
MonoGame Blazor Runtime Engine
using Xilium.CefGlue;
namespace YOURNAMESPACE;
public class ActionTask : CefTask
{
private readonly Action _action;
public ActionTask(Action action) => _action = action;