Skip to content

Instantly share code, notes, and snippets.

View nuxsmin's full-sized avatar

RubénD nuxsmin

View GitHub Profile
@nuxsmin
nuxsmin / build-composer.sh
Created February 12, 2019 21:42
Build and package sysPass dependencies
#!/usr/bin/env bash
APP_DIR="$(pwd)/app"
if [ ! -d "${APP_DIR}" ]; then
mkdir "${APP_DIR}"
git clone https://github.com/nuxsmin/sysPass.git ${APP_DIR}
else
git pull --no-tags
fi
@nuxsmin
nuxsmin / api_client.php
Last active December 15, 2018 10:01
Basic (very) CURL client to connect to sysPass API
<?php
$data = [
'jsonrpc' => '2.0',
'method' => 'backup',
'params' => [
'authToken' => 'PUT_YOUR_TOKEN_HERE',
// 'id' => '11',
// 'userPass' => 'debian',
// 'text' => 'Keepass',