- Download your-ssh-key.pem
- mv your-ssh-key.pem to ~/.ssh/your-ssh-key.pem
- ssh -i your-ssh-key.pem [email protected]
#Use this command to remove entries from known_hosts: ssh-keygen -R hostname
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
git rm -r --cached . | |
git add . | |
git commit -m "fixing .gitignore" |
#Use this command to remove entries from known_hosts: ssh-keygen -R hostname
#!/bin/sh | |
# Cleanup docker files: untagged containers and images. | |
# | |
# Use `docker-cleanup -n` for a dry run to see what would be deleted. | |
untagged_containers() { | |
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1. | |
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6). | |
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470 | |
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}' |
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
##Generating a new ssh-key
Open Terminal. Paste the text below, substituting in your GitHub email address.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Generating public/private rsa key pair.
#!/usr/bin/env bash | |
# | |
# Copyright (c) .NET Foundation and contributors. All rights reserved. | |
# Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
# | |
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
current_userid=$(id -u) | |
if [ $current_userid -ne 0 ]; then |
version: "3" | |
services: | |
server: | |
image: jetbrains/teamcity-server | |
ports: | |
- "8112:8111" | |
volumes: | |
- ./data_dir:/data/teamcity_server/datadir | |
- ./log_dir:/opt/teamcity/logs | |
teamcity-agent: |
return cy.get(`[data-cy="${id}"]`).then($button => { | |
$button.css('border', '1px solid magenta'); | |
$button.css('backgroundColor', 'rgba(186,62,197, 0.5)'); | |
}); |