Skip to content

Instantly share code, notes, and snippets.

@erickeller
erickeller / oscap ubuntu
Last active May 7, 2017
build and run oscap on Ubuntu
View oscap ubuntu
git clone https://github.com/OpenSCAP/openscap.git
cd openscap
sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev \
libxml2-dev \
libxslt-dev \
libpcre3-dev \
libgcrypt20-dev \
libbz2-dev \
swig \
python-dev
@erickeller
erickeller / gist:b7062ab7eaa5145bea46409f5367e63c
Created Apr 26, 2017
wait for 30 sec continue directry if any keyboard key is pressed
View gist:b7062ab7eaa5145bea46409f5367e63c
for i in `seq 30`; do sleep 1; echo -n .; read -r -s -t 0.5; RETVAL=$?; [ $RETVAL -eq 0 ] && break ; done
@erickeller
erickeller / s3-upload.sh
Last active Apr 23, 2017 — forked from tabolario/s3-upload.sh
Upload to S3 with curl
View s3-upload.sh
#!/bin/bash -e
#
# Copyright 2014 Tony Burns
#
# 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
#
@erickeller
erickeller / tsp-web.service
Created Nov 22, 2016
enforce global environment variable via systemd
View tsp-web.service
[Service]
Environment=TS_SOCKET=/tsp/tsp-web.socket
Environment=TMPDIR=/tsp/
UMask=0002
WorkingDirectory=/usr/lib/node_modules/tsp-web
ExecStart=/usr/bin/node /usr/lib/node_modules/tsp-web/index.js
KillSignal=SIGQUIT
KillMode=process
TimeoutStopSec=15s
Restart=always
You can’t perform that action at this time.