Skip to content

Instantly share code, notes, and snippets.

Avatar

jojobyte

  • Right behind you, don't turn around
View GitHub Profile
@jojobyte
jojobyte / ContextCmder-Disable.reg
Last active Apr 15, 2022
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
View ContextCmder-Disable.reg
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
View keybase.md

Keybase proof

I hereby claim:

  • I am jojobyte on github.
  • I am jojobyte (https://keybase.io/jojobyte) on keybase.
  • I have a public key whose fingerprint is 4B83 BD73 2117 517C 8D58 C087 D09C 523A 7AC1 29B0

To claim this, I am signing this object:

@jojobyte
jojobyte / Scanline.js
Created Jan 17, 2012
Generate Scanlines with HTML5 Canvas and Javascript and apply CSS override to bottom of stylesheet to keep DOM clean of inline styles.
View Scanline.js
/*
* Created by Jordan Hess @jojohess
* http://robotvictory.com
*
* Usage:
* On Window Load/DOM ready, trigger:
*
* Plain JS:
* scanline('article.dark div.sub_block',"rgba(255,255,255,0.05)",3,'45');
*
View index.html
<html>
<body style="background: #333">
<script >
var gui = require('nw.gui');
var win = gui.Window.get();
function takeSnapshot() {
win.capturePage(function(img) {
var popWindow = gui.Window.open('popup.html',
{width: 420, height: 300});
popWindow.on('loaded', function() {
View main.js
$(function(
function Menu(cutLabel, copyLabel, pasteLabel) {
var gui = require('nw.gui')
, menu = new gui.Menu()
, cut = new gui.MenuItem({
label: cutLabel || "Cut"
, click: function() {
document.execCommand("cut");
console.log('Menu:', 'cutted to clipboard');
View wp-shell-install.sh
#!/bin/bash
# Install script for Latest WordPress by Johnathan Williamson - extended by Don Gilbert
# Disclaimer: It might not bloody work
# Disclaimer 2: I'm not responsible for any screwups ... :)
# DB Variables
echo "MySQL Host:"
read mysqlhost
export mysqlhost
View get_barcode_from_image.js
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
View AbstractClient.php
<?php
namespace Renoir\AggregationBundle;
/**
* Abstract client to use for each Client
*
* Example location: src/Renoir/AggregationBundle/AbstractClient.php
**/
@jojobyte
jojobyte / StackScript.sh
Created Aug 29, 2011 — forked from visnup/StackScript.sh
node.js knockout 2011 StackScript
View StackScript.sh
#!/bin/bash
# <UDF name="ssh_key" Label="Paste in your public SSH key" default="" example="" optional="false" />
# root ssh keys
mkdir /root/.ssh
echo $SSH_KEY >> /root/.ssh/authorized_keys
chmod 0700 /root/.ssh
# update to latest
View mysql.txt
username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf