Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:
@freme
freme / VampirTrace-CMakeLists.txt
Last active April 21, 2019 23:38
CMAKE for VampirTrace
# Copyright (c) 2014, Felix Schmitt, Axel Huebl, Rene Widera
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
@freme
freme / Score-P-CMakeLists.txt
Last active February 20, 2021 08:35
CMake and Score-P integration
# Copyright (c) 2014, Felix Schmitt, Axel Huebl, Rene Widera
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
@freme
freme / Jenkinsfile
Last active December 18, 2017 15:17
minimal Jenkinsfile to show that when directive does not prevent stage from being executed, only the steps, which means that the agent is still needed
pipeline{
agent none
stages{
stage('linux') {
when { expression {false} }
agent { label 'default' }
steps { echo 'LINUX' }
}
}
}
pipeline{
agent none
stages{
stage('linux') {
when { expression {false} }
agent { label 'default' }
steps { echo 'LINUX' }
}
}
}
@freme
freme / overlay.sh
Created January 4, 2018 10:40 — forked from cjbottaro/overlay.sh
Convert ECS Optimized AMI to use overlay/overlay2
set -e
# Stop the docker daemon
/etc/init.d/docker stop
# Configure ECS Agent
# http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html
# http://docs.aws.amazon.com/AmazonECS/latest/developerguide/automated_image_cleanup.html
cat > /etc/ecs/ecs.config << "EOF"
ECS_ENGINE_TASK_CLEANUP_WAIT_DURATION=1h