User:Maffblaster/Reference

Article description::A place where I store different command-line shortcuts and other things I reference often.

Tunnels
When attempting to connect to a resource outside of an organization's network, tunnels are an indispensable part of the equation. These can be produced using various utilities, which depends upon the OS being run, if the user has administrative access to the workstation (which is unlikely in a secure environment), if the OS permits mounting/attaching USB block storage devices, etc.

putty
Stuff is based off this serverfault thread.

Modern versions of putty (download here) can open tunnels on a Windows system.

Grep and open with Vim
and commands can be used in conjunction to search for specific lines in files and open the files to those files to the lines desired:

Open to line 585:

vim can also be used to directly open a certain function or word by searching, for example,

XDG_RUNTIME_DIR for commands over ssh
Running commands via ssh generally fails because the XDG_RUNTIME_DIR environment variable is not set to the user's run directory. Here's one workaround:

Mediawiki

 * ParserFunctions
 * Tables generator

Virtual environments
Creation and activation:

Running ruby programs
Sometimes it is necessary to download dependencies through language specific package managers, such as in the following example. Navigate to the directory containing the Gemfile (generally the repo's base dir), and run:

Note that this will avoid installing dependencies through Gentoo's package manager, which is an unhelpful side affect, but this work around may be necessary for some software (such as Jekyll).

Bash shortcuts
Merged into the bash article (emacs section).