Learned or Solved Something Today?

Dump it here! Let others learn from you

Showing 15 of 15 from page 1

ikrum posted in #script #snippets #docker

Safely Clean Up Docker/overlay2 Folder | Free up your local machine

Each layer in an image is a folder inside the  usr lib docker overlay2  folder. Lets learn some way to clean up identify contents of var lib docker overlay Is it safe to clean docker overlay2 ?? Docke

shihab posted in #bash #script #tutorial #ubuntu

How To Auto Start XAMPP at Startup in Ubuntu

XAMPP is a free and open source cross platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for script

shihab posted in #bash #script #ubuntu #linux #solution #tutorial

How to Install Cisco Packet Tracer on Ubuntu 20.04

Packet Tracer is a cross platform visual simulation tool designed by Cisco Systems that allows users to create network topologies and imitate modern computer networks The software allows users to simu

anonymous posted in #script #snippets #node #nodejs #tool

ERROR: Failed to download Chromium r722234! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.

If you are having download Chromium issue while installing puppeteer gsts and similar node packages Heres how you can solve this NPM Problem Trace npm WARN deprecated cross spawn async 2 2 5 cross spa

ashikp posted in #bash #script #nodejs #angular #tutorial

Run Yarn with PM2 with any host

Intro Ok so we use lots of nodejs and angularjs framework for website development So In this time some use yarn to run and use npm So what happend is it s run in live front of you but when you close t

shihab posted in #bash #script #beginners #snippets

String Manipulation in Bash or Shell Script

A string is an important component in every programming language I bash string plays a vital part as well In this we will see the usage of string in bash or shell script To Execute Don t forget to run

anonymous posted in #bash #script #snippets #server

Simple Shell or Bash Script To Check If Service Is Running & Restart It When Dead

Very often we are in need to check if a service up and running periodically in linux or ubuntu server and restart them if they are dead Here is a simple bash script that you can use to check any servi

shihab posted in #bash #script #snippets #beginners

How to use Function in bash or shell script with examples.

Function in every programming language there is a huge impact of it Let s see how should we use function in bash or shell script Shell or Bash functions are similar to subroutines procedures and funct

shihab posted in #bash #script #snippets #beginners

How to use Array in bash or shell script with examples.

Array is another important component of programming Now we will see how to use Array in bash or shell script In Bash there are two types of arrays There are the associative arrays and integer indexed

shihab posted in #bash #script #snippets #beginners

How to use loops in bash or shell script with examples.

Here we will see the way of using Loops in bash or shell script As we all knows In computer programming a loop is a sequence of instructions that is continually repeated until a certain condition is r

shihab posted in #bash #script #beginners #snippets

How to use If condition in bash or shell script with examples.

This is a simple bash script or shell script to find greatest of two numbers read function used to get input from the user gt Greater than Note if you get this message this means you need to add an ex

ripon posted in #bash #script #snippets

How to setup cron jobs in Ubuntu

Cron is a time based job scheduler in Unix like operating systems Cron helps to run commands or scripts at a given time and date After setup cron it will execute periodically Install the cron package

pronab posted in #bash #script #mysql #backup #snippets

A simple bash scripting to backup All MySQL Database

Manual database backup sometimes creates more difficulty and also take lot time, So I've created a simple bash script to take backup for all of the databases in your machine Modify Credentials Before running your script. please modify your credentia

tarikur posted in #bash #script #snippets

K3S Single Node Cluster (MacOS)

Minimal k3s Kubernetes dev env on macOS using multipass. You will find a step by step guide to provision to install kubernetes cluster.

ikrum posted in #script #database #postgresql #docker #snippets

A bash script to take PostgreSQL database backup everyday from docker container

I have a postgres database running in docker-compose and I wanted to take a backup my database every day or in certain interval. Here is a simple bash script that I use to backup my database. Find your docker container name of your database docker p

fb