Skip to main content

Terminal Commands

  • Activate conda environment:
conda activate my_environment
  • Remove conda environment:
conda env remove --name my_environment
  • Yarn start local server:
yarn start
  • Yarn depoy to GitHub pages:
cmd /C "set GIT_USER=milindv26&& yarn deploy"
  • Convert .ipynb to .md:
jupyter nbconvert --to markdown notebook.ipynb
  • Justify command from .md to HTML through JDX:
<div style={{ textAlign: 'justify' }}>
  • Justify center image in Markdown
<div style={{ textAlign: 'center' }}>
<img src={require('./assets/2r.png').default} alt="Fig. 2"/>
<p style={{ marginTop: '1px' }}>Title</p>
</div>
  • Table with merged cells in Markdown
<div style={{ textAlign: 'center' }}>
<table>
<thead>
<tr>
<th>Layer 1</th>
<th>Layer 2</th>
<th>Layer 3</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="4">L1 Name</td>
<td rowspan="2">L2 Name A</td>
<td>L3 Name A</td>
</tr>
<tr>
<td>L3 Name B</td>
</tr>
<tr>
<td rowspan="2">L2 Name B</td>
<td>L3 Name C</td>
</tr>
<tr>
<td>L3 Name D</td>
</tr>
</tbody>
</table>
</div>
  • Rectangular box in markdown
<div style={{ border: '1px solid black', padding: '10px', textAlign:'justify' }}>
  • Git remote repository url:
git remote -v
  • Git merge unrelated histories:
git pull --allow-unrelated-histories <repository_name> main
  • Update the changed repository name:
git remote set-url origin https://github.com/username/new-repository-name.git