This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func parseIpv4(s string) [4]byte { | |
var ip [4]byte | |
// первые три байта парсим | |
for i := 0; i < 3; i++ { | |
for p := 0; p < 4; p++ { | |
if s[p] == '.' { | |
number, _ := strconv.ParseUint(s[:p], 10, 8) | |
ip[i] = byte(number) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Gitlab config - gitlab.rb | |
# default configs from omnibus + custom options | |
# Nginx Proxy + SSL | |
external_url = 'https://gitlab.ex.ru' | |
# Registry | |
registry_nginx['enable'] = false # disable gitlab nginx registry proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::HashMap; | |
struct Message; | |
#[derive(Debug)] | |
struct Request<'a> { | |
body: &'a str, | |
method: &'a str, | |
uri: &'a str, | |
protocol: &'a str, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Базовый ~/.gitconfig, для суб директорий можно подключить свои конфиги, например для личных и рабочик проектов | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
# extend and overwrite config for glob path | |
[includeIf "gitdir:~/www/**/*"] | |
path = ~/www/.gitconfig |
OlderNewer