This file contains 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
cat $FILE | sort --random-sort | head -n 1 | |
# alternatively | |
rl -c 1 -n src/main/resources/and-feb10.csv |
column
: create columns from text inputtr
: translate/substitute/delete inputjoin
: like a database join but for textcomm
: file comparison like a db joinpaste
: put lines in a file next to each otherrs
: reshape arraysjot
: generate dataexpand
: replace spaces and/or tabstime
: track time and resourcingwatch
: execute something on a schedule in realtime
Below a list of yeoman tools, generators that are very useful to scaffold front-end boilerplate code.
Also It can be very helpful in adding them into a docker container and share.
Envcheck makes sure that everything is installed properly in order to run yeoman smoothly
$ npm install -g envcheck
This file contains 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
1. Menu do not display | |
* Type : $ nano .local/share/applications/dart_editor.desktop | |
* Make sure you have the following lines in this file : | |
Icon=<your_path>/dart/icon.xpm | |
Path=<your_path>/dart | |
Exec=env UBUNTU_MENUPROXY= <your_path>/dart/DartEditor (!! space character important here !!) | |
2. Dartium can not be open b/c libudev.so.0 was not found |
This file contains 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
$ lsb_release -a |
This file contains 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
# cli | |
$ node --expose-gc test.js | |
# in .js source code | |
global.gc() |
This file contains 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
1. Since we are using NVIDIA driver, we need to remove or disable XServer Nouveau Drivers | |
* Disable : | |
** sudo nano /etc/modprobe.d/blacklist-nouveau.conf | |
** Add the following two lines : | |
blacklist nouveau | |
options nouveau modeset=0 | |
* Remove : sudo apt-get remove xserver-xorg-video-nouveau | |
2. Stop the display manager : sudo service lightdm stop | |
3. Install the drivers : |
This file contains 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
# init a python project | |
pip install virtualenv | |
virtualenv --distribute <venv_dirname> | |
source <venv_dirname>/bin/activate | |
# install dependencies | |
pip install -r requirements.txt | |
# exit virtualenv mode | |
deactivate |
This file contains 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
npm update -S |