Skip to content

Instantly share code, notes, and snippets.

@githubfoam
githubfoam / opensuse experience
Last active May 22, 2018 10:49
opensuse experience
zypper se --installed-only -> list all packages
zypper se -si virtualbox vbox kernel
sudo zypper pa -i --installed-only | grep nginx ->#check whether or not nginx is installed
zypper search mpv
zypper remove mpv -> remove package
zypper info cdcat
zypper info --requires cdcat
@githubfoam
githubfoam / saltstack cheat sheet
Last active May 22, 2018 12:33
saltstack cheat sheet
SaltStack master operations
salt-key -L -> Showing all minions
salt-key -a <minion_id> -> Accepting an unaccepted minion
salt-key -A -> Accepting all unaccepted minions
salt-key -d <minion_id> -> Removing a minion
salt '*' state.sls nginx -> Running formula
salt '*' cmd.run 'ls -l /etc'
salt '*' pkg.install vim
@githubfoam
githubfoam / OpenStack experience
Created May 22, 2018 12:50
OpenStack experience
--------------------------------------------------------------------------
# All-in-one openstack run on single ubuntu-16.04 vagrant VM guest. min 6GB ram required.
vagrant up
E:\PURR\openstack3>vagrant ssh-config 33b9056
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
@githubfoam
githubfoam / remnux cheat sheet
Created June 20, 2018 08:34
remnux cheat sheet
build a REMnux system from scratch, use the Ubuntu 14.04 64-bit minimal ISO
a virtual machine, allocate at least 1GB of RAM and 25GB disk
the user named “remnux” with the password “malware”
#command to install the REMnux distro
wget --quiet -O - https://remnux.org/get-remnux.sh | sudo bash
Isolate REMnux within your lab by configuring the virtual appliance to use a “host only” network.
#After switching networks, run the renew-dhcp command in REMnux to refresh its network settings.
renew-dhcp
@githubfoam
githubfoam / CheckpointGW R77.30 Graylog Syslog Integration
Last active June 20, 2018 09:17
CheckpointGW R77.30 Graylog Syslog Integration
#Log in expert mode
# echo $FWDIR
/opt/CPsuite-R77/fw1
# ls -l /opt/CPsuite-R77/fw1/log/
#vi /etc/rc.d/init.d/cpboot
fw log -f -t -n -l $FWDIR/fw1/log/fw.adtlog|logger -p local5.info -t CP_FireWALL &
fw log -f -t -n -l $FWDIR/fw1/log/fw.log|logger -p local5.info -t CP_FireWALL &
fw log -f -t -n -l $FWDIR/fw1/log/fwui.log|logger -p local5.info -t CP_FireWALL &
reboot
@githubfoam
githubfoam / foren6 installation
Created June 20, 2018 09:24
foren6 installation
sudo apt-get install libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc libusb-1.0-0-dev
git clone https://github.com/cetic/foren6.git
cd foren6
make
sudo make install
#source code install 64x
sudo apt-get install libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc libusb-1.0-0-dev
git clone https://github.com/cetic/foren6.git
cd foren6
@githubfoam
githubfoam / contiki + cooja install
Created June 20, 2018 09:27
contiki + cooja install
#source code install 32x
wget https://github.com/contiki-os/contiki/archive/3.0.zip
arc
mv contiki-3.0 contiki
sudo apt-get install build-essential binutils-msp430 gcc-msp430 msp430-libc msp430mcu mspdebug gcc-arm-none-eabi gdb-arm-none-eabi openjdk-8-jdk openjdk-8-jre ant libncurses5-dev
#mspsim directory is empty.
cd contiki/tools/cooja/mspsim
git clone https://github.com/contiki-os/mspsim
@githubfoam
githubfoam / Install Bamboo
Created June 20, 2018 09:31
Install Bamboo
#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
@githubfoam
githubfoam / Fedora (Single Node) Kubernetes
Created June 20, 2018 09:48
Fedora (Single Node) Kubernetes
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.
@githubfoam
githubfoam / Vagrant box manual CentOS
Created August 14, 2018 12:34
Vagrant box manual CentOS
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