One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
package main | |
/* | |
Input: | |
csv string: | |
` | |
Username; Identifier;First name;Last name | |
booker12;9012;Rachel;Booker | |
grey07;2070;Laura;Grey |
#Open Automator | |
#Choose "New Document" | |
#Locate "Run AppleScript" and double-click it | |
#Paste the Applescript code into the box | |
#Save as /Applications/TerminalVim.app | |
#In Finder, select some file you want to open in Vim | |
#Hit โI to open the โGet Infoโ window. | |
#Under โOpen with:โ, choose TerminalVim.app. You may need to select โOtherโฆโ and then browse. | |
#Hit the โChange Allโฆโ button and confirm. |
#!/bin/bash | |
set -x | |
# check packages | |
AWS_CLI_PATH="/usr/local/bin/aws" | |
DIALOG_CLI_PATH="/usr/local/bin/dialog" | |
if ! $DIALOG_CLI_PATH 2&>/dev/null; then | |
echo "dialog package package doesnot installed, please install it" | |
fi | |
if ! $AWS_CLI_PATH --version 2&>/dev/null; then |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: A 3-node setup for k8s cluster w/ cloud provider support | |
##!/bin/bash | |
#set -ex | |
#if [ "${1}" = "create" ]; then | |
# aws cloudformation create-stack \ | |
# --template-body file://cfn-elk-cluster.yaml \ | |
# --stack-name k8s-test-cluster \ | |
# --capabilities CAPABILITY_NAMED_IAM \ | |
# --parameters \ |
#!/bin/bash | |
# investigate | |
docker system df | |
# prune all | |
docker system prune -a -f | |
# remove exited containers: |
heat_template_version: 2013-05-23 | |
description: 2 vms (simple http services running) + LB with customized contrail backend (opencontrail, haproxy, etc.) + Floating IP as external LB endpoint | |
parameters: | |
internal_network_name: | |
type: string | |
description: Name of internal network | |
default: monitoring_workload_net |
#!/bin/bash | |
# text to @botFather | |
# get botID, chatID | |
# set env vars | |
echo "export ALARM_CHAT=YOUR_ID" >> .bashrc | |
echo "export ALARM_BOT_TOKEN=YOUR_TOKEN >> .bashrc | |
source .bashrc | |
################################################### | |
root@vnaumov-dev:~# cat /etc/systemd/system/start_and_stop.service | |
[Unit] |
#!/usr/bin/python | |
''' | |
requirements: | |
pip install python-jenkins | |
chmod u+x plugin_info.py | |
Example output: | |
./plugin_info.py -o=log.txt -f=longName,version |
#!/bin/bash | |
# This script should be located on each Jenkins slave, and the jenkins user should have permission to run it with sudo | |
# Attempts to cleanly stop and remove all containers, volumes and images. | |
docker ps -q | xargs --no-run-if-empty docker stop | |
docker ps -q -a | xargs --no-run-if-empty docker rm --force --volumes | |
docker volume ls -q | xargs --no-run-if-empty docker volume rm | |
docker images -a -q | xargs --no-run-if-empty docker rmi -f | |
# Stops the docker service, unmounts all docker-related mounts, removes the entire docker directory, and starts docker again. |