Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| $config = array( | |
| 'base_url' => site_url("csi_division/index"), | |
| 'total_rows' => 200, | |
| 'per_page' => 20, | |
| 'first_link' => 'First', | |
| 'first_tag_open' => '<li>', | |
| 'first_tag_close' => '</li>', | 
| #!/bin/bash | |
| # This script zeroes out any space not needed for packaging a new Ubuntu Vagrant base box. | |
| # Run the following command in a root shell: | |
| # | |
| # bash <(curl -s https://gist.github.com/justindowning/5670884/raw/vagrant-clean.sh) | |
| function print_green { | |
| echo -e "\e[32m${1}\e[0m" | |
| } | 
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node to find it, or use it directly in the command:
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/YOUR_USERNAME/Sites; | |
| access_log /Library/Logs/default.access.log main; | |
| location / { | |
| include /usr/local/etc/nginx/conf.d/php-fpm; | |
| } | 
| /** | |
| * USB HID Keyboard scan codes as per USB spec 1.11 | |
| * plus some additional codes | |
| * | |
| * Created by MightyPork, 2016 | |
| * Public domain | |
| * | |
| * Adapted from: | |
| * https://source.android.com/devices/input/keyboard-devices.html | |
| */ | 
First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
Next.js, Nginx with Reverse proxy, SSL certificate