Skip to content

Instantly share code, notes, and snippets.

View JosephShenton's full-sized avatar
🏠
Working from home

Joseph Shenton JosephShenton

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
curl "https://gist.githubusercontent.com/JosephShenton/c644be5e30a9e83ceb168cf8df0bbfc7/raw/cd99c03f94870db30a343ce96de0b13143cb51f4/opensslLink" --output ~/.zshrc
@JosephShenton
JosephShenton / opensslLink
Created September 19, 2020 02:15
Link OpenSSL for macOS from Homebrew
@JosephShenton
JosephShenton / # usbmuxd - 2019-04-26_14-58-27.txt
Created April 26, 2019 05:06
usbmuxd on macOS 10.14.4 - Homebrew build logs
Homebrew build logs for usbmuxd on macOS 10.14.4
Build date: 2019-04-26 14:58:27
#!/bin/sh
printf "\n##########\n# Fixing our screw up...";
printf "\n# Fixing Hosts.";
echo "##" > /etc/hosts;
echo "# Host Database" >> /etc/hosts;
echo "#" >> /etc/hosts;
echo "# localhost is used to configure the loopback interface" >> /etc/hosts;
echo "# when the system is booting. Do not change this entry." >> /etc/hosts;
echo "##" >> /etc/hosts;
@JosephShenton
JosephShenton / ddosl7.php
Created September 8, 2017 03:38
Layer 7 DDoS Protection PHP
<?php
$key = "La1az>T.}+w:uMoZ"; // CHANGE THIS STRING
$code = md5($_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_HOST'].$key);
$cookie = isset($_COOKIE['l7code']) ? $_COOKIE['l7code'] : FALSE ;
$ignored_uri = array();
$ignore = false;
foreach($ignored_uri as $u){

Keybase proof

I hereby claim:

  • I am josephshenton on github.
  • I am josephshenton (https://keybase.io/josephshenton) on keybase.
  • I have a public key ASDq1bW77titcr9uun4uBeCUgHr3Pu6GuEuBBdEOGUfTZwo

To claim this, I am signing this object: