Skip to content

Instantly share code, notes, and snippets.

Jeff Dickey jdxcode

Block or report user

Report or block jdxcode

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 gist:a145f1bebc96ef3752af4affe48c9cef
apt-get update
apt-get install -y wget
mkdir -p /usr/local/lib /usr/local/bin
tar -xvzf heroku-linux-amd64.tar.gz -C /usr/local/lib
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
heroku version
jdxcode / nd.go
Last active Sep 28, 2018
nd pseudocode
View nd.go
package lib
import "path/filepath"
type Project struct {
Root string
YarnLock interface{}
PackageLock interface{}
Dependencies []*Dependency
jdxcode / get-all-github-status-checks.ts
Last active Jul 13, 2019
a set of scripts to migrate github status checks from legacy travis to github app (run with ts-node)
View get-all-github-status-checks.ts
// run this second
import GitHub from '@octokit/rest'
import * as _ from 'lodash'
import * as fs from 'fs-extra'
import pMap from 'p-map'
import repos from '../repos.json'
let statuses: {[repo: string]: string[]}
jdxcode / client.go
Last active Sep 15, 2018
basic IPC example connecting node and golang together with unix socket (named pipe)
View client.go
package main
import (
func reader(r io.Reader) {
jdxcode / add-user.js
Created Aug 22, 2018
add npm users to org members
View add-user.js
#!/usr/bin/env node
const Client = require('npm-registry-client')
const reg = new Client()
const uri = ''
const csv = require('csv')
const fs = require('fs')
const PARAMS = {auth: {token: process.env.NPM_PASS}, org: 'heroku'}
csv.parse(fs.readFileSync('users.csv'), (err, csv) => {
View heroku-commands.json
"id": "debug",
"description": "Outputs debugging info\n",
"pluginName": "heroku-debug",
"pluginType": "user",
"hidden": false,
"aliases": [],
"flags": {},
"args": []
View gist:1d7a120f16a8478e77558ca21a451e27
yarn run v1.5.1
$ make
✓ required methods
✓ should create producer with default options
View global.d.ts
declare namespace NodeJS {
interface Global {
'my-object': {
errlog?: string
debug?: boolean
context?: any
View stars.ts
import {Command} from '@oclif/command'
import axios from 'axios'
export default class Stars extends Command {
static description = 'show the github stars on a repository'
static args = [{name: 'repository', required: true}]
async run() {
const {args} = this.parse(Stars)
const {data: stargazers} = await axios.get(`${args.repository}/stargazers`)
for (let s of stargazers) {
You can’t perform that action at this time.