Skip to content

Instantly share code, notes, and snippets.

@asukakenji
asukakenji / go-stdlib-interface-selected.md
Last activeMay 13, 2025 02:26
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

@rahularity
rahularity / work-with-multiple--accounts.md
Last activeMay 13, 2025 02:19
How To Work With Multiple Accounts on your PC

How To Work With Multiple Accounts on a single Machine

Let suppose I have two accounts, https://.com/rahul-office and https://.com/rahul-personal. Now i want to setup my mac to easily talk to both the accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@s3rgeym
s3rgeym / Arch-Install-SED-Luks-Btrfs.md
Last activeMay 13, 2025 02:19
Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

image

Вся суть харча™ (на самом деле все далеко не так...)

Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

@mmozeiko
mmozeiko / !README.md
Last activeMay 13, 2025 02:14
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK - currently v14.40.33807 and v10.0.26100.0.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@saharshbhansali
saharshbhansali / ObsidianMarkdownGuide.md
Last activeMay 13, 2025 02:13
Markdown Formatting Guide for Obsidian. Import this gist as a file into your Obsidian Vault to view it and to test new themes. Certain community plugins are required for a few features.

Markdown Formatting Guide for Obsidian

Learn how to apply basic formatting to your Obsidian notes, using Markdown. Import this as a note into your Obsidian Vault to view it and to test new themes. Certain community plugins are required for a few features.


Basic Formatting Syntax


Paragraphs

To create paragraphs, use a blank line to separate one or more lines of text.

@jlia0
jlia0 / agent loop
Last activeMay 13, 2025 02:13
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@Zoobdude
Zoobdude / radioRecordLinks.txt
Last activeMay 13, 2025 02:12
Radio record (https://www.radiorecord.ru) - stream URLs
@yonatanh20
yonatanh20 / README.md
Last activeMay 13, 2025 02:22
Enabling SocketCAN on WSL2 walkthrough

#Enabling SocketCAN on WSL2 Preface: this walkthrough is a hand-holdy step by step tutorial to enable SocketCan on your WSL2 instance (Ubuntu 20.04).

To enable SocketCAN's can-utils on WSL we need to enable the CAN interface module in the WSL, to do so requires a re-building of the WSL kernel.

Requirements:

@DavidToca
DavidToca / git.plugin.zsh
CreatedJuly 10, 2012 22:17
oh-my-zsh git alias
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git fetch && git rebase'
compdef _git gup=git-fetch
alias gp='git push'
@thomaspatrickwelborn
thomaspatrickwelborn / propertyDirectory.js
Last activeMay 13, 2025 02:02
Property Directory
const Accessors = {
object: ($target, $property) => {
if($property === undefined) { return $target }
else { return $target[$property] }
},
map: ($target, $property) => {
if($property === undefined) { return $target }
else { return $target.get($property) }
},
}