Skip to content

Instantly share code, notes, and snippets.

@piascwal
piascwal / linuxcmd.md
Last active May 14, 2020 08:02
Linux commands

afficher et trier les répertoires par taille

du -ks * | sort -n

Volume physique

Se trouvent dans /dev/ ex : /dev/sda

Installation de logical volume manager

sudo apt-get inslall lvm2

Memo

Docker

Proxy dans un containter docker

utiliser l'ip du proxy à la place du nom moby/moby#24697

Resolve Loosing Mouse pointer on VM Virtual box

open a terminal

ps -ax | grep VBoxClient

kill -9 on two process with --draganddrop option

@piascwal
piascwal / git.md
Last active October 31, 2019 14:39

Config for a pretty git log

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"  

Use

git lg
@piascwal
piascwal / docker-cmd-utils.md
Last active June 5, 2019 20:06
Docker cmd utils

Docker commands

Build

image-name=myimage
image-version=1.0.0
image-path=/file/path/to/dockerfile
docker build -t $image-name:$image-version $image-path
@piascwal
piascwal / cors.md
Last active June 5, 2019 10:20
Cross-origin resource sharing (CORS)
@piascwal
piascwal / angular-runtime-configuration.md
Created June 4, 2019 14:02
Angular runtime configuration

How to enable runtime configuration for an Angular application