Linux Cheat-sheet Linux permissions r w x Binary Decimal rwx Meaning 1 1 1 111 7 rwx Read, Write, Execute 1 1 0 110 6 rw- Read, Write 1 0 1 101 5 r-x Read, Execute 1 0 0 100 4 r-- Read 0 1 1 011 3 -wx Write, Execute 0
Docker Cheat-sheet Install docker apt install docker.io Uninstall docker apt-get remove docker docker-engine docker.io Export container to TAR file docker export containerNameOrID > /home/user/my_file_name_$(date +%d-%m-%Y_%H-%M-%S).tar Import container from TAR file docker import /home/user/my_file_name.tar docker import
How to install HashCat in MacOS Well well well, it's time to put that shiny M2 Pro chip to the test right? It seems to be as simple as: brew install hashcat Which will have an output similar to this: terminator@skynet ~ % brew install hashcat ==> Homebrew collects anonymous analytics. Read the analytics documentation (and how to
MongoDB Cheat-sheet Create Database use blog db.createCollection("posts") Connection string for replica set mongodb://db1.server.com:port,db2.server.com:port,arbiter.server.com:port/MyDataBaseName?replicaSet=MyReplicaSetName Connection string for an authenficated replica set mongodb://myusername:mypassw0rd@db1.server.com:port,db2.server.com:port,arbiter.server.com:port/
Node.JS Cheat-sheet Encode String to Base64 console.log(Buffer.from('This message will be encoded to base64', 'utf8').toString('base64')); Decode String from Base64 console.log(Buffer.from('VGhpcyBtZXNzYWdlIHdpbGwgYmUgZW5jb2RlZCB0byBiYXNlNjQ=', 'base64').toString('utf8')); Generate random UUID from console (oneliner) console.log(require('crypto').randomUUID()); Replace all ocurrences of a string (Method 1)
DIY Fast External SSD Well folks, a few months back I decided that I wanted to get a MacBook Pro 14" 2023 for editing my photos in Lightroom and Photoshop. All my files were in a RAID 1 HDD array in my Windows PC so I needed to get an external SSD that was
How to install Visual Studio Code in MacOS VS Code, the most recent developer's favorite. Here is how to get it all setup on your new MacBook Pro 14" 2023! 1. Download the installer from Visual Studio Code's offical website or use this direct link. 2. Locate the downloaded file 3. Open the Applications folder in your MacBook