Skip to content

Instantly share code, notes, and snippets.

View dutymess's full-sized avatar
😡
Hates the Racist Github

Taha Kamkar dutymess

😡
Hates the Racist Github
View GitHub Profile
@dutymess
dutymess / fire
Last active May 8, 2020 15:15
This can save a coder's life, in case of fire emergency. Add it to your .bachrc file.
function fire() {
git checkout -b fire-push
git add .
git commit -m "push everything b4 running away."
git push origin HEAD
}
@dutymess
dutymess / zeshter.php
Last active July 12, 2019 20:04 — forked from meysampg/zeshter.php
Zeshter function remove all comments and docblocks from a given php file or a folder of php files.
#!/usr/bin/env php
<?php
/**
* Zeshter function remove all comments and docblocks from a given
* php file or a folder of php files. Yep, it just mirine into file.
*
* @param string|null $path path of a php file or a folder contains php files
*/
function zeshter(?string $path, bool $debugMode = false)
{
@dutymess
dutymess / bash_profile.example
Last active February 20, 2019 12:43
My Bash Aliases
## General Things
## -------------------
alias ip="ipconfig getifaddr en0"
alias ipx="curl ipecho.net/plain; echo"
## Git Things
## -------------------
@dutymess
dutymess / Yasna.xml
Created April 25, 2018 13:45
PHPStrom Code Style Settings (not violating PSR1&2)
<code_scheme name="Yasna">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="8" />
<option name="TAB_SIZE" value="4" />
<option name="USE_TAB_CHARACTER" value="true" />
<option name="SMART_TABS" value="true" />
<option name="LABEL_INDENT_SIZE" value="0" />
<option name="LABEL_INDENT_ABSOLUTE" value="false" />