Skip to content

Instantly share code, notes, and snippets.

View hose1021's full-sized avatar

Michael Hose hose1021

View GitHub Profile

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.

@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active October 25, 2025 13:15
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

<?php
Builder::macro('deferredPaginate', function ($perPage = null, $columns = ['*'], $pageName = 'page', $page = null) {
$model = $this->newModelInstance();
$key = $model->getKeyName();
$table = $model->getTable();
$paginator = $this->clone()
// We don't need them for this query, they'll remain
// on the query that actually gets the records.
@levelsio
levelsio / git_graph.php
Last active October 9, 2025 20:16
GitHub style graph in PHP + CSS
<style>
.git-graph {
text-align: left;
line-height: 1;
}
.git-graph-row {
clear: both;
text-align: left;
}
.git-graph-cell {
@shodty
shodty / README.md
Last active January 15, 2022 17:34
Create a Toggle button for the right sidebar in Roam.

Move the right sidebar toggle to a button in the upper right icon tray.

Demo

You can add this to Roam using {{[[roam/js]]}}

Grab the code in roam-sidebar-toggle.js and drop it in a javascript code block, nested underneath a {{[[roam/js]]}} block:

  ```javascript```
@Miri92
Miri92 / Payment.php
Created August 9, 2020 07:56
KapitalBank Payment API with PHP Laravel framework - Example snippet
<?php
namespace App\Models;
use App\Database\EloquentModel as Model;
class Payment extends Model
{
protected $fillable = ['order_id', 'session_id', 'currency', 'order_status', 'order_description', 'amount', 'payment_url', 'status_code','order_check_status','language_code'];
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active October 25, 2025 23:25
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@tuxedocat
tuxedocat / CityLights.icls
Last active August 3, 2024 13:35
[WIP] City Lights Color Scheme for IntelliJ IDEA: manually ported from https://github.com/Yummygum/city-lights-syntax-vsc
<scheme name="CityLights" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2019-01-04T13:46:48</property>
<property name="ide">Idea</property>
<property name="ideVersion">2018.3.2.0.0</property>
<property name="modified">2019-01-04T13:46:55</property>
<property name="originalScheme">CityLights</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="a3be8c" />
@whoisryosuke
whoisryosuke / ApiController.php
Created July 28, 2018 00:55
Laravel - API - Base Controller with standard API methods (index/store/etc) and authorization middleware ++ Extended controller and the necessary properties
<?php
namespace KushyApi\Http\Controllers;
use Illuminate\Http\Request;
use Spatie\QueryBuilder\QueryBuilder;
use KushyApi\Http\Controllers\Controller;
abstract class ApiController extends Controller
{
@mfd
mfd / 06.png
Last active September 6, 2025 20:50
Gilroy font
06.png