Skip to content

Instantly share code, notes, and snippets.

View dimrozakis's full-sized avatar

Dimitris Rozakis dimrozakis

View GitHub Profile
@dimrozakis
dimrozakis / ci.yml
Last active October 22, 2018 23:12
.script: &script |-
# Helper functions and initialization.
set -euo pipefail
docker_auth() {
# Configure docker registry auth credentials.
echo "Configuring docker registry auth credentials."
if [ -z "$CI_REGISTRY" ]; then
echo "Gitlab registry is not enabled." >&2
powershell.exe -command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force;(New-Object System.Net.WebClient).DownloadFile('https://github.com/mistio/collectm/blob/build_issues/scripts/collectm.remote.install.ps1?raw=true', '.\collectm.remote.install.ps1');.\collectm.remote.install.ps1 -gitBranch ""build_issues"" -SetupConfigFile -setupArgs '-username """"a2eeba85db4e3407b8f7a4d51e2bc7f7"""""" -password """"""4779a8b699b3a9fa"""""" -servers @(""""""null.mist.io"""""") -interval 10'"
@dimrozakis
dimrozakis / collectd_crypto_specs.txt
Last active December 21, 2020 12:04
collectd crypto
Collectd network protocol cryptographic setup
=============================================
Collectd's network plugin supports authentication and encryption. This text
file describes how each case works to make it easier to add crypto support for
third party collectd network protocol implementations.
Two crypto modes are supported: 'Sign' and 'Encrypt'. Both are detailed in the
following sections. Some notes that apply to both:
You need to configure a common username/password pair in both the server and
@dimrozakis
dimrozakis / gist:8398088
Created January 13, 2014 10:44
Bash script to create new bare git repo (optionally a shared one)
#!/bin/bash
echo "This will create a new bare repo here."
while [ 1 ]; do
echo -n "Enter the name of the repo: "
read name
# check if empty
if [ ! $name ]; then
echo " ...you need to provide a name"