Skip to content

Instantly share code, notes, and snippets.


Amin aminkhoshzahmat

View GitHub Profile
aminkhoshzahmat / CountryType
Last active Aug 16, 2022
Country names, codes, phones
View CountryType
namespace App\Entity\Enums;
define("CODE", 'code');
define("PHONE", 'phone');
define("NAME", 'name');
enum CountryType
View hack-tools.txt
Google dorks
1) find useful files > site: filetype:pdf
2) find emails > ""
> ""
> intitle:admin OR inurl:admin
3) Search "googl dorks" >
Find IP
Ping, Host, nslookup (active)
View typescript-builder-pattern.ts
// Builders
class SimpleBuilder {
constructor(private current = {}) {
prop(key: string, value: any) {
return new SimpleBuilder({ ...this.current, ...{ [key]: value } });
aminkhoshzahmat / config
Created Nov 8, 2021 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
View config
name = Pavan Kumar Sunkara
email =
username = pksunkara
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
smtpencryption = tls
View gist:b53b0ab12e017bef1a64bc73dd397786
version: '3'
image: drupal
- "80:80"
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
View cast_collation.sql
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);
aminkhoshzahmat / 2nginx_with_haproxy.yml
Created Jan 29, 2021
Ansible: Install 2 nginx server and load balance with haproxy
View 2nginx_with_haproxy.yml
- name: ----- Add haproxy to host -----
path: /etc/hosts
insertafter: EOF
line: ' haproxy'
tags: haproxt
- name: ----- Install epel-release and enginx -----
aminkhoshzahmat / Makefile
Last active Jan 14, 2021
Makefile sample file
View Makefile
# =================================
# Variables #
# =================================
CG=\033[0; color
CP=\033[0; color
CF=\033[0; color
NC=\033[ color
DATE=`date +%Y-%m-%d-%H.%M.%S`
aminkhoshzahmat / tasks.yml
Last active Jan 8, 2022
Ansible examples with modules
View tasks.yml
- name: ----- Create dir1 in /home -----
path: /home/dir1
state: directory
owner: root
group: root
mode: 0755
tags: [create_dir1]
- name: ----- create dir2 in /home ------