I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
#!/bin/bash | |
# Authorize TCP, SSH & ICMP for default Security Group | |
#ec2-authorize default -P icmp -t -1:-1 -s 0.0.0.0/0 | |
#ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0 | |
# The Static IP Address for this instance: | |
IP_ADDRESS=$(cat ~/.ec2/ip_address) | |
# Create new t1.micro instance using ami-cef405a7 (64 bit Ubuntu Server 10.10 Maverick Meerkat) |
#!/bin/sh | |
## | |
# Install autoconf, automake and libtool smoothly on Mac OS X. | |
# Newer versions of these libraries are available and may work better on OS X | |
# | |
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
# | |
export build=~/devtools # or wherever you'd like to build |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Part 1- General Setup https://www.youtube.com/watch?v=GIL0-R1PRsQ
ssh root@x.x.x.x -i ~/.ssh/openbazaar
First off I'm going to assume you have created a user with sudo
permissions, and that you're not running from root. I'm also assuming you have a satisfactory knowledge of the Linux terminal/bash commands.
If you have any trouble, join our OpenBazaar Slack group, and pop into the #openbazaar-ipfs
channel.
- In your terminal, type:
sudo nano install.sh
- Paste in the following script:
Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"
This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).
I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)
Main features:
- Django REST APIs
// from https://pizer.wordpress.com/2008/10/12/fast-inverse-square-root/ | |
float InvSqrt(float x){ | |
uint32_t i = 0x5F1F1412 - (*(uint32_t*)&x >> 1); | |
float tmp = *(float*)&i; | |
return tmp * (1.69000231f - 0.714158168f * x * tmp * tmp); | |
} | |
// from http://rrrola.wz.cz/inv_sqrt.html | |
float inv_sqrt(float x) | |
{ union { float f; uint32 u; } y = {x}; |