Skip to content

Instantly share code, notes, and snippets.

View dim13's full-sized avatar
🇺🇦
Кто к нам с чем зачем, тот от того и того!

Dimitri Sokolyuk dim13

🇺🇦
Кто к нам с чем зачем, тот от того и того!
View GitHub Profile
@meleyal
meleyal / macvim-padding
Created February 24, 2012 18:42
Add padding to MacVim windows
defaults write org.vim.MacVim MMTextInsetTop '10'
defaults write org.vim.MacVim MMTextInsetLeft '10'
defaults write org.vim.MacVim MMTextInsetBottom '10'
defaults write org.vim.MacVim MMTextInsetRight '10'
@jaybill
jaybill / copytree.go
Created June 5, 2012 17:46
How to copy a directory tree (preserving permissions) in Go.
package main
import "fmt"
import "os"
import "io"
import "io/ioutil"
import "log"
// Copies file source to destination dest.
func CopyFile(source string, dest string) (err error) {
@captsens
captsens / mpd-autoplay
Created February 16, 2014 07:52
Get mpd to auto-play on start-up (via an init script)
#!/bin/sh
### BEGIN INIT INFO
# Provides: mpd-autoplay
# Required-Start: mpd
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@vertexclique
vertexclique / cracking.md
Last active February 19, 2026 11:34
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@lbruder
lbruder / lbForth.c
Created April 6, 2014 15:21
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*
@zmwangx
zmwangx / mac-keys-unicode.md
Last active February 23, 2026 03:17
Unicode characters for special keys on the Mac keyboard (not necessarily Mac specific). #symbols

⌘ – &#x2318;&#8984; – the Command Key symbol
⌥ – &#x2325;&#8997; – the Option Key symbol
⇧ – &#x21E7;&#8679; – the Shift Key symbol
⌃ – &#x2303;&#8963; – the Control Key symbol
⎋ – &#x238B;&#9099; – the ESC Key symbol
⇪ – &#x21ea;&#8682; – the Capslock symbol
⏎ – &#x23ce;&#9166; – the Return symbol
⌫ – &#x232b;&#9003; – the Delete / Backspace symbol
⇥ – &#x21E5;&#8677; – the Tab Key symbol

haproxy.conf
============
frontend spdy
mode tcp
bind xxx.xxx.xxx.xxx:443 ssl crt /etc/haproxy/ssl.pem crt /etc/haproxy/certs.d npn spdy/3.1,http/1.1 ciphers AES256+EECDH:AES256+EDH:AES128+EDH:EECDH:!aNULL:!eNULL:!LOW:!DES:!3DES:!RC4; no-sslv3
option tcplog
log global
# route to nginx
@philipstanislaus
philipstanislaus / sane-caching.nginx.conf
Last active November 27, 2025 12:07
Sample Nginx config with sane caching settings for modern web development
# Sample Nginx config with sane caching settings for modern web development
#
# Motivation:
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools.
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh
# and juicy version of your assets available.
# At some point, however, you want to show your work to testers, your boss or your client.
# After you implemented and deployed their feedback, they reload the testing page – and report
# the exact same issues as before! What happened? Of course, they did not have developer tools
# open, and of course, they did not empty their caches before navigating to your site.
@kennwhite
kennwhite / 1944_OSS_Simple_Sabotage_Field_Manual.md
Last active March 28, 2026 03:48
1944 OSS Simple Sabotage Field Manual
@shaman007
shaman007 / lor-geo.csv
Last active August 7, 2019 10:59
LOR geo 30 days
Country Users New Users Sessions Bounce Rate Pages / Session Avg. Session Duration Goal Conversion Rate Goal Completions Goal Value
Russia 455,130 361,894 842,799 72.62% 2.18 00:02:55 0.00% 0 $0.00
Ukraine 111,825 92,044 191,960 74.10% 1.94 00:02:29 0.00% 0 $0.00
Belarus 26,265 21,756 46,632 72.57% 2.28 00:03:12 0.00% 0 $0.00
Kazakhstan 14,601 12,488 23,079 76.86% 1.93 00:02:26 0.00% 0 $0.00
United States 11,277 10,261 15,529 79.13% 1.89 00:01:44 0.00% 0 $0.00
Germany 8,362 6,826 15,053 64.39% 3.23 00:03:53 0.00% 0 $0.00
Moldova 3,570 2,998 6,259 72.15% 1.79 00:02:35 0.00% 0 $0.00
Uzbekistan 3,278 2,786 4,797 78.09% 1.50 00:01:41 0.00% 0 $0.00
France 2,613 2,352 3,358 74.33% 2.49 00:02:40 0.00% 0 $0.00