Skip to content

Instantly share code, notes, and snippets.

@wstrinz
wstrinz / elm-build-cache.mjs
Last active February 2, 2022 15:17 — forked from Janiczek/elm-build-cache.mjs
Build ~/.elm cache manually without checking SHA1 hashes
#!/usr/bin/env node
// the .mjs extension is important
// run this inside the directory containing the `elm.json` file
// (if it's not executable, run `chmod +x elm-build-cache.mjs`)
// with VERBOSE=1 env var it will show you results of the exec commands
import { promises } from "fs";
import { exec } from "child_process";
const fs = promises;
@wstrinz
wstrinz / sidekiq
Last active January 17, 2018 17:54 — forked from dyerc/sidekiq
Sidekiq init script - AMI compatible
#!/bin/bash
# sidekiq Init script for Sidekiq
# chkconfig: - 99 10
# description: Starts and Stops Sidekiq message processor for Stratus application.
#
# User-specified exit parameters used in this script:
#
# Exit Code 5 - Incorrect User ID
# Exit Code 6 - Directory not found
#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)
@wstrinz
wstrinz / LICENSE
Last active September 3, 2015 16:00 — forked from myronmarston/LICENSE
(The MIT License)
Copyright (c) 2012-2013 Myron Marston
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
@wstrinz
wstrinz / Gemfile
Last active December 16, 2015 19:30 — forked from mathias/Gemfile
source "https://rubygems.org"
gem 'rspec'