Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@erickeller
erickeller / oscap ubuntu
Last active February 9, 2021 15:52
build and run oscap on 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 April 26, 2017 13:43
wait for 30 sec continue directry if any keyboard key is pressed
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 April 23, 2017 17:21
Upload to S3 with curl
#!/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 November 22, 2016 10:10
enforce global environment variable via systemd
[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