Skip to content

Instantly share code, notes, and snippets.

@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active December 26, 2024 04:50
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
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active December 26, 2024 04:48
Active StarUml version 6 for Window | MacOS | Linux
@shvchk
shvchk / update-podman.sh
Last active December 26, 2024 04:47
Update podman to 4.3.1 on Ubuntu 22.04 jammy
#! /usr/bin/env bash
set -euo pipefail
echo 'deb http://archive.ubuntu.com/ubuntu/ lunar main universe' > /etc/apt/sources.list.d/lunar.list
cat > /etc/apt/preferences.d/podman.pref << EOF
Package: podman buildah golang-github-containers-common libsubid4 netavark
Pin: release n=lunar
Pin-Priority: 990
@yookoala
yookoala / 90-mac-superdrive.rules
Last active December 26, 2024 04:47
udev rules to use Apple SuperDrive on Linux
#
# Apple SuperDrive initialization rule
#
# See: https://gist.github.com/yookoala/818c1ff057e3d965980b7fd3bf8f77a6
ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="/usr/bin/sg_raw %r/sr%n EA 00 00 00 00 00 01"
@Mohdbakr
Mohdbakr / ohmyposhv3-v2.json
Last active December 26, 2024 04:46
ohmyposh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none",
@mikeslattery
mikeslattery / .idea-lazy.vim
Last active December 26, 2024 04:33
LazyVim mappings for Jetbrains IDEs
" ~/.idea-lazy.vim
" LazyVim mappings for Jetbrains IDEs
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle
" IDEAVim
" Which-Key
" IdeaVim-Sneak
" To install, add this to the top of your ~/.ideavimrc:
@hrbaer
hrbaer / NumberDisplay.js
Last active December 26, 2024 04:32
7-Segment Number Display
function numberDisplay(ref, skew) {
skew = skew || 0;
var xWidth = 56,
xHeight = 100;
var digitPattern = [
[1,1,1,1,1,1,0], // 0
[0,1,1,0,0,0,0], // 1
@ih2502mk
ih2502mk / list.md
Last active December 26, 2024 04:22
Quantopian Lectures Saved