This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get the interface name that the default route points to | |
# then get ip(v4) address info of that interface | |
# filter out all the ip addresses, take the first entry | |
ip -4 addr show dev "$(awk '$2 == 00000000 { print $1 }' /proc/net/route)" | awk '$1 ~ /^inet/ { sub("/.*", "", $2); print $2 }' | head -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh remotehost 'docker save image:tag | bzip2' | pv | bunzip2 | docker load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CVMFS_REPOSITORIES is comma delimited, specify all '/cvmfs/<repository_name>' paths that you want mounted | |
# for default values, see /etc/cvmfs/default.local on an lxplus host | |
# can run outside the CERN network | |
# this is a readonly mount | |
docker run -d --rm --env CVMFS_CLIENT_PROFILE=single --env CVMFS_REPOSITORIES=dune.opensciencegrid.org --cap-add SYS_ADMIN --device /dev/fuse --volume /cvmfs:/cvmfs:shared cvmfs/service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# do not run these commands without knowing what they mean | |
# use these commands if you've been naughty and didn't have a reminder or alert set up to notify you about | |
# certificates used by kubernetes about to expire, which bricks the whole control-plane | |
# used on K8S 1.18 | |
# on later K8S versions some of these commands are probably no longer alpha commands | |
# these commands need to be executed on all master nodes | |
# to find out if these commands apply to your situation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit -o nounset -o pipefail | |
IFS=$'\n\t\v' | |
cd `dirname "${BASH_SOURCE[0]:-$0}"` | |
echo test >/dev/null 2>&1 # these | |
echo test &>/dev/null # all | |
&>/dev/null echo test # do the same | |
# echo to stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR Error: Uncaught (in promise): Error: Can't resolve all parameters for CrisisDetailComponent: ([object Object], [object Object], ?). | |
Error: Can't resolve all parameters for CrisisDetailComponent: ([object Object], [object Object], ?). | |
at syntaxError (compiler.es5.js:1540) | |
at CompileMetadataResolver.webpackJsonpac__name_.186.CompileMetadataResolver._getDependenciesMetadata (compiler.es5.js:14877) | |
at CompileMetadataResolver.webpackJsonpac__name_.186.CompileMetadataResolver._getTypeMetadata (compiler.es5.js:14745) | |
at CompileMetadataResolver.webpackJsonpac__name_.186.CompileMetadataResolver.getNonNormalizedDirectiveMetadata (compiler.es5.js:14354) | |
at CompileMetadataResolver.webpackJsonpac__name_.186.CompileMetadataResolver._getEntryComponentMetadata (compiler.es5.js:14998) | |
at compiler.es5.js:14984 | |
at Array.forEach (<anonymous>) | |
at CompileMetadataResolver.webpackJsonpac__name_.186.CompileMetadataResolver._getEntryComponentsFromProvider (compiler.es5.js:14983) |