This file contains hidden or 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 growpart /dev/vda 3 | |
sudo pvdisplay | |
sudo pvresize /dev/ | |
sudo lvdisplay | |
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv | |
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv |
This file contains hidden or 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
#Sample Nmap http-enum Script Output | |
nmap -sV --script=http-enum -p 80 192.168.88.251 | |
# Services discovery | |
nmap -sV -O 192.168.88.251 | |
#Running the Nmap NSE Default Scripts | |
nmap -sC 192.168.88.251 | |
#Enumerating SMB Shares |
This file contains hidden or 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
$ttl = (int) (3600 + (mt_rand() / mt_getrandmax() * (60 * 2))); /* +/- 2 minutes */ |
This file contains hidden or 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
du -h -d 2 -t 50000000 |
This file contains hidden or 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
os: | |
- linux | |
language: php | |
php: | |
- '7.1' | |
services: | |
- postgresql |
This file contains hidden or 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
I, you, we, they + do | |
He, she, it + does | |
I, you, we, they + do not / don’t + do | |
He, she, it + does not / doesn’t + do | |
Do + I, you, we, they + do? | |
Does + he, she, it + do? | |
-ss, -ch, -sh, -x в конце глагола + -es: fix – fixes | |
согласный + -y в конце глагола + -es: study – studies | |
гласный + -y в конце глагола + -s: play – plays |
This file contains hidden or 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
<?php | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
class CheckBankAccount implements Rule | |
{ | |
public $bikForTest = ''; |
This file contains hidden or 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
select DISTINCT ON (t.orders) * from (select max(id) id, max(email), max(orders) as orders, campaign_id from coupons group by campaign_id ORDER BY orders DESC) as t ORDER BY t.orders DESC |
This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
) | |
type Object struct { | |
Num json.Number |
This file contains hidden or 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 GOPATH=`pwd` | |
export PATH="$PATH:$GOPATH/bin" | |
echo -e "\033[0;32m CURRENT GOPATH IS: $GOPATH \e[0m" | |
alias rp='source ~/.zshrc' |
NewerOlder