Skip to content

Instantly share code, notes, and snippets.

@charlesaloaye
charlesaloaye / gist:d5234275c8ed0bb4510ffaa9670d80aa
Last active May 8, 2024 09:37
2024 JETBRAINS ACTIVATION CODE | PHPSTORM | PYCHARM | Expires October 14, 2024
I2A0QUY8VU-eyJsaWNlbnNlSWQiOiJJMkEwUVVZOFZVIiwibGljZW5zZWVOYW1lIjoiVU5JVkVSU0lEQURFIEVTVEFEVUFMIERFIENBTVBJTkFTIiwiYXNzaWduZWVOYW1lIjoiVGFvYmFv77yaSkVU5YWo5a625qG25r+AIOa0u+W3peS9nOWupCAgcmVuIHpodW4gZGlhbiBtaW5n77yBIiwiYXNzaWduZWVFbWFpbCI6IlJvYmJ5X1dlbmlnZXJAb3V0bG9vay5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjQtMTAtMTQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNDIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNGIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkRTIiwicGFpZFVwVG8iOiIyMDI0LTEwL
@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");