Skip to content

Instantly share code, notes, and snippets.

View 0xkhan's full-sized avatar
:octocat:
Embrace the Nerd Life!

0xkhan

:octocat:
Embrace the Nerd Life!
  • Germany
View GitHub Profile

Push Only dist/ Folder To Live Server

I have googled many things and explored many questions on Stack Overflow to find the best way to push only dist/ directory to live server. I couldn't find any good solution but one person on Stackoverflow suggested to look at Git Submodules and this is the best solution I could come up with. I have never heard of submodules before because almost nobody uses them. If you never heard of it too then I'll first explain what a submodule is and then I'll show you how you can use submodules to push only dist/ directory to a live server.

@0xkhan
0xkhan / xdebug_error_php8.md
Last active February 23, 2021 22:24
Cannot install: 'Make failed' due to 'asm goto' errors on MacOS

Xdebug throws an error `make` faild when installing with homebrow PHP7 or PHP8.0.1

So if you're having problems here is the fix.

If you have installed PHP with homebrew you'd use pecl install xdebug to install Xdebug.

While looking for a fix I found this issue. And there I found this link following that I found out that someone has discovered something in a commit and now they have fixed it.

Now the fix

@0xkhan
0xkhan / ssh.md
Created November 11, 2020 10:45 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test