Skip to content

Instantly share code, notes, and snippets.

View RPeraltaJr's full-sized avatar
🎯
Focusing

Rafael Peralta Jr. RPeraltaJr

🎯
Focusing
View GitHub Profile

Git push overview

Please add your SSH public key along with username here. If you need help generating an SSH public key or setting up Git Push integration with WP Engine, please visit this Support Center article

Once you save your key successfully you should be all set! The key will be effectively published in about 10 minutes. To confirm connectivity:

$ ssh git@git.wpengine.com info

Make Updates

On your local computer:

<?
require_once "connect.php";
$newtab =1;
// $qs = explode( "?", $qs );
// $qs = array_pop( $qs );
// parse_str( $qs, $vars );
$latitude = $_GET["latitude"];
$longitude = $_GET["longitude"];
@RPeraltaJr
RPeraltaJr / index.php
Last active December 21, 2020 17:10
**Vulnerability:** A "reflective XSS". **Reproduce it by using the link below:** `https://mydomain.com?"><h1>de<h1>ha97q=2<svg><script>alert(document.domain)<br>`
<?php echo urlencode($_SERVER['REQUEST_URI']); ?>

Expression

View current iptables

iptables -L

Block all ports and allow only ports 80 and 443 to the internet

iptables-save > /tmp/rules.backup  # saved a backup  
iptables -F  # flush (remove) all the rules  
iptables -I INPUT -s 111.11.111.111 -j ACCEPT  # allow dev ip: person #1 
iptables -I INPUT -s 222.22.222.222 -j ACCEPT  # allow dev ip: person #2  
iptables -A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT   # allow incoming to 80 & 443  

Content Pages

Content pages, also known as static pages, present the viewer with general information about your organization. For example, if your company recently launched a new internship program for college students, you may wish to add an Internships content page to your career site. On the page, you may feature videos, text areas, and links to additional resources related to your new internship program.

Landing Pages

Landing pages are standalone web pages distinct from your main career site that include both content and a custom list of jobs. Intended to target specific personas (entry-level, manager, executive, etc.) or job categories, landing pages can be shared via email campaigns or other marketing efforts, allowing you to quickly and easily direct job seekers to the most relevant content and open positions.

@font-face {
font-family: GraublauWeb;
src: url("path/GraublauWeb.otf") format("opentype");
}
@font-face {
font-family: GraublauWeb;
font-weight: bold;
src: url("path/GraublauWebBold.otf") format("opentype");
}
$colors: (
mako-grey: #404145,
fuel-yellow: #ecaf2d,
pastel-green: #5ad864
);
@mixin color-modifiers {
@each $name, $hex in $colors {
&-#{$name} {
color: $hex;

pbcopy &lt; ~/.ssh/id_rsa.pub

<?php
function wh_log($log_msg) {
date_default_timezone_set("America/New_York");
$log_filename = "log";
if (!file_exists($log_filename)){
// create directory/folder uploads.
mkdir($log_filename, 0777, true);
}
$log_file_data = $log_filename.'/log_' . date('d-M-Y') . '.log';