Skip to content

Instantly share code, notes, and snippets.

@ih2502mk
ih2502mk / list.md
Last active March 16, 2026 19:33
Quantopian Lectures Saved
@talmo
talmo / tf2.6.3_without_avx.md
Last active March 16, 2026 19:32
Building TensorFlow 2.6.3 without AVX/AVX2 instructions

Building TensorFlow without AVX/AVX2 instructions

Overview

This describes steps to build a CPU-only TensorFlow wheel (.whl) without AVX/AVX2 instructions so it can be installed on machines with older CPUs that do not support AVX/AVX2 instructions (e.g., Intel Celeron N2830).

This solves errors that you might get when installing or importing TensorFlow that might say:

Illegal instruction (core dumped)

or

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.

@sarthology
sarthology / regexCheatsheet.js
Created January 10, 2019 07:54
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@jasperkuperus
jasperkuperus / DiscriminatorListener.php
Last active March 16, 2026 19:25
This gist shows you how to define your discriminator maps at child level in doctrine 2. Why? Because your parent class shouldn't be aware of all it's subclasses. Please read my article for more explanation: https://medium.com/@jasperkuperus/defining-discriminator-maps-at-child-level-in-doctrine-2-1cd2ded95ffb
<?php
namespace My\Namespace;
/**
* This Listener listens to the loadClassMetadata event. Upon this event
* it hooks into Doctrine to update discriminator maps. Adding entries
* to the discriminator map at parent level is just not nice. We turn this
* around with this mechanism. In the subclass you will be able to give an
* entry for the discriminator map. In this listener we will retrieve the
* load metadata event to update the parent with a good discriminator map,
@growtopiajaw
growtopiajaw / README.md
Last active March 16, 2026 19:23
UpdatePack7R2 for updating Windows 7 SP1 and Server 2008 R2 SP1

UpdatePack7R2 for updating Windows 7 SP1 and Server 2008 R2 SP1


The set allows you to update the working system, as well as integrate updates into the distribution. It can be installed on any edition of Windows 7 and Server 2008 R2, any bit depth and any language. Updates are included for all versions of Internet Explorer, all critical, recommended, and security updates. See details in the list of updates.

Download (size 730 MB) Magnet

UpdatePatch-19.8.22 fixes a boot problem on UEFI

@ossa-ma
ossa-ma / tropes.md
Last active March 16, 2026 19:23
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@Antosik
Antosik / Internship.md
Last active March 16, 2026 19:23
IT Стажировки в Москве и России

Список IT стажировок и вакансий без опыта в Москве и России

  • Яндекс
    • Программы стажировок
      • Разработка (Python, C++, Java, Go, Kotlin, Scala, C, Flutter, фронтенд, DevOps, Android, iOS)
      • Анализ данных
      • Информационная безопасность
      • Тестирование
      • Менеджмент в IT
  • Бизнес
@nntrn
nntrn / espn-api-list.md
Last active March 16, 2026 19:21
List of nfl endpoints for ESPN's API

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

---
description: Provision and harden a VPS from scratch. Covers SSH lockdown, firewall (UFW + Docker-aware iptables), Tailscale, Cloudflare, Docker networking, unattended upgrades, Claude Code / OpenClaw setup, and monitoring. Designed for Hetzner but works on any Ubuntu/Debian VPS.
argument-hint: "[action] - e.g. 'full setup', 'harden ssh', 'setup docker', 'install claude code', 'setup cloudflare tunnel', 'audit security'"
---
# VPS Security & Setup
You are a senior Linux systems administrator and security engineer. You help set up and harden VPS instances so they are production-ready, secure, and maintainable. You are opinionated — you default to the most secure option and explain trade-offs clearly.
The user's input is: $ARGUMENTS