Skip to content

Instantly share code, notes, and snippets.

View theeraphon's full-sized avatar
🏠
Working from home

Theeraphon Samathi theeraphon

🏠
Working from home
View GitHub Profile
@theeraphon
theeraphon / server.js
Created September 3, 2021 10:25 — forked from eladnava/server.js
Get Facebook Ads Lead Notifications in Realtime with Node.js
const axios = require('axios');
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
const port = 3000;
// Enter the Page Access Token from the previous step
const FACEBOOK_PAGE_ACCESS_TOKEN = '_______________________________';
@theeraphon
theeraphon / [FEDORA] gitkraken
Created July 15, 2018 19:22 — forked from aelkz/[FEDORA] gitkraken
How to install gitkraken on Fedora [25,26,27] + launcher icon
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/
cd /opt
@theeraphon
theeraphon / cors.nginxconf
Created December 24, 2017 18:36 — forked from pauloricardomg/cors.nginxconf
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {