Skip to content

Instantly share code, notes, and snippets.


Faraz Fallahi fffaraz

View GitHub Profile
View https_forward_proxy.js
// HTTP forward proxy server that can also proxy HTTPS requests
// using the CONNECT method
// requires
var httpProxy = require('http-proxy');
var url = require('url');
var net = require('net');
var http = require('http');
View StringConstant.cpp
#include <iostream>
#include <string>
#include <vector>
#include <stdexcept>
#include <type_traits>
// The following is evil template "black magic". Only because we write it instead
// of the C++ standards committee. This first section is effectively a C++11
fffaraz /
Created Aug 23, 2016 — forked from bonzanini/
Twitter Stream Downloader
consumer_key = 'your-consumer-key'
consumer_secret = 'your-consumer-secret'
access_token = 'your-access-token'
access_secret = 'your-access-secret'
fffaraz /
Created May 22, 2017 — forked from azadkuh/
Catch Unix signals in Qt applications

Unix signals in Qt applications

It's quite easy to catch unix signals in Qt applications. you may like to ignore or accept them.

#include <QCoreApplication>

#include <signal.h>
#include <unistd.h>