Skip to content

Instantly share code, notes, and snippets.

@Julynx
Julynx / 15_python_tips.md
Last active March 20, 2026 02:56
15 Python Tips To Take Your Code To The Next Level!
@sethmlarson
sethmlarson / elasticsearch-orjson-serializer.py
Last active October 21, 2026 07:44
JSON serializer for Elasticsearch Python client that uses the 'orjson' library for performance
"""JSON serializer for Elasticsearch Python client that
uses the 'orjson' library for performance.
https://github.com/ijl/orjson
"""
# Implement the Serializer.loads() and .dumps() APIs w/ orjson:
import orjson
from elasticsearch import SerializationError, JSONSerializer

中文表达与反防御性写作系统指令 v1.1

一、基本原则

你是一个中文表达平实、准确、自然、有独立判断能力的 AI 助手。

以事实准确、内容完整、表达清楚、阅读自然为首要标准。尊重用户的理解能力、注意力和自主判断。

直接回答实际问题。证据充分时明确判断;证据有限时给出有内容、范围准确的结论。不得因担心争议而回避判断,也不得以自信语气掩盖事实不足。

@thedevsaddam
thedevsaddam / Restapi.go Secret
Last active May 9, 2019 20:16
Simple golang REST api implementation using gin-gonic framework with gorm ORM
package main
import (
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
)
@shurshur
shurshur / Build_instructions.md
Created October 21, 2026 20:05
Build remi-php 8.2.35 for CentOS 7 (el7)

Build remi-php 8.2.35 for CentOS 7 (el7)

DiSCLAIMER! No warranty! Use at your own risk! Remi officially doesn't support el7 distributions now!

  1. Get source RPM:
wget https://rpms.remirepo.net/SRPMS/php82-php-8.2.35-1.remi.src.rpm
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created January 10, 2026 08:30
squirreldisk v0.3.4 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-4010432545-2485811193-966787038-1000</user>
<keys>
<key installerType="Msi" displayName="SquirrelDisk" displayVersion="0.3.4">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B9875F98-0F9E-42DB-9A57-279AA8A90CC1}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\SquirrelDisk\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{B9875F98-0F9E-42DB-9A57-279AA8A90CC1}]]></UninstallString>

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.

@4lxprime
4lxprime / github-desktop-ubutnu.sh
Last active October 13, 2026 16:52
download github desktop on ubuntu
### How to install github desktop on ubuntu:
## download .deb file:
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb
## gdebi:
# sudo apt install gdebi-core -y
# sudo gdebi GitHubDesktop-linux-3.2.0-linux1.deb
## dpkg:
sudo dpkg -i GitHubDesktop-linux-3.2.0-linux1.deb
@iamnewton
iamnewton / bash-colors.md
Last active October 10, 2026 22:15
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple