Skip to content

Instantly share code, notes, and snippets.

View jonathands's full-sized avatar
😶‍🌫️

Jonathan DS jonathands

😶‍🌫️
View GitHub Profile
@PrenSJ2
PrenSJ2 / INSTAGRAM_SETUP.md
Last active August 10, 2026 22:38
A comprehensive guide for implementing Instagram content publishing using the Instagram Platform API (Instagram Direct Login) that launched in July 2024.

Instagram Platform API Integration Guide (Oct 2025)

This guide provides complete setup instructions for Instagram integration using the Instagram Platform API (Instagram Direct Login) that launched in July 2024.

Overview

The Instagram Platform API allows direct authentication with Instagram accounts without requiring a Facebook Page connection. This implementation supports both Business and Creator accounts for content publishing.

Prerequisites

@udaylunawat
udaylunawat / instagram_posts_saver.MD
Last active June 9, 2026 19:41
Save instagram posts as csv using chrome developer tools
(async function executeInstagramPostCollection(maxPosts = 10) {
    console.log(`Starting Instagram post collection (limit: ${maxPosts} posts)...`);

    // Verify we're on Instagram
    if (!window.location.hostname.includes('instagram.com')) {
        console.error("This script should be run on Instagram.com");
        return;
    }
    
@fabianem
fabianem / Code.gs
Last active November 28, 2025 18:30
Google Apps Script to count emails by sender in batches
// Google Apps Script for counting emails by sender in batches. Stopps and resumes after 5mins of processing to avoid reaching script runtime limit.
// 1. Allow required permissions
// 2. Add gmail service to project
// 3. Fill <your-email> in `runProcessor` function and adjust query if needed
// 4. Run function `runProcessor`
// 5. Result will be saved in a new spreadsheet
// Based on ideas from https://stackoverflow.com/a/59222719/5162536 and
// https://medium.com/geekculture/bypassing-the-maximum-script-runtime-in-google-apps-script-e510aa9ae6da
@leodevbro
leodevbro / gmail-stats.gs
Last active April 20, 2026 19:23
In Gmail inbox, Find sender with most mail threads
// Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8
// v2.5
// Google Apps Script is a coding language based on JavaScript.
// This Apps Script code helps us to sort addresses by most threads.
// A thread is a group of messages, as a conversation.
const modes = {
inbox: "inbox", // to analyze threads in the "Inbox" folder
outbox: "outbox", // to analyze threads in the "Sent" folder
@rsantana74
rsantana74 / linux xdebug config
Last active July 8, 2020 11:26
xdebug-install-usage
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
@gaearon
gaearon / modern_js.md
Last active March 31, 2026 02:55
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@justsml
justsml / fetch-api-examples.md
Last active May 25, 2026 06:14
JavaScript Fetch API Examples
@eddmann
eddmann / modify-ec2-instance-type.js
Created November 3, 2017 15:32
Scheduled EC2 Instance Type Modification using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/_gJyK1-NGq8
// ModifyEC2InstanceType
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const { instanceId, instanceRegion, instanceType } = event;
const ec2 = new AWS.EC2({ region: instanceRegion });
@ramiroaznar
ramiroaznar / query.sql
Created August 12, 2016 12:17
How to find duplicate values with PostgreSQL
select * from table t1
where (select count(*) from table t2
where t1.field = t2.field) > 1
order by field
@zburgermeiszter
zburgermeiszter / JsonSerializableWithReflection.php
Last active September 10, 2020 18:40
PHP JsonSerializable with Reflection in Trait
<?php
trait JsonSerialize
{
function jsonSerialize()
{
$reflect = new ReflectionClass($this);
$props = $reflect->getProperties(ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE);