This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List the contents of the current directory | |
| root@host:/# ls | |
| bin dev home lib lost+found mnt proc run srv tmp vagrant vmlinuz | |
| boot etc initrd.img lib64 media opt root sbin sys usr var | |
| # Bind mount 'dev' and 'proc' filesystems from the host | |
| root@host:/# TARGET="/var/some-chroot" | |
| root@host:/# mkdir -p ${TARGET}/{dev,proc,bin,lib,lib64} | |
| root@host:/# mount --bind /dev ${TARGET}/dev | |
| root@host:/# mount --bind /proc ${TARGET}/proc |