Skip to content

Instantly share code, notes, and snippets.

@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active May 8, 2024 09:36
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
@jamesporter
jamesporter / LexicalSwiftUIPoC.swift
Created April 6, 2023 21:26
Lexical iOS SwiftUI integration PoC
import SwiftUI
import Lexical
struct ContentView: View {
@StateObject var store = LexicalStore()
var body: some View {
VStack {
@jcubic
jcubic / cdn.md
Last active May 8, 2024 09:35
How to setup a literally free CDN
@FlaShG
FlaShG / CanvasPositioningExtensions.cs
Last active May 8, 2024 09:33
A small Unity helper class to convert viewport, screen or world positions to canvas space.
using UnityEngine;
/// <summary>
/// Small helper class to convert viewport, screen or world positions to canvas space.
/// Only works with screen space canvases.
/// </summary>
/// <example>
/// <code>
/// objectOnCanvasRectTransform.anchoredPosition = specificCanvas.WorldToCanvasPoint(worldspaceTransform.position);
/// </code>
@drumnation
drumnation / genre-seeds.json
Created January 20, 2019 22:36
Spotify Genre Seeds Available
{
"genres": [
"acoustic",
"afrobeat",
"alt-rock",
"alternative",
"ambient",
"anime",
"black-metal",
"bluegrass",
@taskylizard
taskylizard / fmhy.md
Last active May 8, 2024 09:32
/r/freemediaheckyeah, in one single file (view raw)
@cs8425
cs8425 / key.sh
Created January 11, 2016 06:55
golang simple tcp/tls proxy
# wrok like:
#
# raw tcp(9999) tls(127.0.0.1:25500) raw tcp(25501)
# client =============> tcp2tls_client.go =====================> tls2tcp_server.go ==============> real server
#Generated private key
openssl genrsa -out server.key 2048
#To generate a certificate
@abdisaDev
abdisaDev / ET - PhoneNumber Validation.ts
Last active May 8, 2024 09:31
Phone Number Validation For Ethiopian Telephone Service Providers ( EthioTelecom && SafariCom ). The Number Must Have To Begin With +251
// Ethio Telecom
/^0?(9|7)[0-9]{8}$/.test("0912345678");
// Safari Com
/^0?(9|7)[0-9]{8}$/.test("0712345678");
@rxaviers
rxaviers / gist:7360908
Last active May 8, 2024 09:30
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: