Skip to content

Instantly share code, notes, and snippets.

@kll
kll / TypeMemberLayout.xaml
Last active May 12, 2025 04:02
ReSharper/Rider StyleCop file layout
<?xml version="1.0" encoding="utf-16"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="Non-reorderable types">
<TypePattern.Match>
<Or>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active October 29, 2025 14:46
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@bishboria
bishboria / springer-free-maths-books.md
Last active September 25, 2025 06:28
Springer made a bunch of books available for free, these were the direct links
@nauhygon
nauhygon / Build Emacs for Windows 64bit with Native Compilation.md
Last active August 14, 2025 21:51
Step-by-step instructions to build Emacs for Windows 64 bit with MSYS2 and MinGW-w64. Now `native-comp` supported.

Build Emacs-w64 with MSYS2/MinGW-w64 with Native Compilation

Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!

  1. Download the latest MSYS2 from this download page.

  2. Install MSYS2 to, for example, C:\msys2 (make sure no space in path to avoid unwanted problems).

  3. Optionally prettify the MSYS2 console mintty with ~/.minttyrc to make it more pleasing to eyes. Thanks to this awesome theme!

;; Workaround the annoying warnings:
;; Warning (mumamo-per-buffer-local-vars):
;; Already 'permanent-local t: buffer-file-name
(when (and (equal emacs-major-version 24)
(equal emacs-minor-version 2))
(eval-after-load "mumamo"
'(setq mumamo-per-buffer-local-vars
(delq 'buffer-file-name mumamo-per-buffer-local-vars))))
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git
@du-song
du-song / hosts
Created July 3, 2011 14:03
/etc/hosts for Google in China
203.208.46.178 googleusercontent.com webcache.googleusercontent.com themes.googleusercontent.com www.google.com.hk docs.google.com images.google.com encrypted.google.com groups.google.com clients2.google.com feedproxy.google.com spreadsheets.google.com picasaweb.google.com sites.google.com plus.google.com mail.google.com apis.google.com maps.google.com www.google.com gg.google.comencrypted-tbn1.google.com mts0.google.com mts1.google.com