Skip to content

Instantly share code, notes, and snippets.

Ryan Wilson-Perkin ryanwilsonperkin

Block or report user

Report or block ryanwilsonperkin

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
ryanwilsonperkin /
Created May 3, 2017
Faster SSHing into vagrant

Running vagrant ssh can be slow because it boots up a ruby process, does a bunch of analysis to determine your ssh parameters, and then actually invokes the command. If you want a faster login, try the following:

# Compute the ssh parameters, append them to your global ssh config file
# The --host parameter specifies what you want the vagrant machine to be called
vagrant ssh-config --host vagrant >> ~/.ssh/config

# Now just ssh into that machine directly
ssh vagrant
ryanwilsonperkin / Dockerfile
Created Mar 12, 2019
Comparing the use of apt-get vs apt-fast for installing packages in Debian
View Dockerfile
# A standard Debian container extended with apt-fast (
FROM debian
LABEL maintainer=""
# Install gnupg to allow apt-key verification, time to allow profiling
RUN apt-get update
RUN apt-get install -y gnupg time
# Set up PPA for apt-fast
RUN echo deb bionic main >> /etc/apt/sources.list.d/apt-fast.list \
ryanwilsonperkin /
Last active Feb 26, 2019
Fetch a list of flaky tests form a CircleCI project
@author Ryan Wilson-Perkin
Fetch a list of flaky tests from a CircleCI project.
Searches the last 30 builds that have failed on the master branch, downloads any
junit.xml artifacts it finds for them, and reports the tests that have failed.
Branch name, test results file, number of builds, and number of results are all
ryanwilsonperkin /
Created Feb 26, 2019
Count all the lines I've ever changed on GitHub
Count all the lines I've ever changed on GitHub
pip install requests tqdm GitPython
ryanwilsonperkin / .dockerignore
Created Oct 29, 2018
convox start does not respect .dockerignore for code sync
ryanwilsonperkin / component.js
Last active Aug 14, 2018
A HOC proposal for injecting tracking of events.
View component.js
import React from 'react';
import withTracking from 'withTracking';
export class MyLink extends React.Component {
static propTypes = {
text: PropTypes.string,
href: PropTypes.string,
track: PropTypes.func,
ryanwilsonperkin /
Last active May 25, 2018
Useful links for those new to the react ecosystem
ryanwilsonperkin /
Created Apr 6, 2018
Update relative imports in JS files to be absolute based on current path
import os
import re
import sys
ROOT_DIR = 'project-name'
PATTERN = re.compile(
"""(?P<prefix>.*from *['"])"""
ryanwilsonperkin / coredump
Created Mar 14, 2018
Debugging npm failure on Alpine Linux on EC2 C5 instance
View coredump
Program terminated with signal SIGSEGV, Segmentation fault.
warning: Unexpected size of section `.reg-xstate/26' in core file.
#0 __cp_end () at src/thread/x86_64/syscall_cp.s:29
29 src/thread/x86_64/syscall_cp.s: No such file or directory.
[Current thread is 1 (LWP 26)]
(gdb) bt
#0 __cp_end () at src/thread/x86_64/syscall_cp.s:29
#1 0x00007fd6161eecd8 in __syscall_cp_c (nr=202, u=<optimized out>, v=<optimized out>, w=<optimized out>, x=<optimized out>, y=<optimized out>,
z=0) at src/thread/pthread_cancel.c:35
ryanwilsonperkin /
Last active Mar 11, 2018
import sys
sys.stdout.write('This is a private package\n')
You can’t perform that action at this time.