Skip to content

Instantly share code, notes, and snippets.

View Starraider's full-sized avatar

Sven K. Starraider

View GitHub Profile
@Starraider
Starraider / mc-tips-and-tricks.md
Last active May 25, 2020 06:43
Tips and Tricks for midnight commander

Tips and Tricks for midnight commander

How to make Midnight Commander exit to its current directory

Put the following line in your .bashrc or .zshrc:

alias mc=". /usr/local/Cellar/midnight-commander/4.8.24/libexec/mc/mc-wrapper.sh"

Of course you have to change the path to your own mc install path.

@Starraider
Starraider / cli-tips-and-tricks.md
Last active May 25, 2020 06:12
Tipps and tricks for the command line

Tips and tricks for the command line

How to generate a path with escaped spaces and special characters

printf %q "~/my/very stupid/path/with spaces/"

output will be:

\~/my/very\ stupid/path/with\ spaces/%
@Starraider
Starraider / TYPO3-Conditions.typoscript
Last active September 20, 2022 21:32
New TYPO3-Conditions #TypoScript
Application Context:
[applicationContext == "Development"]
[GLOBAL]
...
Specific Page:
[page["uid"] == 2]
...
[GLOBAL]
@Starraider
Starraider / robots.txt
Last active May 17, 2020 07:33
robots.txt für TYPO3 #Templates
User-Agent: *
Disallow: /typo3/
# L=0 is the default language
Disallow: /*?L=0*
Disallow: /*&L=0*
# Only allow URLs generated with RealURL
Disallow: /*?id=*