Node Setup
In order for some npm packages to work (those that require compiling code from source, for example), you will need to install the build-essential package: Removing Node.js
Basic React Setup
Required: NodeJS Note npx on the first line is not a typo — it’s a package runner tool that comes with npm 5.2+.
Configure shell
Step 1 – Install and configure ZSH Step 2 – Install and configure ZSH Step 3 – Change default themes The Oh-my-zsh framework provides many themes for your zsh shell, head to the link below to take a look at the available options. https://github.com/robbyrussell/oh-my-zsh/wiki/ThemesAlternatively, you can go to the ‘themes’ […]
Docker – 02 Win/Mac
docker login ;docker push vasiliokas/cheers2019 docker login &&docker push vasiliokas/cheers2019 Windows users (use PowerShell): docker login ;docker push vasiliokas/cheers2019 docker run -it –rm vasiliokas/cheers2019 Share your image on Docker HubOnce you’re ready to share your container with the world, push the image that describes it to […]
PHP Basics
Predefined Variables A superglobal is a predefined variable that is always accessible, regardless of scope. Forms Forms The purpose of the PHP superglobals $_GET and $_POST is to collect data that has been entered into a form. The example below shows a simple HTML form that includes two input fields […]
Modx
Setup a Modx CMS on Docker.mkdir modx_doc ~/code/Docker_project: cd modx_doc~/code/Docker_projects/modx_doc git clone https://github.com/modxcms/docker-modx.gitEdit the docker-compose yml file:
Git Permissions – 02
GIT push: permission denied (public key) git push origin testbranchPermission denied (publickey).fatal: Could not read from remote repository. Where and how do we define public / private keys? git remote -v returns: — I was facing same problem, here is what I did that worked for me. Use ssh instead […]
Git basics – 01
Command list
SSH TRICKS
1) Copy ssh keys to user@host to enable password-less ssh logins. ssh-copy-id user@host To generate the keys use the command ssh-keygen 2) Start a tunnel from some machine’s port 80 to your local post 2001 ssh -N -L2001:localhost:80 somemachine Now you can acces the website by going to http://localhost:2001/ 3) […]