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
| #Install Bamboo 6.2 Ubuntu | |
| sudo apt-get install default-jdk | |
| echo $JAVA_HOME | |
| #Bamboo runs as the user it is invoked under and can potentially be abused.create a dedicated user to run Bamboo in Linux | |
| sudo /usr/sbin/useradd --create-home --home-dir /usr/local/bamboo --shell /bin/bash bamboo | |
| sudo su - bamboo | |
| #Create the installation directory <Bamboo installation directory> Extract the downloaded file |
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
| Fedora (Single Node) | |
| The Kubernetes package provides a few services: kube-apiserver, kube-scheduler, kube-controller-manager, kubelet, kube-proxy. | |
| These services are managed by systemd and the configuration resides in a central location: /etc/kubernetes | |
| We will break the services up between the hosts. | |
| https://kubernetes.io/docs/getting-started-guides/fedora/fedora_manual_config/ | |
| #fed-master, the Kubernetes master | |
| #This host will run the kube-apiserver, kube-controller-manager, and kube-scheduler | |
| #the master will also run etcd (not needed if etcd runs on a different host but this guide assumes that etcd and Kubernetes master run on the same host) | |
| #fed-node will be the node and run kubelet, proxy and docker. |
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
| ========================================================================================================== | |
| problem: | |
| The action can't be completed because the folder or a file in it is open in | |
| another program | |
| Close the folder or file and try again. | |
| fix: | |
| Option 1 – Use Resource Monitor (built-in) |
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
| hexdump -v -s 446 -n 64 /home/burbon/VirtualBox\ VMs/kali2017/Snapshots/2017-10-11T21-26-16-325521000Z.sav | |
| /home/burbon/VirtualBox\ VMs/kali2017/kali2017.vdi | |
| hexdump -s 446 -n 64 -v -e '1/1 " %02X" | |
| hexdump -s 446 -n 64 -v -e '1/1 "%02x" 3/1 " %3d" 1/1 " %02x" 3/1 " %3d" 2/4 " %9d" "\n"' /home/burbon/VirtualBox\ VMs/kali2017/kali2017.vdi | |
| hexdump -s 446 -n 64 -v -e '1/1 "%02x" 3/1 " %3u" 1/1 " %02x" 3/1 " %3u" 1/8 “%x" "\n"' /home/burbon/VirtualBox\ VMs/kali2017/kali2017.vdi | |
| hexdump -s 446 -n 64 -v -e ‘1/1 ” %02X”‘ /home/burbon/VirtualBox\ VMs/kali2017/kali2017.vdi | |
| sudo dd if=/home/burbon/VirtualBox\ VMs/kali2017/kali2017.vdi bs=512 count=1 | hexdump -C | |
| sudo dd if=/dev/sda1 bs=512 count=1 of=mbr_sda1.bin |
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
| ---------------------------------------------------------------------------------------------------- | |
| OWASP Top Ten | |
| https://owasp.org/www-project-top-ten/ | |
| The CWE Top 25 | |
| https://www.sans.org/top25-software-errors/ | |
| 2022 CWE Top 25 Most Dangerous Software Weaknesses | |
| https://cwe.mitre.org/top25/archive/2022/2022_cwe_top25.html |
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
| ---------------------------------------------------------------------------------------------------------------- | |
| #LXD on ubuntu | |
| #https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-lxd-on-ubuntu-16-04 | |
| sudo usermod --append --groups lxd vagrant | |
| sudo apt-get update -y | |
| sudo apt-get install zfsutils-linux -y | |
| sudo lxd init | |
| lxc list | |
| lxc launch ubuntu:x webserver | |
| lxc launch images:ubuntu/trusty myTrustyContainer -> download image and run container from downloaded image |
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
| ------------------------------------------------------------------------------------------ | |
| #Create first a ubuntu virtualbox VM then convert to a vagrant box | |
| ------------------------------------------------------------------------------------------ | |
| Create a new virtual machine with the following settings: | |
| Memory Size: 1024MB (to taste) | |
| New Virtual Disk: [Type: VMDK, Size: 40 GB] | |
| Disable floppy | |
| Disable audio | |
| Disable USB | |
| system-processor-1x |
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
| Create first a CentOS virtualbox VM then convert to a vagrant box | |
| #Create a new virtual machine with the following settings: | |
| Name: centos74minimal | |
| Type: Linux | |
| Version: Redhat 64 | |
| Memory Size: 1024MB (to taste) | |
| New Virtual Disk: [Type: VMDK, Size: 40 GB] | |
| Disable floppy | |
| Disable audio |
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
| --------------------------------------------------------------------------------------------- | |
| #Installing in silent mode | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh | |
| bash ~/miniconda.sh -b -p $HOME/miniconda | |
| --------------------------------------------------------------------------------------------- | |
| #anaconda cloud | |
| >anaconda login | |
| git clone https://github.com/Anaconda-Platform/anaconda-client | |
| cd anaconda-client/example-packages/conda/ |
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
| ============================================================================ | |
| molecule --debug test | |
| molecule --debug lint | |
| # Creating a new role | |
| molecule init role -r new-role -d docker | |
| molecule init --driver vagrant | |
| molecule init role --driver-name vagrant --role-name docker --verifier-name testinfra | |
| ============================================================================ | |
| #https://molecule.readthedocs.io/en/latest/configuration.html |