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
#eth0 interface configuration | |
TYPE=Ethernet | |
NAME=eth0 | |
DEVICE=eth0 | |
ONBOOT=yes | |
BOOTPROTO=static | |
IPADDR=192.168.0.100 | |
DEFROUTE=yes | |
IPV4_FAILURE_FATAL=no | |
MTU=1462 |
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 | |
add_color(){ | |
#colors declaration | |
NORMAL='\\033[0m' | |
GREEN='\\033[0;32m' | |
RED='\\033[0;31m' | |
YELLOW='\\033[0;33m' | |
#recognize INFO,ERROR,SUCCESS |
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 | |
#Functiond used for ensuring that file passed as argument has UNIX EOL | |
ensure_unix_eol(){ | |
local file=$1 | |
if [[ $# -eq 0 ]]; then | |
echo -e "\nERROR: No arguments passed. Script cannot continue. Exiting...\n" | |
exit 1 | |
elif [[ $# -gt 1 ]]; then |
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 | |
IPT="/sbin/iptables" | |
INT_INTERFACE="eth0" | |
LOO_INTERFACE="lo" | |
IPADDR="" | |
SUBNET_BASE="" | |
SUBNET_BROADCAST="" | |
MY_ISP="" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# Every Vagrant development environment requires a box. You can search for |
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
# no welcome message | |
startup_message off | |
# lines buffor | |
defscrollback 5000 | |
# 256 colors | |
attrcolor b ".I" | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
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 | |
vars(){ | |
echo "Setting up vars" | |
dir_bitlocker="/media/bitlocker" | |
file_dislocker="dislocker-file" | |
dir_bitlocker_mount="/media/bitlocker_mount" | |
dislocker="/usr/bin/dislocker" | |
} | |
ensure_dislocker(){ |
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
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted | |
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | |
## team. Also, please note that software in universe WILL NOT receive any |
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
chmod 700 ~/.ssh | |
chmod 644 \ | |
~/.ssh/id_rsa.pub \ | |
~/.ssh/known_hosts \ | |
~/.ssh/authorized_keys \ | |
~/.ssh/config | |
chmod 600 ~/.ssh/id_rsa |
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
# crictl documentation: https://kubernetes.io/docs/tasks/debug-application-cluster/crictl/ | |
# Runtime endpoints: | |
sudo crictl --runtime-endpoint unix:///run/containerd/containerd.sock | |
sudo crictl --runtime-endpoint unix:///var/run/dockershim.sock | |
sudo crictl --runtime-endpoint unix:///run/crio/crio.sock | |
## Containers | |
# Get all containers |
OlderNewer