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
const { log } = require("console"); | |
const http = require("http"); | |
const WebSocketServer = require("websocket").server; | |
let connections = []; | |
const httpServer = http.createServer(); | |
const websocket = new WebSocketServer({ httpServer: httpServer }); |
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
<?php | |
namespace App\Entity\Enums; | |
define("CODE", 'code'); | |
define("PHONE", 'phone'); | |
define("NAME", 'name'); | |
enum CountryType | |
{ |
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
Google dorks | |
1) find useful files > site: tesla.com filetype:pdf | |
2) find emails > "@tesla.com" -site:tesla.com | |
> "@etf.bg.ac.rs" -site:etf.bg.ac.rs | |
> intitle:admin OR inurl:admin site:etf.bg.ac.rs | |
3) Search "googl dorks" > exploit.com | |
Find IP | |
Ping, Host, nslookup (active) |
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
// Builders | |
class SimpleBuilder { | |
constructor(private current = {}) { | |
} | |
prop(key: string, value: any) { | |
return new SimpleBuilder({ ...this.current, ...{ [key]: value } }); | |
} |
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 = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta | |
[sendemail] | |
smtpencryption = tls |
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
version: '3' | |
services: | |
drupal: | |
image: drupal | |
ports: | |
- "80:80" | |
volumes: | |
- drupal-modules:/var/www/html/modules | |
- drupal-profiles:/var/www/html/profiles |
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
UPDATE company | |
SET name=convert(cast(convert(name using latin1) as binary) using utf8mb4), | |
contact_role=convert(cast(convert(contact_role using latin1) as binary) using utf8mb4), | |
address=convert(cast(convert(address using latin1) as binary) using utf8mb4), | |
city=convert(cast(convert(city using latin1) as binary) using utf8mb4), | |
phone=convert(cast(convert(phone using latin1) as binary) using utf8mb4), | |
postal_code=convert(cast(convert(postal_code using latin1) as binary) using utf8mb4), | |
website=convert(cast(convert(website using latin1) as binary) using utf8mb4), | |
code=convert(cast(convert(code using latin1) as binary) using utf8mb4); |
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
- name: ----- Add haproxy to host ----- | |
lineinfile: | |
path: /etc/hosts | |
insertafter: EOF | |
line: '192.168.56.66 haproxy' | |
tags: haproxt | |
- name: ----- Install epel-release and enginx ----- | |
yum: |
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
# ================================= | |
# Variables # | |
# ================================= | |
CG=\033[0;36m#..........green color | |
CP=\033[0;35m#...........pink color | |
CF=\033[0;33m#...........pink color | |
NC=\033[0m#................no color | |
SPRINT=1.0.0#...............Version | |
COMMANDS=${CP}Commands${NC} | |
DATE=`date +%Y-%m-%d-%H.%M.%S` |
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
- name: ----- Create dir1 in /home ----- | |
file: | |
path: /home/dir1 | |
state: directory | |
owner: root | |
group: root | |
mode: 0755 | |
tags: [create_dir1] | |
- name: ----- create dir2 in /home ------ |