Snippets Collections
docker ps # current containers
docker run # create and start the container
docker create # create container
dokcer exec # to run commnads in container for once
docker volume # create a docker volume
docker network # create a docker network
docker rm # remove container 
docker images # list the images
docker rmi # remove image
docker build # build a new image from dockerfile
docker push # push your image to docker repo
docker pull # download an image from docker repo
docker commit # create an image from container
CI/CD is a method to frequently deliver apps to customers by introducing
automation into the stages of app development. The main concepts attributed
to CI/CD are continuous integration, continuous delivery,
and continuous deployment. 
CI/CD is a solution to the problems integrating new code can cause for 
development and operations teams (AKA "integration hell").

Specifically, CI/CD introduces ongoing automation and continuous monitoring 
throughout the lifecycle of apps, from integration and testing phases to 
delivery and deployment. 
Taken together, these connected practices are often referred to as a 
"CI/CD pipeline" and are supported by development and operations teams 
working together in an agile way with either a DevOps or 
site reliability engineering (SRE) approach.

/ means the root of the current drive;

./ means the current directory;

../ means the parent of the current directory
adb root
adb push my-app.apk /sdcard/
adb shell
mount -o rw,remount /system
cd /sdcard
cp my-app.apk /system/app
# or when using Android 4.3 or higher
mv my-app.apk /system/priv-app
clear               # only clear visible screen
clear && clear      # clear buffer as well
tput clear          # same as clear but by sending escape seq
reset               # clear + reset internal terminal state + 1sec delay
tput reset          # same as reset but without 1sec delay
stty sane           # don't clear screen but reset some terminal options
echo -e "\033c"     # same as tput reset but hardcoded escape seq
printf "\033c"      # same as tput reset but hardcoded escape seq
setterm -reset      # same as tput reset, setterm has friendlier commands 
cls    //Windows command prompt
clear   //Linux terminal
cls     //clean terminal only on windowsclear

clear   will clear the UBUNTU terminal
<img src="example.png" class="rounded">
  'My Card Alert',
  style: TextStyle(
  	fontWeight: FontWeight.bold

Thu Sep 08 2022 22:33:02 GMT+0000 (UTC)

#whatever #docker #grepper #google-search

Thu Jul 14 2022 08:54:45 GMT+0000 (UTC)


Sat Jul 02 2022 01:17:06 GMT+0000 (UTC)

#whatever #unix #linux #path

Mon Apr 18 2022 12:59:19 GMT+0000 (UTC)


Thu Apr 14 2022 17:09:07 GMT+0000 (UTC)


Tue Apr 12 2022 00:08:43 GMT+0000 (UTC)


Wed Apr 06 2022 06:22:42 GMT+0000 (UTC)


Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension