Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -e
set -x
# see also: https://stackoverflow.com/questions/18479240/troubles-with-nokogiri-gem-on-mountain-lion-using-bundler/21744398#21744398
NOKOGIRI_OPTIONS='--use-system-libraries --with-iconv-dir=/usr/local/opt/libiconv --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config'
brew uninstall libxml2 libxslt || true
@nhodges
nhodges / markdown.css
Last active August 29, 2015 14:19 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@nhodges
nhodges / install_diablo2_on_mac.md
Created September 5, 2020 07:03 — forked from whipowill/install_diablo2_on_mac.md
Install Diablo II on Mac OSX

Install Diablo II on Mac OSX

These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.

In this guide you'll end up with:

  • A version of the unadulterated game
  • A single-player install w/ PlugY

Install Wine

import Web3 from 'web3';
import HDWalletProvider from '@truffle/hdwallet-provider';
const tokenId = 1; // YOUR TOKEN ID
const seed = 'YOUR SEEDPHRASE WITHOUT 0x';
const provider = new Web3.providers.HttpProvider('https://YOUR_ETHEREUM_RPC_NODE');
const localKeyProvider = new HDWalletProvider({
privateKeys: [seed],
providerOrUrl: provider,