Skip to content

Instantly share code, notes, and snippets.

View adibenc's full-sized avatar
🎯
Focusing

M Adib zamzam adibenc

🎯
Focusing
View GitHub Profile

AlAdhan API Documentation

الأذَان

Overview

The AlAdhan API is a collection of RESTful web services providing accurate Islamic prayer times, Hijri calendar conversions, Qibla direction calculations, and other useful Islamic data. The API is designed to be easy to use and integrate into applications, websites, and other services.

API Base URL: https://api.aladhan.com/v1

@hackermondev
hackermondev / zendesk.md
Last active June 18, 2025 17:12
1 bug, $50,000+ in bounties, how Zendesk intentionally left a backdoor in hundreds of Fortune 500 companies

hi, i'm daniel. i'm a 15-year-old with some programming experience and i do a little bug hunting in my free time. here's the insane story of how I found a single bug that affected over half of all Fortune 500 companies:

say hello to zendesk

If you've spent some time online, you’ve probably come across Zendesk.

Zendesk is a customer service tool used by some of the world’s top companies. It’s easy to set up: you link it to your company’s support email (like [email protected]), and Zendesk starts managing incoming emails and creating tickets. You can handle these tickets yourself or have a support team do it for you. Zendesk is a billion-dollar company, trusted by big names like Cloudflare.

Personally, I’ve always found it surprising that these massive companies, worth billions, rely on third-party tools like Zendesk instead of building their own in-house ticketing systems.

your weakest link

@dannguyen
dannguyen / README.openai-structured-output-demo.md
Last active May 25, 2025 00:53
A basic test of OpenAI's Structured Output feature against financial disclosure reports and a newspaper's police blotter. Code examples use the Python SDK and pydantic for the schema definition.

Extracting financial disclosure reports and police blotter narratives using OpenAI's Structured Output

tl;dr this demo shows how to call OpenAI's gpt-4o-mini model, provide it with URL of a screenshot of a document, and extract data that follows a schema you define. The results are pretty solid even with little effort in defining the data — and no effort doing data prep. OpenAI's API could be a cost-efficient tool for large scale data gathering projects involving public documents.

OpenAI announced Structured Outputs for its API, a feature that allows users to specify the fields and schema of extracted data, and guarantees that the JSON output will follow that specification.

For example, given a Congressional financial disclosure report, with assets defined in a table like this:

@joshuat
joshuat / gist:142d5e28e07689ef51ea4b4ecd58b408
Created March 3, 2024 07:13
Known Meta domains (excluding subd0mains)
facebook.com
instagram.com
threads.net
meta.com
fb.me
facebook.com.ar
fbsbx.com
messenger.com
serverhub.net.nz
facebook-domain-names.com
@adtac
adtac / Dockerfile
Last active May 16, 2025 08:58
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@dangovorenefekt
dangovorenefekt / blockmetatwitter.md
Last active January 14, 2025 22:25
Block Meta and Twitter (nginx)
@arisnew
arisnew / odoo-blank-after-restore.md
Created February 9, 2023 13:29
Regenerate asset bundle odoo 16 (atau versi lain) via shell (contoh odoo di docker)
docker exec -it --user=odoo odoo /bin/bash

cd /usr/bin/

odoo shell -d NAMA_DB -c /etc/odoo/odoo.conf --db_host NAMA_CONTAINER_DB --db_password PASSWORD_DB

domain = [('res_model', '=', 'ir.ui.view'), ('name', 'like', 'assets_')]

env['ir.attachment'].search(domain).unlink()
@ilyamon
ilyamon / php.ini
Last active October 12, 2023 09:08
Default php.ini 8.0
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active June 19, 2025 03:48
A guide to replacing the deprecated `seaborn.distplot` function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adibenc
adibenc / docker-compose.yml
Last active April 26, 2022 13:24
example docker-compose.yml for kong, postgres and konga, a bit fixes
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong