Skip to content

Instantly share code, notes, and snippets.

@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 / minio cheat sheet
Created June 20, 2018 08:28
minio cheat sheet
sudo wget https://dl.minio.io/server/minio/release/linux-amd64/minio
sudo chmod +x minio
sudo mv minio /usr/local/bin/
sudo useradd -r minio-user -s /sbin/nologin
sudo chown minio-user:minio-user /usr/local/bin/minio
sudo mkdir /usr/local/share/minio
sudo chown minio-user:minio-user /usr/local/share/minio
sudo mkdir /etc/minio
sudo chown minio-user:minio-user /etc/minio
sudo nano /etc/default/minio
@githubfoam
githubfoam / openshift origin cheat sheet
Created June 20, 2018 08:25
openshift origin cheat sheet
openshift-all-in-one
#web
https://10.2.2.2:8443/console/
admin/admin
#CLI
oc login https://10.2.2.2:8443
admin/admin
@githubfoam
githubfoam / apparmor cheat sheet
Last active August 12, 2021 23:05
apparmor cheat sheet
sudo apt-get install apparmor-utils
#view the current status of apparmor
sudo apparmor_status
sudo aa-status
#AppArmor profiles
/etc/apparmor.d/
#clear the profiles cache
/etc/init.d/apparmor stop
@githubfoam
githubfoam / ruby cheat sheet
Last active March 23, 2026 03:33
ruby cheat sheet
============================================================================
# https://www.ruby-lang.org/en/documentation/installation/
============================================================================
$ sudo snap install ruby --classic
$ sudo apt-get install ruby-full
$ sudo yum install ruby
$ sudo pacman -S ruby
$ pkg install ruby
$ brew install ruby
@githubfoam
githubfoam / ceph cheat sheet
Last active August 12, 2021 23:05
ceph cheat sheet
ceph-deploy disk list ceph-server-01 -> To list the disks on a node
ceph-deploy disk zap osdserver1:sdb -> zap a disk (delete its partition table) in preparation for use with Ceph
#Prepare OSDs
ceph-deploy osd prepare osdserver1:sdb:/dev/ssd
ceph-deploy osd prepare osdserver1:sdc:/dev/ssd
#Activate OSDs
ceph-deploy osd activate osdserver1:/dev/sdb1:/dev/ssd1
ceph-deploy osd activate osdserver1:/dev/sdc1:/dev/ssd2
#Create OSDs
@githubfoam
githubfoam / terraform cheat sheet
Last active February 28, 2022 23:18
terraform cheat sheet
terraform version
terraform init
terraform apply
terraform destroy
terraform fmt -write=false -diff=true provider.tf -> check for styling issues, displaying the diff onscreen, not
writing the files automatically
generate a dependency graph based on the Terraform configuration
$ terraform graph
--------------------------------------------------
@githubfoam
githubfoam / atom cheat sheet
Last active August 12, 2021 23:05
atom cheat sheet
------------------------------------------------------------------------------------------
Problem:
The tip of your current branch is behind its remote counterpart. Try pulling before pushing again. Or, to force push, hold cmd or ctrl while clicking.
Fix:
C:\Users\verona\github\PROBLEMPROJECT>git status
C:\Users\verona\github\PROBLEMPROJECT>git pull
C:\Users\verona\github\PROBLEMPROJECT>git push (github login required)
------------------------------------------------------------------------------------------
AtomLinter
@githubfoam
githubfoam / python cheat sheet
Last active March 23, 2026 03:33
python cheat sheet
============================================================================
It's the Language of AI Security: Open any modern security platform leveraging AI, and you'll find Python at its core. Learning Python means understanding how your most advanced security tools actually work—and how to maximize their potential.
It Enables Rapid Response: When a new threat emerges, Python lets your team move quickly. Instead of waiting for vendor updates, you can adapt and create custom detection rules or automation workflows within hours.
It Amplifies Your Team's Capabilities: Security teams everywhere face resource constraints. Python automation helps your existing analysts handle more alerts, investigate more thoroughly, and respond more effectively—without burning out.
It Unifies Your Security Ecosystem: Most organizations have dozens of security tools that don't communicate well. Python serves as the universal connector, allowing you to build the integrations vendors don't provide and extract more value from your
@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