Skip to content

Instantly share code, notes, and snippets.

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

Jefferson Moreira jeffsmor

🏠
Working from home
View GitHub Profile
@machouz
machouz / facebook_leads.md
Last active October 22, 2025 19:52
Receive Facebook Ad Lead With Your Own Webhook (without Zapier)

Step-by-step guide: Get your FB Lead on your Webhook

This gist was created in 2023 and is inspired from tixastronauta and eladnava tutorial.

The Facebook API changes frequently. As a result, this guide might not be accurate.

1 - Create an App

Sign up for Facebook Developer access if you haven't already, from the same account as your Facebook Ads advertising account.

@phuze
phuze / dropbox-php-auth.md
Last active April 19, 2025 06:18
Dropbox API V2: PHP Authentication Process

Effective September 2021, Dropbox will be deprecating long-lived access tokens.

This GIST generally describes how to authenticate requests to Dropbox API v2, for anyone working on a server-side PHP Dropbox implementation.

It's important to understand three types of codes you'll encounter:

  1. Access Code - this is a one-time code that represents user-granted app access.
  2. Access Token - this is short-lived token that provides access to Dropbox API endpoints.
  3. Refresh Token - this is a long-lived token that allows you to fetch a fresh Access Token.
@goregrish
goregrish / secure_link.md
Last active June 15, 2025 12:58
Implementing Nginx ngx_http_secure_link_module with PHP
@eladnava
eladnava / server.js
Created November 13, 2020 04:28
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 = '_______________________________';
@qzm
qzm / aria2.conf
Last active October 11, 2025 02:18
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active September 18, 2025 06:58
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@GAS85
GAS85 / aria2c_webUI.md
Last active July 8, 2024 00:16
Aria2 + Ubuntu 18.04 + Apache2 + Web UI
OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24

Aria 2

1. Installation

Install aria2 package:

@jubalm
jubalm / windows-edit-hosts-file.md
Last active April 25, 2025 13:07
Quickly edit Windows hosts file

Quickly edit Windows hosts file

NOTE: Needs administrative privilege. Editing the hosts file can mess up connectivity, edit with caution

  • Right click on your Desktop (can be any folder you choose)

  • Select New > Shortcut and drop the snippet below to the next prompt.

     "C:\Program Files (x86)\Sublime Text 3\sublime_text.exe" "C:\WINDOWS\System32\drivers\etc\hosts"
    
@h0tw1r3
h0tw1r3 / aria2.daemon
Last active February 27, 2025 10:16
Aria2c systemd service
continue
dir=/var/www/downloads
file-allocation=falloc
max-connection-per-server=4
max-concurrent-downloads=2
max-overall-download-limit=0
min-split-size=25M
rpc-allow-origin-all=true
rpc-secret=YouShouldChangeThis
input-file=/var/tmp/aria2c.session