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
# GRUB loading. | |
# Welcome to GRUB! | |
# | |
# error: file `/boot/grub/i386-pc/normal.mod` not found. | |
# Entering rescue mode... | |
grub rescue> ls | |
hd(0) (hd0,msdos1) | |
grub rescue> set | |
cmdpath=(hd0) | |
prefix=(hd0,msdos1)/boot/grub |
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
$ sudo vim /etc/ssh/sshd_config | |
Port 33022 | |
PasswordAuthentication no | |
PubkeyAuthentication yes | |
MaxAuthTries = 3 | |
PermitEmptyPasswords no | |
PermitRootLogin no | |
Protocol 2 | |
ClientAliveInterval 180 |
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
ServerSignature Off | |
ServerTokens Prod | |
ServerName "localhost.local" | |
[Service] | |
UMask=0007 |
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
# /etc/logrotate.d/mysql_general | |
/var/lib/mysql/platonus.log{ | |
compress | |
dateext | |
maxsize 300M | |
copytruncate | |
maxage 365 | |
dateformat -%Y%m%d%s | |
hourly |
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
~/.ssh/config | |
Host * | |
ServerAliveInterval 30 | |
ServerAliveCountMax 2 |
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
[Unit] | |
Description=goweb | |
After=network.target | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=5s | |
ExecStart=/home/kafka/main | |
User= |
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
[user] | |
name = Max_Cohen | |
email = [email protected] | |
[core] | |
autocrlf = true | |
excludesfile = C:\\Users\\How are you\\gitignore_global.txt | |
[alias] | |
# l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' |
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
# Turn off the welcome message | |
startup_message off | |
# Disable visual bell | |
vbell off | |
# Set scrollback buffer to 10000 | |
defscrollback 10000 | |
# Customize the status line | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]' |
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
set autoindent | |
set hlsearch | |
set incsearch | |
set number | |
set ruler | |
set tabstop=4 shiftwidth=4 softtabstop=4 expandtab | |
syntax on | |
"retab |
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
map $http_origin $allow_origin { | |
~^https?://(.*\.)?my-domain.com(:\d+)?$ $http_origin; | |
default ""; | |
} | |
upstream websocket { | |
server localhost:3001; | |
} | |
server { |
OlderNewer