Skip to content

Instantly share code, notes, and snippets.

View Starraider's full-sized avatar

Sven K. Starraider

View GitHub Profile
@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=*
@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 / 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 / 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 / ddev-commands.md
Last active August 26, 2020 05:21
Most important DDEV commands

Most important DDEV commands

Working with containers

Start a container:

ddev start

Stop a container:

@Starraider
Starraider / TYPO3_console_commands.md
Last active August 27, 2020 02:16
Usefull TYPO3 console commands

Usefull TYPO3 console commands

TYPO3-Console documentation

Make an alias for the bash:

If you don't want to use /vendor/bin/ in front of typo3cms:

mcedit ~/etc/bash/profile
@Starraider
Starraider / Modern_Command-Line-Tools.md
Last active July 30, 2022 03:27
Best Command-Line Tools

Modern Command-Line Tools

micro

micro is an editor for the command line, which is less complicated then vi(m)/emacs, but has more features then nano. It's somewhere in between.

Homepage

nnn

@Starraider
Starraider / manage_Java.md
Last active September 11, 2020 14:50
How to manage your Java environments in MacOS

How to manage your Java environments in MacOS

If you are a developer you need sometimes a diferent version of the JDK. MacOS comes also with his own JDK. So, how can you manage all the installed JDKs?

jEnv

jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable.

Installation and Setup

@Starraider
Starraider / VS-Code_Keyboard-Shortcuts.md
Last active April 17, 2022 09:53
Visual Studio Code Keyboard-Shortcuts

Visual Studio Code Keyboard-Shortcuts

Editor

key function
Select Code:
command+m+o Select outward
command+m+i Select inward
Edit Code:
@Starraider
Starraider / vim_tips.md
Last active July 2, 2024 22:03
Tips & Tricks for Vim/NeoVim

Tips & Tricks for Vim/NeoVim

Keyboard Shortcuts

Be aware the following shortcuts are only working, if you have the plugins installed mentioned below.

In Command Mode:

:w              Save file

:w filename Save file under new filename