Packer notes

File transferThis snippet will move a directory called scripts into the /tmp directory of the AMI being built. It will then run an ls -l on /tmp from within the AMI being built so that we can see that the directory transferred as we expected it to. "provisioners": [{ "type": "file"…

Ansible Notes

This will encompass things that I find useful and end up looking up later when I haven't coded in a while.Create role This will generate the folders and files associated with a new role. molecule init role --role-name <role name> CWD- name: Go to the folder and…

Ruby Notes

This will encompass things that I find useful and end up looking up later when I haven't coded in a while.File OperationsChmod fileFile.chmod(0600, file)Resource: https://stackoverflow.com/questions/22707040/change-permissions-of-file-in-rubyMove file without fileutilsFile.rename source_path, target_pathResource: https://stackoverflow.com/questions/403239/how-do-i-move-a-file-with-rubyFix extensions not…

Kali Config

This encompasses the various things I do whenever I'm setting up a new Kali VM in Virtualbox. Proxy Configuration Configure proxy (if applicable) by inputting the required values into /etc/environment. It will probably look something like this: http_proxy=www.proxy.com:80 https_proxy=www.proxy.com:80…

PHP Notes

I'm not thrilled that I have to create this cheatsheet, but such is life. Embed HTML in php <?php echo "<p>Stuff</p>"; ?> Resource: https://stackoverflow.com/questions/18140270/how-to-write-html-code-inside-php Setup Debugger with PHP w/ PHPStorm and XAMPP Start out by installing…