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| #define UIColorFromRGB(rgbValue) [UIColor \ | |
| colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ | |
| green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ | |
| blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] | |
| cell.textColor = UIColorFromRGB(0x333333); |
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 8000Before we can setup PostGIS we need to have a local version of Postgresql installed and running. The most effecient way to do this is to download and install Postgres.app.
Once Postgres.app is installed in your computers /Applications directory. Open the Terminal and enter the following two commands
psql -d DATABASE_NAME -f /Applications/Postgres.app/Contents/Versions/9.3/share/postgresql/contrib/postgis-2.1/postgis.sql
| extension CMDeviceMotion { | |
| func gaze(atOrientation orientation: UIInterfaceOrientation) -> SCNVector4 { | |
| let attitude = self.attitude.quaternion | |
| let aq = GLKQuaternionMake(Float(attitude.x), Float(attitude.y), Float(attitude.z), Float(attitude.w)) | |
| let final: SCNVector4 | |
| switch orientation { |
Documentation on how to override or extend the default nginx config on Elastic Beanstalk running om Amazon Linux 2. Correct as of 2021-08-01. Also see the general documentation on how to extend linux servers.
All references to placing files refer to putting a file at this location in your application bundle. You should never modify a file directly at your Elastic Beanstalk server by ssh:ing to the server, since such a change will be wiped whenever your servers autoscale or if you rebuild your application completely.
The easiest extension is to add a new location block to the main server block. This can be done by placing a .conf file with a server block in the folder .platform/nginx/conf.d/elasticbeanstalk. Any such file is automatically included in the main server block.