This file contains hidden or 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
apiVersion: v1 | |
clusters: | |
- cluster: | |
insecure-skip-tls-verify: true | |
server: https://localhost:6445 | |
name: docker-for-desktop-cluster | |
contexts: | |
- context: | |
cluster: docker-for-desktop-cluster | |
user: docker-for-desktop |
This file contains hidden or 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
winrm set winrm/config/Service/Auth @{Basic="true"} | |
winrm set winrm/config/Service @{AllowUnencrypted="true"} |
This file contains hidden or 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
rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir> |
This file contains hidden or 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
systemd-analyze time | |
systemd-analyze blame | |
systemd-analyze critical-chain |
This file contains hidden or 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
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 | |
sudo chmod +x /usr/local/bin/gitlab-runner | |
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash | |
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner | |
sudo gitlab-runner start | |
# gitlab-ci-multi-runner exec docker {test_name} | |
#Run the build: gitlab-runner exec docker my-job. | |
#This will run my-job defined in the local .gitlab-ci.yml in a docker container. |
This file contains hidden or 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
#!/bin/sh | |
# * */6 * * * /etc/storage/scheduled_reboot.sh >/dev/null 2>&1 | |
echo --------------- --------------- --------------- -- | |
echo WAN CONTROL RESTART | |
echo --------------- --------------- --------------- -- | |
logger -t "di" "===========WAN CONTROL RESTART=====================" | |
PINGRESORCE1="bbc.com" | |
PINGRESORCE2="cnn.com" | |
PINGRESORCE3="google.com" | |
if (! ping -q -c3 ${PINGRESORCE1} > /dev/null 2>&1) |
This file contains hidden or 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/local/anaconda/bin/activate | |
pip freeze | grep jupy | |
jupyter==1.0.0 | |
jupyter-client==5.2.3 | |
jupyter-console==5.2.0 | |
jupyter-core==4.4.0 | |
jupyterhub==0.8.1 | |
jupyterlab==0.34.2 | |
jupyterlab-launcher==0.13.1 |
This file contains hidden or 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
#!/bin/sh | |
WORKDIR=${PWD}/OUT/app | |
mkdir -p $WORKDIR/DEBIAN | |
cat <<EOF > $WORKDIR/DEBIAN/control | |
Package: app | |
Architecture: all | |
Maintainer: YOURNAME | |
Priority: optional |
This file contains hidden or 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
tmp=`mktemp -d /tmp/test-XXXXX` | |
trap "rm -rf $tmp" EXIT |
This file contains hidden or 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
#!/bin/bash | |
function resolveLatest() { | |
git tag --sort=-taggerdate | head -1 | |
} | |
function _hasGitChanges() { | |
test -n "$(git status -s)" | |
} |