Skip to content

Instantly share code, notes, and snippets.

View meherett's full-sized avatar
🎯
Focusing

Meheret T. Batu meherett

🎯
Focusing
View GitHub Profile
@meherett
meherett / nginx.exe-stop.md
Created January 8, 2022 05:31
Stop nginx.exe sever on windows command.
wmic process where name='nginx.exe' delete
@meherett
meherett / no-suggesion.md
Last active December 23, 2021 04:32
Kali Linux Disable Terminal Suggestion
cat ~/.zshrc | grep -n suggesion

It prints lines of suggestion

gedit /home/<username>/.zshrc
@meherett
meherett / go env
Created May 21, 2020 13:52
GO LANGUAGE ENVIRONMENT PATH SETUP
Create the following folders:
GolandProjects -> src -> github.com -> username -> repo
pkg
bin
Set the following path:
GOROOT -> Main Go language path (eg:- c:\Go)
GOPATH -> Custom path (eg:- C:\Users\{username}\GolandProjects)
@meherett
meherett / MySQL.md
Last active October 10, 2019 13:41
MySQL Password Set On Linux

service mysql start

mysql -u root -p

USE mysql;
UPDATE mysql.user SET authentication_string=password('meherett') WHERE User='root' and Host='localhost';
UPDATE user SET plugin="mysql_native_password"; 
FLUSH PRIVILEGES;
quit;
@meherett
meherett / kali_ntpdate.sh
Last active December 23, 2021 04:32
Kali Linux current time and date changer
apt-get install ntpdate
ntpdate in.pool.ntp.org
@meherett
meherett / git.sh
Last active December 23, 2021 04:26
Changing old git commit name by using old email
git filter-branch --env-filter '
OLD_EMAIL="meherett-old@zoho.com"
CORRECT_NAME="meherett"
CORRECT_EMAIL="meherett@zoho.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
@meherett
meherett / sources.list
Created October 3, 2018 10:38
Kali Sources.list copy into /etc/apt/sources.list
# It is FIX everything [meherett]
deb http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
deb-src http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
@meherett
meherett / pyenv_installation.sh
Created October 3, 2018 10:14
pyenv simple installation on terminal ["sh pyenv_installation.sh"]
#!/bin/bash
sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl
sudo pip install virtualenvwrapper
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc