Skip to content

Instantly share code, notes, and snippets.

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

Dimitri Sokolyuk dim13

🇺🇦
Кто к нам с чем зачем, тот от того и того!
View GitHub Profile
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
@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
@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
@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'
@mikaelvesavuori
mikaelvesavuori / create-bootable-win10-iso-mac.md
Last active December 26, 2023 09:11
Create a bootable Windows 10 USB stick from Mac Terminal (Bash)

Create a bootable Windows 10 USB stick from Mac Terminal (Bash)

Disclosure: These steps (at least for me) worked until it was time to actually install the files, in the Windows installer. This may be a configuration or hardware issue, but I am not totally sure.

This will help you set up a boot drive to install Windows 10, using a Mac. If you have a PC, this should be easier, using instructions at: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/install-windows-from-a-usb-flash-drive

Assumptions

  • You will use a US version of Windows 10 (if not, then you may need to change the variables a bit)
  • You have a detachable USB device (minimum 5GB)
@emilio-martinez
emilio-martinez / alibaba-vendor.md
Last active February 5, 2024 12:47
Topin 365GPS Server config

365GPS office address Contact: Erik Liu Address: 505 Block B, Donglian Building, Chuangye Second Road, Baoan District, Shenzhen, Guangdong, China(广东省深圳市宝安区创业二路东联大厦B座505,洪浪北地铁站旁) Mobile/ wechat/ whatsapp: +86-13480999031
Alibaba: 365gps.en.alibaba.com Skype: topin.sales
E-mail: topin.sales3@qq.com

============================================================= Hi

@vertexclique
vertexclique / cracking.md
Last active February 26, 2024 03:43
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

@philipstanislaus
philipstanislaus / sane-caching.nginx.conf
Last active March 9, 2024 07:46
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 9, 2024 11:53
1944 OSS Simple Sabotage Field Manual