LaTeX – Todonotes inline without specifying the inline argument

I use the todonotes package for LaTeX.

But I mostly use the inline command of it.

In order to avoid having to repeat the same argument again and again, I define this new command

```\newcommand{\todoin}[1][]{\todo[inline, #1]}
```

Now I can simpy write

```\todoin{test}
```

And it will appear as an inline todo note

Expect script – Read / write file

Thanks to this source : http://wiki.tcl.tk/367

To read data from a file in an Expect script:

```#!/usr/bin/expect -f

set fd "input.txt"
set fp [open "\$fd" r]

foreach line \$data {

puts "\$line\r"

}

```

And to write data to a file:

```#!/usr/bin/expect -f

set outputFilename "output.txt"
set outFileId [open \$outputFilename "w"]

puts -nonewline \$outFileId "A first line\n"
puts -nonewline \$outFileId "A second line\n"

#Close file descriptor to ensure data are flush to file
close \$outFileId

```

Linux – Transfert a file to a remote host with a particular port

The “scp” command is used to transfert file to a remote host.
The “-P” argument is used to define a particular port.

```scp -P [port] path/to/local/file username@remote.host:~/remote.file
```

Windows – Install many software in a simple command line

Chocolatey NuGet allow you to install software with a simple command line.

Easy install

Open a terminal and enter the following command.
Check the Chocolatey NuGet website to get the last version

```@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
```

You can now install a lot of software using a easy command

```choco install git
```