Skip to content

Instantly share code, notes, and snippets.

View beshad's full-sized avatar

Behshad Ghorbani beshad

  • Xeba Technology Solutions Ltd. (2004)
  • Christchurch, New Zealand
  • LinkedIn in/beshadghorbani
View GitHub Profile
@beshad
beshad / Python Coding for beginners lesson 5.ipynb
Last active February 20, 2021 13:55
Coding for kids Python - Lesson 5
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beshad
beshad / Python Coding for beginners lesson 4.ipynb
Last active January 17, 2020 02:24
Coding for kids Python - Lesson 4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beshad
beshad / Python Coding for beginners lesson 3.ipynb
Last active January 17, 2020 02:24
Coding for kids Python - Lesson 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beshad
beshad / Python Coding for beginners lesson 2.ipynb
Last active January 17, 2020 02:19
Coding for kids Python - Lesson 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beshad
beshad / Python Coding for beginners-lesson-1.ipynb
Last active January 17, 2020 02:25
Coding for kids Python - Lesson 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beshad
beshad / node_nginx_ssl.md
Created September 24, 2019 10:32 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@beshad
beshad / docker_wordpress.md
Created February 19, 2019 02:27 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@beshad
beshad / install-docker-deb9.sh
Created September 5, 2018 08:23 — forked from upbeta01/install-docker-deb9.sh
Install Docker In Debian 9 (Stretch)
#!/bin/bash
#
# -----------------------
#
# This is a script that installs docker-ce (Docker Community Edition) on Debian 9
# Inspired by https://gist.github.com/frgomes/a6f889583860f5b330c06c8b46fa0f42
#
# -----------------------
# Pre-requesite
@beshad
beshad / webdev_online_resources.md
Created July 22, 2018 19:48 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
git remote add origin git@github.com:USER/REPO.git
git push origin master
or for bitbucket:
curl --user login:pass https://api.bitbucket.org/1.0/repositories/ \
--data name=REPO_NAME
# replace USER with your username and REPO with your repository/application name!