Skip to content

Instantly share code, notes, and snippets.

View AlexDev404's full-sized avatar
👾
Ruby2D!

Immanuel Daviel A. Garcia AlexDev404

👾
Ruby2D!
View GitHub Profile
@AlexDev404
AlexDev404 / airport_database.sql
Last active February 28, 2024 14:26
Airport Database Schema
-- Airport database
-- Table for airports
CREATE TABLE airports (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
city VARCHAR(255) NOT NULL,
country VARCHAR(255) NOT NULL,
arrivals INT NOT NULL,
departures INT NOT NULL
@AlexDev404
AlexDev404 / hulk.py
Created November 30, 2023 03:08 — forked from madagra/hulk.py
HULK Python Script : Denial-of-Service (DoS) attack
# ----------------------------------------------------------------------------------------------
# HULK - HTTP Unbearable Load King
#
# this tool is a dos tool that is meant to put heavy load on HTTP servers in order to bring them
# to their knees by exhausting the resource pool, its is meant for research purposes only
# and any malicious usage of this tool is prohibited.
#
# author : Barry Shteiman , version 1.0
# ----------------------------------------------------------------------------------------------
import urllib2

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

Google has an amazing free API endpoint for text completions ,

below are some examples of the completions I got and the python code to interact with the API

Star this gist if this was helpful to you. Enjoy text completions

user@linux:$ python3 google_text_completion.py
 > hackers are
hackers are watching you
@AlexDev404
AlexDev404 / cheems.js
Created October 6, 2023 00:04
Binary Search Tree (BST) methods pseudocode
// INORDER TRAVERAL OF A TREE
// TRAVERSE THE TREE IN ORDER
IF tree NOT NULL
Inorder(tree->left)
Visit(tree->data)
Inorder(tree->right)
// Inorder(node *node)
// SORT THE NODES IN ASCENDING ORDER
VOID Inorder(node *node)
@AlexDev404
AlexDev404 / SDLC.md
Created September 19, 2023 22:46 — forked from mdang/SDLC.md
Lesson: SDLC

The Software Development Life Cycle

Learning Objectives

Conceptual

  • Explain what SDLC is and why we use it
  • Provide a general overview of what "Agile" means and compare it to Waterfall
  • Explain what SCRUM is, and how it relates to agile.
  • Describe the process of requirements gathering.
  • Explain what a user story is, and what specific points it should include.
@AlexDev404
AlexDev404 / list.cpp
Created September 15, 2023 00:21
Traverse through list and find if two halves match.
// Copyright (c) 2023 Immanuel Garcia
#include <iostream>
#include <string>
using std::string, std::cout, std::endl;
class Node {
public:
char data;
Node *next;
Node *prev;
@AlexDev404
AlexDev404 / idk.cpp
Created September 14, 2023 03:46
Find the middle of a linked list
void printMiddle(Node* head) {
if (head == NULL) {
// Return because the list is empty
return;
}
Node* slow_ptr = head; // This will traverse the list one element at a time
Node* fast_ptr = head; // This will go through the list two elements at a time
while (fast_ptr != NULL && fast_ptr->next != NULL) {
$ pkgutil --expand swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx.pkg swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx
$ cd swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx
$ cd swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx-package.pkg
$ mv Payload Payload.zip
$ open .
double click to extract
$ cd Payload\ 2/usr/bin
$ ./swiftc -v
Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75)
@AlexDev404
AlexDev404 / agency.csv
Last active June 6, 2023 02:24
NYC GTFS Data
agency_id agency_name agency_url agency_timezone agency_lang agency_phone
MTA NYCT MTA New York City Transit http://www.mta.info America/New_York en 718-330-1234