Details on the inside.
A Pen by Seth Bergman on CodePen.
#!/usr/bin/env bash | |
stale_images=`docker images --no-trunc --quiet --filter "dangling=true"` | |
stale_containers=`docker ps --no-trunc --quiet --filter "status=exited"` | |
stale_volumes=`docker volume ls --quiet --filter "dangling=true"` | |
stale_images_count=`echo "$stale_images" | sed '/^\s*$/d' | wc -l | xargs` | |
stale_containers_count=`echo "$stale_containers" | sed '/^\s*$/d' | wc -l | xargs` | |
stale_volumes_count=`echo "$stale_volumes" | sed '/^\s*$/d' | wc -l | xargs` | |
echo "Removing stale containers..." |
# Description: Boxstarter Script Customizations | |
# Author: Jess Frazelle <[email protected]> | |
# Modified by Seth Bergman | |
# Last Updated: 2019-05-26 | |
# https://gist.githubusercontent.com/sethbergman/65f4fd8172c9a0977ab24cbf98f3a13f/raw/6120d635c0f3a5cea5c659ddae44429a0ea4bd60/boxstarter.ps1 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned |
<button id="clap" class="clap"> | |
<span> | |
<!-- SVG Created by Luis Durazo from the Noun Project --> | |
<svg id="clap--icon" xmlns="http://www.w3.org/2000/svg" viewBox="-549 338 100.1 125"> | |
<path d="M-471.2 366.8c1.2 1.1 1.9 2.6 2.3 4.1.4-.3.8-.5 1.2-.7 1-1.9.7-4.3-1-5.9-2-1.9-5.2-1.9-7.2.1l-.2.2c1.8.1 3.6.9 4.9 2.2zm-28.8 14c.4.9.7 1.9.8 3.1l16.5-16.9c.6-.6 1.4-1.1 2.1-1.5 1-1.9.7-4.4-.9-6-2-1.9-5.2-1.9-7.2.1l-15.5 15.9c2.3 2.2 3.1 3 4.2 5.3zm-38.9 39.7c-.1-8.9 3.2-17.2 9.4-23.6l18.6-19c.7-2 .5-4.1-.1-5.3-.8-1.8-1.3-2.3-3.6-4.5l-20.9 21.4c-10.6 10.8-11.2 27.6-2.3 39.3-.6-2.6-1-5.4-1.1-8.3z"/> | |
<path d="M-527.2 399.1l20.9-21.4c2.2 2.2 2.7 2.6 3.5 4.5.8 1.8 1 5.4-1.6 8l-11.8 12.2c-.5.5-.4 1.2 0 1.7.5.5 1.2.5 1.7 0l34-35c1.9-2 5.2-2.1 7.2-.1 2 1.9 2 5.2.1 7.2l-24.7 25.3c-.5.5-.4 1.2 0 1.7.5.5 1.2.5 1.7 0l28.5-29.3c2-2 5.2-2 7.1-.1 2 1.9 2 5.1.1 7.1l-28.5 29.3c-.5.5-.4 1.2 0 1.7.5.5 1.2.4 1.7 0l24.7-25.3c1.9-2 5.1-2.1 7.1-.1 2 1.9 2 5.2.1 7.2l-24.7 25.3c-.5.5-.4 1.2 0 1.7.5.5 1.2.5 1.7 0l14.6-15c2-2 5.2- |
Details on the inside.
A Pen by Seth Bergman on CodePen.
#!/bin/bash | |
############################################################################## | |
# SHORTCUTS | |
############################################################################## | |
CTRL+A # move to beginning of line | |
CTRL+B # moves backward one character | |
CTRL+C # halts the current command | |
CTRL+D # deletes one character backward or logs out of current session, similar to exit |
#!/usr/bin/env bash | |
set -e | |
# https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 2>/dev/null | |
sudo echo "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') bionic stable" > /etc/apt/sources.list.d/docker.list | |
sudo apt-get -y update |
# linux script to add a new ssh key to a bunch of different domains to which you have ssh access | |
# key_to_add.txt is a text file containing the ssh key and should be in the same directory | |
# add valid credentials for however many domains you need to add ssh keys for | |
# domain1 to add key to | |
cat key1.txt | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' | |
# domain2 to add key to | |
cat key2.txt | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' | |
# domain3 to add key to | |
cat key3.txt | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
{"lastUpload":"2019-01-10T01:39:07.652Z","extensionVersion":"v3.2.4"} |