Reference:
sudo fdisk -l
| ################################################### | |
| ## | |
| ## Alertmanager YAML configuration for routing. | |
| ## | |
| ## Will route alerts with a code_owner label to the slack-code-owners receiver | |
| ## configured above, but will continue processing them to send to both a | |
| ## central Slack channel (slack-monitoring) and PagerDuty receivers | |
| ## (pd-warning and pd-critical) | |
| ## |
| [options] | |
| # | |
| # WARNING: | |
| # If you use the Odoo Database utility to change the master password be aware | |
| # that the formatting of this file WILL be LOST! A copy of this file named | |
| # /etc/odoo/openerp-server.conf.template has been made in case this happens | |
| # Note that the copy does not have any first boot changes | |
| #----------------------------------------------------------------------------- | |
| # Odoo Server Config File - TurnKey Linux |
| # BootKube Deployment (FINAL): | |
| ## NEW INSTALLATIONS: | |
| sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y docker.io vim ethtool traceroute git build-essential lldpd | |
| ## Cleanup | |
| sudo systemctl stop kubelet.service | |
| sudo docker rm bootkube-render | |
| sudo docker stop $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
| sudo docker rm -f $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
| sudo docker rm -f $(sudo docker ps -a | grep bootkube| cut -c1-20 | xargs sudo docker stop) |
Reference:
sudo fdisk -l
$ uname -r
Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.
| # Backup your packages list | |
| # Get a packages list | |
| dpkg --get-selections > ~/Package.list | |
| # Copy list of repositories | |
| sudo cp /etc/apt/sources.list ~/sources.list | |
| # Export repo keys | |
| sudo apt-key exportall > ~/Repo.keys |
| #!/bin/sh -e | |
| mkdir -p /usr/share/ca-certificates/cacert.org/ | |
| curl http://www.cacert.org/certs/root.crt > /usr/share/ca-certificates/cacert.org/cacert.org.crt | |
| curl http://www.cacert.org/certs/class3.crt >> /usr/share/ca-certificates/cacert.org/cacert.org.crt | |
| sed -i 's/^\!\(cacert\)/\1/' /etc/ca-certificates.conf | |
| update-ca-certificates |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| ''' | |
| Copyright (C) 2012 Matthew Skolaut | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
| associated documentation files (the "Software"), to deal in the Software without restriction, | |
| including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
| sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial |