Skip to content

Instantly share code, notes, and snippets.

View jbenner-radham's full-sized avatar

James Benner jbenner-radham

View GitHub Profile
@jbenner-radham
jbenner-radham / rom_suffix_codes.md
Created December 30, 2022 21:05 — forked from ramiabraham/rom_suffix_codes.md
Video game rom suffix codes (decoded)

Video game rom codes

You wouldn't download a car...


Primary rom codes

Probably what you're looking for

  • [a] Alternate (alternate version of the game, usually trying a different output method)
  • [p] Pirate
@jbenner-radham
jbenner-radham / .eslintrc.js
Created May 15, 2018 22:51 — forked from wassname/.eslintrc.js
eslint.recommended (annotated)
/**
* eslint.recommended (annotated)
* ================
* Annotated defaults based on eslint.recommended
*
* @author: wassname
* @license: MIT
* @website https://gist.github.com/wassname/4693303388396c5f074b10865a969b43
* @date 2017-11-13T23:08
* @eslint-version: 4.11.0
@jbenner-radham
jbenner-radham / useSchemaOrg.sed
Created February 7, 2016 19:38 — forked from csarven/useSchemaOrg.sed
Replacing non-schema.org terms (in Linked Research) with schema.org
s/biblio:Paper/schema:ScholarlyArticle/g
s/bibo:shortTitle/schema:alternateName/g
s/cal:dtend/schema:endDate/g
s/cal:dtstart/schema:startDate/g
s/cal:location/schema:location/g
s/cal:Vevent/schema:Event/g
s/cc:license/schema:license/g
s/dcterms:abstract/schema:abstract/g
s/dcterms:contributor/schema:contributor/g
s/dcterms:creator/schema:creator/g
@jbenner-radham
jbenner-radham / wordress-word-count.php
Created January 8, 2016 00:31 — forked from ericlbarnes/wordress-word-count.php
Count the total words of all posts for the year
<?php
$words = 0;
$posts = query_posts([
'posts_per_page' => -1,
'year' => '2014',
]);
foreach ($posts as $post) {
$words += str_word_count($post->post_content);
@jbenner-radham
jbenner-radham / wordpress.dev
Created January 8, 2016 00:31 — forked from ericlbarnes/wordpress.dev
WordPress Homestead Nginx
server {
listen 80;
server_name wordpress.app;
root "/home/vagrant/Code/wordpress";
index index.html index.htm index.php;
charset utf-8;
location / {
@jbenner-radham
jbenner-radham / c-to-assembly.md
Created November 21, 2015 04:41 — forked from lancejpollard/c-to-assembly.md
Simple C examples and their Assembly output from GCC 4.9.0

addition

int foo(int a, int b) {
  return a + b;
}
{
"@context": [
"http://www.w3.org/ns/activitystreams",
{
"mf": "http://microformats.org/wiki/",
"vcard": "http://www.w3.org/2006/vcard/ns#",
"jf2": "https://github.com/w3c-social/Social-Syntax-Brainstorming/wiki/jf2#",
"iwc": "http://indiewebcamp.com/",
"Adr": "mf:h-adr",
@jbenner-radham
jbenner-radham / Enable Piwik geolocation support with GeoIP PECL.md
Created November 4, 2015 21:50 — forked from janikvonrotz/Enable Piwik geolocation support with GeoIP PECL.md
Ubuntu: Enable Piwik geolocation support with GeoIP PECL #Piwik #Markdown

Introduction

By default Piwik uses the provider location to guess a visitor's country based on the language they use. This is not very accurate, so they recommend installing and using GeoIP.

Requirements

  • Ubuntu server
  • libgeoip-dev
  • Nginx
  • Nginx minimal website
@jbenner-radham
jbenner-radham / jquery.waituntilexists.js
Created October 22, 2015 21:44 — forked from PizzaBrandon/jquery.waituntilexists.js
Updated waitUntilExists plugin
;(function ($, window) {
var intervals = {};
var removeListener = function(selector) {
if (intervals[selector]) {
window.clearInterval(intervals[selector]);
intervals[selector] = null;
}

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=unknown&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.