Skip to content

Instantly share code, notes, and snippets.

@juranki
juranki / package.json
Created April 4, 2020 12:50
stenciljs + amplify auth
{
"name": "test-amplify",
"private": true,
"version": "0.0.1",
"description": "Stencil App Starter",
"scripts": {
"build": "stencil build",
"start": "stencil build --dev --watch --serve",
"test": "stencil test --spec --e2e",
"test.watch": "stencil test --spec --e2e --watchAll",
#!/usr/bin/env bash
set -x
set -e
function install_hashi_bin {
local app=$1
local version=$2
wget https://releases.hashicorp.com/${app}/${version}/${app}_${version}_linux_amd64.zip
wget https://releases.hashicorp.com/${app}/${version}/${app}_${version}_SHA256SUMS
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "mosquitto-1.3.5";
buildInputs = [ python tcp_wrappers openssl c-ares ];
configurePhase = ''
substituteInPlace config.mk --replace "prefix=/usr/local" "prefix="
echo "DESTDIR=$out" >> config.mk
'';
src = fetchurl {
!/usr/bin/env bash
# this script assumes a fresh Arch Linux 2013.05 x64
# filesystem conflicts with some other system, so ignore it first
pacman -Syu -q --noconfirm --ignore filesystem
pacman -S -q --noconfirm --needed \
filesystem \
base-devel \
git \
!/usr/bin/env bash
# this script assumes a fresh Arch Linux 2013.05 x64
export PLUGINHOOK_REPO=${DOKKU_REPO:-"https://github.com/progrium/pluginhook.git"}
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/juranki/dokku.git"}
# filesystem conflicts with some other system, so ignore it first
pacman -Syu -q --noconfirm --ignore filesystem
pacman -S -q --noconfirm --needed \
#!/bin/bash
aws ec2 run-instances \
--image-id ami-8e987ef9 \
--key-name kubuntu \
--security-groups ux \
--user-data "#include https://get.docker.io" \
--instance-type t1.micro \
FROM raring:latest
ADD sources.list /etc/apt/sources.list
RUN apt-get update ; apt-get -y upgrade
ADD mosquitto_1.2.1-1_amd64.deb /
RUN dpkg -i mosquitto_1.2.1-1_amd64.deb
ADD mosquitto.conf /usr/local/etc/mosquitto/mosquitto.conf
EXPOSE 1883 8883
ENTRYPOINT ["/usr/local/sbin/mosquitto", "-c", "/usr/local/etc/mosquitto/mosquitto.conf"]
@juranki
juranki / .emacs
Created October 14, 2012 06:09
.emacs (24.2, win7)
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
(require 'cl)
;;Clojure
;(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
@juranki
juranki / rabubi_chat.js
Created July 23, 2009 22:22
Ubiquity UI to RabbitMQ chat demo
(function($) {
var factoryServiceDefaults = {
factoryServiceUrl: "/rpc/rabbitmq",
timeout: 30000
};
var channelDefaults = {
rpcServiceUrlBase: "/rpc/",
username: "guest",
password: "guest",