Skip to content

Instantly share code, notes, and snippets.

@aronatkins
aronatkins / aronatkins.zsh-theme
Created October 10, 2019 12:52
zsh theme using minimal as basis
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

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 September 18, 2015 17:42
An HTTP server that occasionally sends data to a long-lived request.
#!/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 February 10, 2022 08:54
Install RStudio daily build on OSX/macOS or Ubuntu Linux
#!/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 February 26, 2015 18:37
A simple HTTP server that echoes all incoming requests to stdout and replies with HTTP 200 OK.
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());