Skip to content

Instantly share code, notes, and snippets.

View djrobby's full-sized avatar

Robby Dhillon djrobby

  • Detroit, MI - USA
View GitHub Profile
@djrobby
djrobby / Rails_API_Panel_Fix.js
Last active April 5, 2020 20:47
Rails API @ https://api.rubyonrails.org/ side panel is FUCKED UP! Here's a temp fix from your console!
// run this in your console
window.frames["panel"].document.querySelectorAll("ul").forEach(e => e.style.paddingLeft = "2em");
@djrobby
djrobby / backup-mariadb.sh
Last active December 4, 2020 16:18 — forked from karolyi/backup-mariadb.sh
MySQL/MariaDB Backup/Restore Scripts
#!/usr/bin/env bash
mariabackup --stream=xbstream --backup --user root|pigz >mariadb-backup.gz
// ==UserScript==
// @name Unblur scribd.com
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://vi.scribd.com/*
// @grant none
// ==/UserScript==
(function() {
@djrobby
djrobby / README.md
Created June 2, 2019 14:38 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@djrobby
djrobby / keys.rb
Last active January 2, 2019 23:18 — forked from tysonmote/keys.rb
Utility functions for performing operations on large Redis keyspaces
require 'redis'
REDIS = Redis.new( url: "..." )
def each_keys_chunk( pattern = nil, &block )
opts = { count: 100 }
opts[:match] = pattern if pattern
cursor = 0
loop do
cursor, keys = REDIS.scan( cursor, opts )
@djrobby
djrobby / scribd.js
Created August 19, 2016 19:50
scribd.com
setInterval(function() {
$('.page-blur-promo-overlay').remove();
$('.page_missing_explanation_inner').remove();
$('.autogen_class_views_read2_page_blur_promo').remove();
$('.outer_page only_ie6_border blurred_page').remove();
$('.page-blur-promo').removeClass('page-blur-promo');
$('.page_blur_promo').remove();
$('.absimg').css('opacity', '1.0');
$('.text_layer').css('color', '#000');
$('.text_layer').css('text-shadow', '0px 0px 0px #000');
@djrobby
djrobby / MV_Test_Commands.txt
Last active February 28, 2021 12:54
MV Metric Vision Test Commands
// ----------------------------
// -- Start of Main Screen Test
// ----------------------------
// Delete whatever is on the andon & marquee part of the board and stop all tunes
<02>0000<1B>DEL<04>
<02>0102<1B>TU1000T<04>
//-- Start test timing and counter data under static labels & different font
// Configure Row 1
<02>0101<1B>AD11R[30,12,30,12,40,10,58,10,36,10,32,10,30]<04>