Skip to content

Instantly share code, notes, and snippets.

View smhdhsn's full-sized avatar
👽
Gazing Binary Universe

Mahdi Hasani smhdhsn

👽
Gazing Binary Universe
View GitHub Profile
@smhdhsn
smhdhsn / configure_dns.sh
Last active November 8, 2023 14:13
shecan.ir configurator.
#! /bin/bash -e
#####################################################
# DNS configurator #
#####################################################
# Responds to a list of syscall.
trap "error 'Exiting now...'" SIGINT SIGQUIT
# CLI options (IRREPLACEABLE).
@smhdhsn
smhdhsn / .bash_aliases
Last active December 17, 2021 08:57
Aliases [Linux OS]
##################################################
# A few useful aliases to make our lives easier. #
# #
# Symfony - Laravel - Docker - Git #
##################################################
# Symfony
alias sf-dp-db='sf-c doctrine:schema:drop -n -q --force --full-database'
alias sf-db-res='sf-dp-db && sf-rm-m && sf-mk-m && sf-m'
alias sf-m='sf-c doctrine:migrations:migrate -n -q'