This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import sys | |
def speed_up_ball(): | |
global ball_speed_x, ball_speed_y | |
if ball_speed_x < 0: | |
if ball_speed_x > -20: | |
ball_speed_x -= 1 | |
ball_speed_y -= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) | |
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN | |
nameserver 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am joshuapack on github. | |
* I am joshuapack (https://keybase.io/joshuapack) on keybase. | |
* I have a public key ASDZ1li6vjMDPyxTivNwTTignEg8kRZ5w8twZHC4PD_BRgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
for ($i=1;$i <= 100; $i++) { | |
if ($i % 3 === 0) echo 'Fizz'; | |
if ($i % 5 === 0) echo 'Buzz'; | |
if ($i % 5 > 0 && $i % 3 > 0) echo $i; | |
echo '<br/>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This will kill all cpu processes launched by a certain php file. Can be used to kill other things too. | |
*/ | |
$killTheseProcesses = "feednew.php"; | |
$allProcesses = shell_exec("pgrep -lf php"); | |
$allProcessesArray = explode("\n", $allProcesses); | |
array_pop($allProcessesArray); | |
foreach ($allProcessesArray as $process) | |
{ |