Kill all process by username

ps aux | grep <USERNAME> | tr -s ' ' | cut -d ' ' -f 2 | xargs sudo kill -9 {}

ReverseManyRelatedObjectsDescriptor has no method add

for MODEL_WITH_M2M_FIELD_INSTANCE in LIST_OF_MODEL_WITH_M2M_INSTANCES:
    orm.MODEL_WITH_M2M_FIELD.represent.__set__(MODEL_WITH_M2M_FIELD_INSTANCE, [M2M_INSTANCE,]) 

replstr may not be empty

Caused cuz
cat ~/Desktop/1.req | xargs -I {} echo {}

fixed cuz :D
cat ~/Desktop/1.req | xargs -I {1} echo {1}

Man levels

Man levels

man1  User programs
man2  System calls
man3  Library calls
man4  Special files
man5  File formats
man6  Games
man7  Miscellaneous
man8  System administration


Unable to locate 'framework.dir' property from sencha.cfg

Found solving was:
 sencha -sdk ../sdk/<EXTJS_FOLDER> generate app <APP_NAME> <APP_PATH>

Git restore deleted file from last commit

git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"

MySQL query for Future :D

select CONCAT("insert into DB1.", table_name, " select * from DB1_BACKUP ", table_name, " ON DUPLICATE KEY UPDATE DB1.", table_name, ".id=DB1_BACKUP.", table_name, ".id;") from information_schema.tables where table_schema='DB1' and table_name regexp "<TABLE NAME>";