Skip to content

Instantly share code, notes, and snippets.

View islander's full-sized avatar

kiba islander

  • Innova Distribution
  • Moscow | Saint Petersburg
View GitHub Profile
@islander
islander / nls1251.reg
Created February 25, 2013 12:18
Cyrillic support for Windows XP
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
"1250"="c_1251.nls"
"1251"="c_1251.nls"
"1252"="c_1251.nls"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontMapper]
"DEFAULT"=dword:000000cc
@islander
islander / xp.nat.start.bat
Created February 25, 2013 12:20
Windows XP NAT start
@echo off
REM В кавычках укажите имя внутреннего интерфейса, с учетом регистра
REM Лучше переименуйте интерфейсы по-английски
set int="int"
REM здесь укажите имя внешнего интерфейса
set ext="ext"
sc stop RemoteAccess > NUL
sc stop SharedAccess > NUL
@islander
islander / .grcat
Last active December 16, 2015 04:29
MySQL CLI client customization
# grcat - apt-get install grc
# разделители строк для вертикального вывода результатов с помощью \G
regexp=[*]+.+[*]+
count=stop
colours=white
-
# границы таблиц
regexp=[+\-|]+
colours=red
-
@islander
islander / gist:6374232
Created August 29, 2013 04:17
Cisco "краткий" конфиг
sh run | include ^[^! ]
@islander
islander / dhclient.conf
Last active October 11, 2016 04:37
local development environment (dnsmasq + nginx)
supersede domain-name-servers 127.0.0.1,8.8.8.8,8.8.4.4
@islander
islander / restrictions.conf
Last active October 25, 2017 12:12
nginx.conf
#include conf.d/restrictions.conf;
# disable logging for favicon
location = /favicon.ico {
return 204;
log_not_found off;
access_log off;
}
# disable logging for robots.txt
location = /robots.txt {
#!/usr/bin/expect
eval spawn -noecho $argv
interact {
\177 {send "\010"}
"\033\[3~" {send "\177"}
}
@islander
islander / ssh_config
Created June 11, 2014 04:58
proxy ssh connection through NAT
Host external.example.com
Hostname 198.51.100.32
User external_login
Host internal.example.com
Hostname 192.168.2.18
User internal_login
ProxyCommand ssh 198.51.100.32 nc %h %p
#!/bin/sh
# http://christoph-polcin.com/
TMP=/tmp
[ $# -lt 1 ] && \
echo "usage: $(basename $0) input_file [output.pdf]" && \
exit 1
[ ! -f "$1" ] && \
@islander
islander / dnsmasq.conf
Created August 25, 2015 01:08
SIP-phone configuration over DHCP (TFTP)
listen-address=192.168.1.254
interface=eth0
dhcp-range=192.168.1.1,192.168.1.253,12h
dhcp-option=150,192.168.1.254 # TFTP Server Address Option for DHCPv4 (RFC 5859)
address=/example.com/192.168.1.254