Skip to content

Instantly share code, notes, and snippets.

View darkdiesel's full-sized avatar
🏠
Working from home

Igor Peshkov darkdiesel

🏠
Working from home
View GitHub Profile
@darkdiesel
darkdiesel / php.ini
Last active February 4, 2024 15:55
Xdebug Configuration
# xdebug 2
[XDebug]
zend_extension = "d:\dev\xampp\php\ext\php_xdebug.dll"
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "d:\dev\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
@darkdiesel
darkdiesel / bash.sh
Last active February 4, 2024 15:57
RSA key generation and get pem from rsa
# generate race key pair
ssh-keygen -t rsa -f cloud-key
# get pem value from public key
ssh-keygen -f cloud-key.pub -e -m pem
@darkdiesel
darkdiesel / searc_replace_db.cli.sh
Created January 25, 2024 09:03
WP replace host in db
# run this from console to update db
php srdb.cli.php -h "127.0.0.1" -n "dbname" -u dbuser -p "dbuserpass" -P 3310 -s "https://host.old" -r "https://host.new" --debug true
@darkdiesel
darkdiesel / docker file.md
Last active May 23, 2019 13:25
docker comands

Docker File

  1. Run git bash and go to the folder ~/.ssh
  2. If folder not exist create it by command mkdir ~/.ssh and enter to it
  3. Run comand ssh-keygen -t rsa -C "your.email@domain.tld" to generate key and set requested options
  4. Got to github, add content of file ~/.ssh/id_rsa.pub in ssh keys settings