Skip to content

Instantly share code, notes, and snippets.

Ari Maniatis ari

Block or report user

Report or block ari

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ari
ari / bas.py
Created Oct 21, 2018
Create BAS entries
View bas.py
#!python3
import argparse
import locale
import logging
from datetime import datetime, date
from lib.moneyworks import Moneyworks
from lib.transaction import Transaction
mw = Moneyworks('/usr/local/etc/salt/runner/mw.ini')
View PageHead.tml
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<script type="text/javascript">
var ciVersion = '${ciVersion}';
var editorVersion = '${editorVersion}';
var checkoutVersion = '${checkoutVersion}';
</script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<t:any element="meta" name="generator" content="prop:metaGeneratorContent" />
@ari
ari / complex_salt_orchestrate.sls
Created Aug 21, 2017 — forked from whiteinge/complex_salt_orchestrate.sls
An example of a complex, multi-host Salt Orchestrate state that performs status checks as it goes
View complex_salt_orchestrate.sls
{% set backends = [ 'colo.dash', 'colo.flash' ] %}
{% set applications = [ 'willow_api', 'willow_services' ] %}
####
# Loop through the applications, and for each loop through the backends
####
{% for application in applications %}
{% for backend in backends %}
@ari
ari / CVE-2017-9615.txt
Last active Jun 25, 2017
CVE-2017-9615
View CVE-2017-9615.txt
[Suggested description]
Password exposure in Cognito Software Moneyworks 8.0.3 ( http://cognito.co.nz/ ) and earlier allows
attackers to gain administrator access to all data, because verbose logging writes the administrator password to a world-readable file.
------------------------------------------
[Additional Information]
1. Original issue discovered and notified to the vendor: 6 June 2017
2. Vendor response acknowledging issue: 6 June 2017
3. Vendor second response confirming they do not plan on fixing the issue: 12 June 2017
@ari
ari / applicationStartScript.sh
Created Apr 22, 2017
gradle application plugin start script
View applicationStartScript.sh
#!/usr/bin/env sh
##############################################################################
##
## ${applicationName} start up script
##
##############################################################################
# There is no realpath command on OSX, so we need to fake it
command -v realpath >/dev/null 2>&1 || realpath() {
View doorCounter.py
#!/usr/bin/python
# Run this application like this:
# /usr/bin/python /home/pi/doorCounter.py -n label -g 22
# -g: GPIO pin to watch
# -n: label to send to Google Analytics
import RPi.GPIO as GPIO
import time
@ari
ari / Gemfile
Created Jul 11, 2016
Talented gemfile
View Gemfile
source 'https://rubygems.org'
gem 'rails', '~> 4.2'
gem 'jruby-jars', '9.1.2.0'
# make sure ./.ruby-version is in sync with this
gem "activerecord-jdbcmysql-adapter"
gem "devise", '4.0.3'
gem "sass-rails", ">= 4.0.3"
@ari
ari / hs_err_pid.log
Created May 30, 2016
JVM crash in ZIP_GetEntry
View hs_err_pid.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000803c3e17a, pid=25276, tid=0x00000000000195b3
#
# JRE version: OpenJDK Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: OpenJDK 64-Bit Server VM (25.92-b14 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libzip.so+0x517a] ZIP_GetEntry+0x11a
#
@ari
ari / build.gradle
Last active Aug 17, 2019
Docbook gradle build
View build.gradle
/*
Copyright 2015 Aristedes Maniatis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
View tls.py
'''
SSL/TLS certificate generator
This script will either create a new key + csr for a new ssl domain or just a new csr, if you already have a key and
you are just renewing a cert
'''
from __future__ import absolute_import
import salt.pillar
You can’t perform that action at this time.