Skip to content

Instantly share code, notes, and snippets.

View jobs-git's full-sized avatar
🎯
Focusing

Jobs Gate jobs-git

🎯
Focusing
  • Photonics Research Lab
  • Philippines
View GitHub Profile
@jobs-git
jobs-git / nginx.conf
Created October 2, 2020 13:16 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@jobs-git
jobs-git / private_fork.md
Created July 27, 2019 12:14 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@jobs-git
jobs-git / server.c
Last active May 30, 2019 21:20
Tarantool-c slow
//plain http server based on rosseta
//expected clients are http browser
//tested with wrk resulted to 30,000 rps
//wrk http://127.0.0.1:8080 -c 15 -t 3 -d 5
//compile with
//gcc server.c -o server
#include <stdio.h>
#include <unistd.h>
@jobs-git
jobs-git / tar_async.cpp
Created January 30, 2019 03:24 — forked from danikin/tar_async.cpp
Asynchronous client for Tarantool with synchronous interface
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <tarantool/tarantool.h>
#include <tarantool/tnt_net.h>
#include <tarantool/tnt_opt.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>