Skip to content

Instantly share code, notes, and snippets.

Avatar

John Oleksowicz johnolek

View GitHub Profile
@johnolek
johnolek / 10_fast_fingers_cheat.js
Last active Jun 8, 2018
This is a cheat/bot for 10fastfingers.com. Copy and paste into your browser's console when there is a game present and it should just work. Change the targetWpm value and it will try to get as close as possible to it.
View 10_fast_fingers_cheat.js
class TenFastCheater {
constructor() {
const spaceEvent = $.Event('keyup')
spaceEvent.which = 32
this.spaceEvent = spaceEvent
this.adjustmentStep = 50
this.minDelay = 50
this.randomRange = 10
this.targetWpm = 157
@johnolek
johnolek / .htaccess
Last active Oct 26, 2016
.htaccess RewriteRule to serve WordPress images from a different domain
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(wp-content/uploads/\d+/.*)$ http://example.com/$1 [R=301,NC,L]
</IfModule>
@johnolek
johnolek / functions.php
Last active Sep 5, 2016
Remove Visual Editor from Gravity Forms Notifications Page
View functions.php
<?php
function remove_gf_notification_visual_editor($settings, $editor_id)
{
if ($editor_id === 'gform_notification_message') {
$settings['tinymce'] = false;
}
return $settings;
}