Skip to content

Instantly share code, notes, and snippets.

@piglovesyou
piglovesyou / Runner.java
Last active August 29, 2015 14:16
Load CommonJS JavaScript module, call function in it with Rhino
import java.util.Arrays;
import java.util.List;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.commonjs.module.Require;
import org.mozilla.javascript.tools.shell.Global;
@piglovesyou
piglovesyou / ansible-aur-pkg-installer.md
Last active October 16, 2016 07:47
download, build, and install aur packages with ansible

(This is a forked version that just uses ansible_ssh_user for makepkg)

About

When using ArchLinux, I typically prefer to use an AUR helper like pacaur or yaourt to automate away the process of installing a community package.

Ansible's pacman module is great, but it doesn't support AUR packages or pacman's -U flag. Installing AUR packages with Ansible seemed to be left as an exercise to