Skip to content

Instantly share code, notes, and snippets.

@nxt-ext
nxt-ext / filename.yml
Created May 24, 2014 04:15
Echo hallmark_predefs
---
# run via ansible-playbook filename.yml
- name: test hallmark_predef
hosts: nxts
gather_facts: no
tasks:
- local_action: shell echo "{{ hallmark_predef }}"
register: h_p
- debug: msg="{{ h_p.stdout }}"
@nxt-ext
nxt-ext / safe-nxt-download.sh
Last active August 29, 2015 13:57
Nxt dowloader and verifier
#!/bin/bash
# This is free and unencumbered script released into the public domain.
# Made by EmoneyRu (https://github.com/nxt-ext/nxt-kit#contacts) NXT-9XEN-PLLG-RUW8-2H7SV
if [[ -z "$1" ]]; then
echo "Pass version number as first parameter"
exit 1
fi
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;
@nxt-ext
nxt-ext / run.bat
Last active August 29, 2015 13:56
Trying to run Nxt on Windows
@ECHO OFF
SET PATH=%PATH%;%PROGRAMFILES%\Java\jre7\bin;%PROGRAMFILES(X86)%\Java\jre7\bin
java -version >nul 2>&1 && (
start "NXT NRS" java -cp nxt.jar;lib\*;conf nxt.Nxt
) || (
ECHO Java software not found on your system. Please go to http://java.com/en/ to download a copy of Java.
PAUSE
)
@nxt-ext
nxt-ext / README.md
Last active January 2, 2016 01:39
nxt-kit: setting pre-calculated hallmark

Question

"how easily does it support running a hallmark that someone else gave you, and pushing that hallmark to certain remote nodes?"

Answer

  • define variable hallmark per host in inventory file
  • remove hallmark generation from handlers & notify @ deploy.yml (original)
  • replace hallmark extraction in web.j2 (original) to just printing variable hallmark if it is defined