Skip to content

Instantly share code, notes, and snippets.

View denys281's full-sized avatar

Denys Kurets denys281

  • Ivano-Frankivsk, Ukraine
View GitHub Profile

Task (level1)

REST service Create a RESTful stand alone web application that is able to persist collections of GPS points (collection in JSON format). These collections are called traces. You can download sample traces from here.

Keep in mind that this web application should work for a large amount of users and that it is likely to receive about 10 times more read than write requests.

This is an example trace:

[{ "latitude": 32.9377784729004, "longitude": -117.230392456055 },

@denys281
denys281 / hls_segmenter_compile
Last active August 29, 2015 14:12
HTTP-Live-Video-Stream-Segmenter-and-Distributor
## Ubuntu 14.04 ##
sudo apt-get install libav-tools
sudo apt-get install libavformat-dev
sudo apt-get install libpthread-stubs0-dev
sudo apt-get install lib32z1-dev
sudo apt-get install libavcodec-extra-54
sudo apt-get install libfaad-dev
sudo apt-get install libmp3lame-dev
Model.all.to_a.each do |p| p.field_translations = { "uk" => p.attributes['field'], "en" => "" }; p.save!; end
@denys281
denys281 / key.sh
Created February 15, 2014 15:48
Add local public key to server
ssh-copy-id user@hos
@denys281
denys281 / apache2.conf
Created February 11, 2014 09:48
symfony2 apache2 virtual host (with nginx proxy)
<VirtualHost *:8080>
ServerAdmin admin@gmail.com
ServerName mysite.com
ServerAlias mysite.com
DocumentRoot /home/user/sites/mysite.com/current/web
AssignUserId dev dev
DirectoryIndex index.php
@denys281
denys281 / nginx.conf
Last active January 22, 2016 15:58
symfony2 nginx virtual host (proxy for apache2)
server {
listen *:80;
server_name mysite.com;
access_log /home/user/sites/mysite.com/nginx-log/access.log;
access_log /home/user/sites/mysite.com/nginx-log/error.log;
location / {
@denys281
denys281 / nginx.conf
Created February 11, 2014 09:36
phpmyadmin nginx virtual host (php-fpm)
server {
# Listen on port 81
listen 81;
# Server name being used (exact name, wildcards or regular expression)
# server_name phpmyadmin.my;
root /usr/share/phpmyadmin;
@denys281
denys281 / nginx.conf
Last active September 13, 2017 23:31
Symfony2 nginx virtual host (php-fpm)
server {
listen 80;
# Server name being used (exact name, wildcards or regular expression)
server_name mysite.com;
client_max_body_size 20M;
# Document root, make sure this points to your Symfony2 /web directory
root /home/user/sites/mysite.com/web;