Skip to content

Instantly share code, notes, and snippets.

View DavidAlejandro18's full-sized avatar
馃彔
Working from home

David Tovar DavidAlejandro18

馃彔
Working from home
  • Proaxis
  • Monterrey, Nuevo Leon, M茅xico
View GitHub Profile
@hackermondev
hackermondev / zendesk.md
Last active April 19, 2025 04:39
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鈥檝e probably come across Zendesk.

Zendesk is a customer service tool used by some of the world鈥檚 top companies. It鈥檚 easy to set up: you link it to your company鈥檚 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鈥檝e 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

@marcomarkkez
marcomarkkez / randomgroups.py
Created November 15, 2022 06:09
Script en Python para dividir tareas en grupos (funciona bien con: tareas = miembros, tareas > miembros, tareas < miembros)
import random
def randGroups():
print("Ingresa los nombres de los miembros o grupos separados por comas")
miembros = input()
print("Ingresa las tareas separadas por coma")
tareas = input()
#print("Miembros: ",miembros)
#print("Tareas: ",tareas)
@bcernesto
bcernesto / animales.php
Last active March 25, 2019 22:48
驴C贸mo comprar铆as 100 animales con 100 pesos si: las vacas cuestan 10 pesos, los borregos cuestan 3 pesos, y los chivos cuestan 50 centavos? Soluci贸n en php
<?php
/* Reto propuesto por Whatsapp en el grupo Programando accesible.
C贸mo comprar铆as 100 animales con 100 pesos si:
Las vacas cuestan 10 pesos,
Los borregos cuestan 3 pesos,
Y los chivos cuestan 50 centavos (o c茅ntimos, la moneda no importa)
Para resolverlo se puede tener en cuenta el siguiente sistema de ecuaciones como premisas:
vacas + borregos + chivos = 100 animales
vacas a 10 pesos + borregos a 3 pesos + chivos a 50 centavos = 100 pesos
Debe comprarse al menos un animal de cada tipo.
@Klerith
Klerith / parse-jwt.js
Created March 15, 2018 15:07
Parse - JWT - Obtener Payload y fecha de creaci贸n y expiraci贸n
function parseJwt (token) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
return JSON.parse(window.atob(base64));
};
@OscarAbadFolgueira
OscarAbadFolgueira / conexion-base-datos-mysql.php
Last active October 21, 2022 20:35
Ejemplo de conexi贸n a base de datos en php
<?php
// Ejemplo de conexi贸n a base de datos MySQL con PHP.
//
// Ejemplo realizado por Oscar Abad Folgueira: http://www.oscarabadfolgueira.com y https://www.dinapyme.com
// Datos de la base de datos
$usuario = "root";
$password = "";
$servidor = "localhost";
$basededatos = "alumnos";
@alfchee
alfchee / NumeroALetras.js
Last active April 11, 2025 02:32
C贸digo en JavaScript que convierte n煤meros a letras, bastante 煤til para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@rxaviers
rxaviers / gist:7360908
Last active April 20, 2025 03:24
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 馃槃 :smile: 馃槅 :laughing:
馃槉 :blush: 馃槂 :smiley: 鈽猴笍 :relaxed:
馃槒 :smirk: 馃槏 :heart_eyes: 馃槝 :kissing_heart:
馃槡 :kissing_closed_eyes: 馃槼 :flushed: 馃槍 :relieved:
馃槅 :satisfied: 馃榿 :grin: 馃槈 :wink:
馃槣 :stuck_out_tongue_winking_eye: 馃槤 :stuck_out_tongue_closed_eyes: 馃榾 :grinning:
馃槜 :kissing: 馃槞 :kissing_smiling_eyes: 馃槢 :stuck_out_tongue:
@rclark
rclark / Issues.md
Last active July 9, 2024 20:16
Leaflet WMS + GetFeatureInfo

There are a bunch of reasons why this is convoluted, mostly in building the URL to make the request:

  1. You have to rely on an AJAX request, this example uses jQuery
  2. To make a GetFeatureInfo request, you must provide a BBOX for a image, and the pixel coordinates for the part of the image that you want info from. A couple of squirrely lines of Leaflet code can give you that.
  3. Output formats. The info_format parameter in the request. We don't know a priori which will be supported by a WMS that we might make a request to. See Geoserver's docs for what formats are available from Geoserver. That won't be the same from WMS to WMS, however.
  4. WMS services return XML docs when there's a mistake in the request or in processing. This sends an HTTP 200, which jQuery doesn't think is an error.
git tag -am "annotation goes here" tagname_goes_here # cut a tag
git tag -d tagname_goes_here # burn it
git tag -am "annotation goes here" tagname_goes_here # cut another tag
git push --tags # push tags to remote
git push origin :refs/tags/tagname_goes_here # delete tag from remote