Skip to content

Instantly share code, notes, and snippets.

View rmamont's full-sized avatar

RedMamont rmamont

View GitHub Profile
@rmamont
rmamont / modx-snippets.php
Created May 24, 2018 07:27 — forked from christianhanvey/modx-snippets.php
Useful snippets for MODX Revo
Snippet: [[SnippetName]]
Chunk: [[$ChunkName]]
System Setting: [[++SettingName]]
TV: [[*fieldName/TvName]]
Link tag: [[~PageId? &paramName=`value`]]
Placeholder: [[+PlaceholderName]]
<?php
@rmamont
rmamont / google-dorks
Created May 18, 2018 04:09 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@rmamont
rmamont / js-reference.js
Created December 11, 2017 00:44 — forked from DawnPaladin/js-reference.js
JavaScript reference guide
OBJECTS
=====
// There are two ways you can create objects: Literal notation and construction notation.
//
// Literal notation uses curly braces:
var james = {
job: "programmer",
married: false,
greet: function() {
console.log("Hello!");
@rmamont
rmamont / nginx.default.conf
Created August 8, 2017 06:33 — forked from santoshachari/nginx.default.conf
PHP5.6 and NGINX: Install PHP56-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and php56-FPM
sudo yum install -y nginx php56-fpm
# Install php56 extensions
sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap
86937 isset
43159 echo
31697 empty
29252 substr
26146 count
24248 is_array
22572 strlen
19365 sprintf
18090 unset
16584 str_replace