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
$socket = new-object System.Net.Sockets.TcpClient('127.0.0.1', 413); | |
if($socket -eq $null){exit 1} | |
$stream = $socket.GetStream(); | |
$writer = new-object System.IO.StreamWriter($stream); | |
$buffer = new-object System.Byte[] 1024; | |
$encoding = new-object System.Text.AsciiEncoding; | |
do | |
{ | |
$writer.Flush(); | |
$read = $null; |
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 from = user@domain.com | |
set imap_user = user@domain.com | |
set imap_pass = yrpasswordhere | |
set smtp_pass = yrpasswordhere | |
set realname = "My Name" | |
set smtp_url = smtps://user@domain.com@smtp.beget.ru:465 | |
set folder = imaps://imap.beget.ru:993 | |
set spoolfile = +INBOX | |
set postponed = +[Mail]/Drafts |
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
; Disable vim automatic visual mode on mouse select | |
; vim ~/.vimrc | |
; --- | |
source $VIMRUNTIME/defaults.vim | |
set mouse-=a |
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
git checkout --orphan <branchname> | |
git rm --cached -r . |
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
#export | |
mysqldump -hlocalhost -ulogin_dbname login_dbname -p'Password' > dump.sql | |
#import | |
mysql -hlocalhost -ulogin_dbname login_dbname -p'Password' < dump.sql |
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
From d2e54dc3e1970d1b1e7a25f13aabbbfcec712973 Mon Sep 17 00:00:00 2001 | |
From: Haeniken <me@haeniken.com> | |
Date: Sun, 10 Oct 2021 14:13:39 +0300 | |
Subject: [PATCH] fix | |
--- | |
src/server/game/Entities/Player/Player.cpp | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp |
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
#!/bin/bash | |
# resolve a from local dns | |
echo '```' | |
echo -e "\e[1;33m$ dig a" $1 "+short\e[0m" | |
dig a $1 +short; | |
echo '```' | |
# check our ip | |
dig a $1 +short | xargs yii ip/is-our-ip |
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
$ cat test | while read url;do ip=`dig a $(idn $url) +short`;echo "$url -> $ip";done | |
test.ru -> | |
test.com -> 67.225.146.248 |
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
$ sed -n 2,4p test | |
2assdasdasd | |
3asdsadasd | |
4asdasdasdasdd |
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
curl -IL -H "X-Real-IP:178.219.186.12" https://haeniken.com | |
curl -IL -H "X-Forwarded-for: 178.219.186.12" https://haeniken.com |
OlderNewer