Skip to content

Instantly share code, notes, and snippets.

@p1aton
p1aton / docker-compose2aws
Created January 18, 2024 17:58 — forked from ojengwa/docker-compose2aws
Set by step guide on deploying your docker containers to AWS using docker-compose and docker-machine
# Deploy to AWS using docker-machine and docker-compose
## 1. Prepare your machine
Please follow this steps:
1.1 Install docker in your localhost. [Installation link](https://docs.docker.com/engine/installation/)
1.2 Install docker-machine in your localhost. [Installation link](https://docs.docker.com/compose/install/)
1.3 Install docker-compose in your localhost. [Installation link](https://docs.docker.com/machine/install-machine/)
1.4 Create an account in AWS (skip this step if you already have one). [AWS](https://aws.amazon.com/)
@p1aton
p1aton / tmux-cheatsheet.markdown
Created December 19, 2023 23:52 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@p1aton
p1aton / vsCode.config
Created December 8, 2023 14:20 — forked from muks999/vsCode.config
Частые полезные настройки VS Code
// Перезапишите параметры, поместив их в файл параметров.
// Наиболее часто используемые настройки см. по адресу http://go.microsoft.com/fwlink/?LinkId=808995.
{
// Редактор
// Определяет семейство шрифтов.
"editor.fontFamily": "Consolas, 'Courier New', monospace",
// Управляет насыщенностью шрифта.

😍 The beginners note for OSINT 📚


The number of OSINT tools and services is constantly growing (image via osintframework.com)

Definition:
(intentionally left blank)

@p1aton
p1aton / GoogleDorking.md
Created November 27, 2023 19:54 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@p1aton
p1aton / google-hacking-techniques.md
Created November 27, 2023 19:46 — forked from viniciusdaniel/google-hacking-techniques.md
COPY - Exploring Google Hacking Techniques
@p1aton
p1aton / google-dorks
Created November 27, 2023 19:42 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@p1aton
p1aton / crawler.py
Created February 23, 2023 20:49
Chek
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from scrapy.crawler import CrawlerProcess
import tldextract
from whoischeck import main
# this is a spider that crawls a website and saves all the links in a json file.
def get_root_domains(file_name):
@p1aton
p1aton / .bash_profile
Created August 28, 2022 18:10 — forked from chrisberkhout/.bash_profile
Git aliases taken from oh-my-zsh's git plugin and translated to bash
# git aliases - taken from oh-my-zsh's git plugin and translated to bash
# https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#helpful-aliases-for-common-git-tasks
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
function git_current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function git_current_repository() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \