Skip to content

Instantly share code, notes, and snippets.

Avatar
🦝
Programming

Joshua Pack joshuapack

🦝
Programming
View GitHub Profile
View paywallremoval.user.js
// ==UserScript==
// @name Paywall removal
// @namespace https://www.joshuapack.com
// @updateURL https://gist.githubusercontent.com/joshuapack/b13eadb53dee68a4ac40984439e8cc9b/raw/paywallremoval.user.js
// @downloadURL https://gist.githubusercontent.com/joshuapack/b13eadb53dee68a4ac40984439e8cc9b/raw/paywallremoval.user.js
// @version 0.1.16
// @description I hate paywalls
// @author Joshua Pack
// @match https://*.forbes.com/*
// @match https://*.latimes.com/*
View cloudflareUpdate.php
<?php
$zone_identifier = '';
$auth_key = '';
$domain = '';
$public_ip = file_get_contents('https://ipinfo.io');
$public_ip = json_decode($public_ip);
if (!isset($public_ip->ip)) {
echo "unable to get public IP";
@DarrylDias
DarrylDias / pagekit.conf
Last active Apr 18, 2021
NGINX config for PageKit. (Tested on Ubuntu) (If for some reason I don't reply to a comment leave a message at https://darryldias.me/contact/)
View pagekit.conf
server {
# Server name
server_name example.com;
# Server Port
listen 80;
# Webroot
root /var/www/;
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active Oct 17, 2021
Add Git Branch Name to Terminal Prompt (Linux/Mac)
View terminal-git-branch-name.md

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {