Advanced Search
Search Results
17 total results found
Deployment/Installation Tools
Container Tools install-docker.sh # Docker curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/sh/install-docker.sh | bash # Docker-Compose sudo apt-get update && sudo apt install -qy python-pip && pip install docker-compose # or as root apt-get update ...
Programming Environment Tools
Here is a list of some installation guides: Deploying Standalone JupyterLab on Kubernetes for Early Stage Startups Visual Studio Code Server Installation Docs Edit the file /lib/systemd/system/code-server.service to create the coder-server service: [Un...
Git
Resources: A Cheatsheet of High-Frequency Git Commands “Here Are 7 Git Commands Every Developer Should Know” by Indrek Lasn Temporary cache credentials for git (example is cache for 1 hour): git config credential.helper 'cache --timeout=3600' To disable...
General Tools
Speedtest CLI Follow the Speedtest CLI installation tutorial. NCDU For getting the size of folders in servers, we can use ncdu: sudo apt-get update && sudo apt install -qy ncdu Syncthing Follow this tutorial to install. Then, do the following (replace nima wi...
Runtime Environments
NodeJS NVM Install NVM: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash # or you could specify the version: # curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash Then use nvm to install a specific ver...
Kubernetes Deployment and Installation
K3S Installation A good starting point for k3s installation using k3sup would be: # run the following commands on your master VM # create kubeconfig directory mkdir ~/.kube # master information export MASTER_IP=10.1.1.1 # install k3s k3sup install \ --local ...
User Management
# create the user adduser ubuntu # add it to sudoers usermod -aG sudo ubuntu # allow passwordless sudo: sudo nano /etc/sudoers.d/90-cloud-init-users # add this: ubuntu ALL=(ALL) NOPASSWD:ALL # login as the user su ubuntu # add ssh public key to authorized_user...
Dockerfile Best Practices
Sources for Important Information: Google Cloud Best practices for building containers The importance of PID 1 in containers Google Cloud Run Container Runtime Contract Docker Multi-Stage Builds Dockerfile Examples Python # Define global args ARG FUN...
SSH
Installation # For the server sudo apt-get update && sudo apt-get install -qy openssh-server # For the client sudo apt-get update && sudo apt-get install -qy openssh-client Create a SSH Key Here is an easy way. Check out other encryptions, etc., later on. ss...
Pandoc
Creating an ebook with Pandoc GitHub: Pandoc Book Maker Template Medium: Building books with Markdown using pandoc Pandoc: Creating an ebook with pandoc For example, a pdf ebook can be generated in this folder using the following command: pandoc --toc ...
Inlets
Inlets are something like ngrok, which exposes a server behind a firewall on a public IP (on a VPS). It will route all traffic to a specific port to the client which connects remotely behind a firewall. You can read more about it in this blog post or inlets gi...
Jekyll for GitHub Pages
Here are useful references for using Jekyll for GitHub Pages: GitHub Pages Jekyll Installation Guide Using Jekyll with Bundler Creating a GitHub pages with Jekyll GitHub Pages Dependency Versions Installation sudo apt-get install ruby-full build-es...
Latex Build
Build using Latex-Builder After changing into the directory with main.tex (and possibly bibliography.bib): rm upload.zip 2> /dev/null && zip upload.zip * && curl -fsSL https://lb.nima-dev.com/sync/upload/main.docx -F 'file=@upload.zip' -o main.docx We can als...
Nginx
Serve Current Directory as Static Files docker run -p 80:80 --restart unless-stopped -v $(pwd):/usr/share/nginx/html nginx
Docker Swarm
Firewall Settings In order to add the necessary firewall rules, check docs from docker. The following are necessary: TCP port 2377 for cluster management communications TCP and UDP port 7946 for communication among nodes UDP port 4789 for overlay network traf...
Installation and Setup
Courses: Learning Puppet (introductory) Puppet Essential Training For single node installation and stand-alone modes, check out the following tutorials: Puppet Single Node Installation Install Puppet Stand-Alone Installation You can follow the inst...
Unattended Upgrades
To upgrade packages automatically without the need to run the commands every time, use the following: # in case the package isn't installed sudo apt install unattended-upgrades # setting up unattended upgrades dpkg-reconfigure -plow unattended-upgrades