Skip to content

Instantly share code, notes, and snippets.

View CaptainJiNX's full-sized avatar

Roger Wilson CaptainJiNX

View GitHub Profile
@CaptainJiNX
CaptainJiNX / pseudolocalization.js
Created September 6, 2021 15:03
Pseudo translates all text on a page, when 'L' is pressed...
// ==UserScript==
// @name Pseudolocalization
// @namespace https://yagisoft.se/
// @version 1.0
// @description Pseudo translates all text on a page, when 'L' is pressed...
// @author ctjinx@gmail.com
// @match http://*
// @match https://*
// @match http://*/*
// @match https://*/*
@CaptainJiNX
CaptainJiNX / keybase.md
Created March 4, 2019 14:07
Keybase Id

Keybase proof

I hereby claim:

  • I am captainjinx on github.
  • I am ctjinx (https://keybase.io/ctjinx) on keybase.
  • I have a public key ASDvZ45hzUnYkyd9mar7XjD3TKFNTuuLlpb_2vnFbQIDMgo

To claim this, I am signing this object:

@CaptainJiNX
CaptainJiNX / build.sh
Last active May 20, 2017 19:58
Scripts for building C64 stuff with VSCode, KickAssembler (docker version) and Vice 3.1
#!/usr/bin/env bash
set -e
workspaceRoot=$1
relativeFile=$2
baseName=$3
binDir="bin"
buildDir="$workspaceRoot/$binDir"
viceSymbols="$buildDir/$baseName.vs"
alias.addnw=!sh -c 'git diff -U0 -w --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -'
@CaptainJiNX
CaptainJiNX / find-ports.sh
Created February 16, 2017 16:02
Find listening ports (osx)
netstat -atp tcp | grep -i "listen"
sudo lsof -i -P | grep -i "listen"
@CaptainJiNX
CaptainJiNX / highland-event-debouncer.js
Created February 16, 2017 12:02
From chrome://newtab/
'use strict';
const EventEmitter = require('events').EventEmitter;
const H = require('highland');
const emitter = new EventEmitter();
const delay = ({ key, value }) => {
return H((push, next) => {
H.log('----> REQUEST: ', key, value);
setTimeout(() => {
@CaptainJiNX
CaptainJiNX / getCluster.js
Created December 21, 2016 08:55
Example of auto discovery for aws elasticache
const Memcached = require('memcached');
const configClient = new Memcached('xyz123.cfg.cache.amazonaws.com:11211');
configClient.command(configGetCluster);
function configGetCluster() {
return {
command: 'config get cluster',
callback: handleClusterResponse
@CaptainJiNX
CaptainJiNX / 0_reuse_code.js
Created June 1, 2016 07:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@CaptainJiNX
CaptainJiNX / dnode
Last active December 10, 2015 14:53
Init all the base images...
#!/bin/sh
docker run -p 3000:3000 -p 5858:5858 -it --net="app" --name="dnode" --rm \
-v "$(pwd)":/app -w /app mtg/alpine-dnode/4.2.3 \
sh -c "node $*"
@CaptainJiNX
CaptainJiNX / jasmine-junit.js
Created March 5, 2014 13:44
Simple reporter to generate JUnit XML from jasmine 2.0
function getJasmineRequireObj() {
if (typeof module !== "undefined" && module.exports) {
return exports;
} else {
window.jasmineRequire = window.jasmineRequire || {};
return window.jasmineRequire;
}
}
getJasmineRequireObj().junit = function(jRequire, j$) {