Skip to content

Instantly share code, notes, and snippets.

View Cvar1984's full-sized avatar
⚠️
This account is under NSA investigation

Bellatrix Lugosi Cvar1984

⚠️
This account is under NSA investigation
View GitHub Profile
@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active September 20, 2025 11:00
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
@paolocarrasco
paolocarrasco / README.md
Last active July 11, 2025 09:57
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@Cvar1984
Cvar1984 / async-parallel.cpp
Last active February 19, 2023 11:29
std::async
/**
* async multi threading with c++
* flag : -pthread -std=c++0x
*/
#include <iostream> // std::cout
#include <unistd.h> // sleep();
#include <future> // std::async
class MyClass {
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCZBvzPGCDLur81+X7K/DyvTb9UIHRiSSVrDX7m0sox9aK60SkWKItbGhsdTJcssUhf02KuMmZAAh9ZQ48SCSUNM7sZUzm0wt0EkOdvple7wPW6Linagx0V6MoU5/xkk62+XzVn8OMJpf0YoJyN5WRHe6iMo2wQZe9AnfZLqO+jd73iD3BPrHfCnkoCQ6pl4lgeBBHZaYKsxBU8W3beHTS3zpyleiqp0bSn3k4iYklB6dHLNSgmOICisCx0LO8sv1F2f+2TQYsLO5zBqNEiN8RFX69Ha/Ptjwq/DcF0hZhabV8oIMC7UNHRzdEJLN6jOL12nLE5UNzsw7tRCs+HQIZoEMFWj4Urn5Aiy0SSUAMGW/vKKFOaK9jrd4yvD1bTuKuh5nAgi1MsFmmxzj7jHLkOIl1kJZKTbb8hIxPcc9mgL9KGNiVZlxEHmKyZvGkpnpuGnRE2+6Xw6dc3HTuPQ0Bvp+R6Vs9Ojw1qUd8WNb4fv6bD/DgsR9E90vufWQGfl33t8i/8LRKXYMOj/3aux1up0hhjeOu7DRp2koTjj1MqBu5nt64g2mdutjKOXhSbvQgWTJVG0qWbnOAT4dNnGUGxfL1REpi/D2J2bmsnAjeOHxSrPpMIfN2bFgJKZLVnIOrwl/BIo3DLYnbB28vVedgdumMinnpQgtLTc3LIwfGLiQ== [email protected]