Skip to content

Instantly share code, notes, and snippets.

@aronatkins
aronatkins / aronatkins.zsh-theme
Created Oct 10, 2019
zsh theme using minimal as basis
View aronatkins.zsh-theme
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$fg[white]%}]%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN="]%{$reset_color%} "
ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
ZSH_THEME_HG_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
ZSH_THEME_HG_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
View keybase.md

Keybase proof

I hereby claim:

  • I am aronatkins on github.
  • I am aronatkins (https://keybase.io/aronatkins) on keybase.
  • I have a public key ASAZGHpR7RrBkAMP3_QeB8cNipEB0rBdPk7mSUheIbLqhgo

To claim this, I am signing this object:

@aronatkins
aronatkins / slow-server.py
Last active Sep 18, 2015
An HTTP server that occasionally sends data to a long-lived request.
View slow-server.py
#!/usr/bin/python
import BaseHTTPServer
import SocketServer
import argparse
import time
import urlparse
parser = argparse.ArgumentParser(description='An HTTP server that occasionally sends data to a long-lived request.')
@aronatkins
aronatkins / install-rstudio-daily.sh
Last active Feb 10, 2022
Install RStudio daily build on OSX/macOS or Ubuntu Linux
View install-rstudio-daily.sh
#!/bin/bash
#
# Installs the latest RStudio daily desktop build for OSX/macOS and Ubuntu(amd64)
#
# https://support.rstudio.com/hc/en-us/articles/203842428-Getting-the-newest-RStudio-builds
set -e
install_macos_daily() {
REDIRECT_URL="https://www.rstudio.org/download/latest/daily/desktop/mac/RStudio-latest.dmg"
@aronatkins
aronatkins / echo.js
Created Feb 26, 2015
A simple HTTP server that echoes all incoming requests to stdout and replies with HTTP 200 OK.
View echo.js
var http = require('http');
var port = process.argv[2] || 8888;
http.createServer(function(request,response){
console.log('request start');
console.log(request.method, request.url, request.httpVersion);
console.log('headers',request.headers);
request.on('data',function(chunk){
process.stdout.write(chunk.toString());