Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View joshuapack's full-sized avatar
🦝
Programming

Joshua Pack joshuapack

🦝
Programming
View GitHub Profile
@joshuapack
joshuapack / paywallremoval.user.js
Last active March 29, 2022 15:59
Paywall Removal
// ==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.18
// @description I hate paywalls
// @author Joshua Pack
// @match https://*.forbes.com/*
// @match https://*.latimes.com/*
<?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 January 3, 2023 15:49
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/)
server {
# Server name
server_name example.com;
# Server Port
listen 80;
# Webroot
root /var/www/;
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active April 20, 2024 02:26
Add Git Branch Name to Terminal Prompt (Linux/Mac)

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() {