Keybase proof
I hereby claim:
- I am tuurlijk on github.
- I am tuurlijk (https://keybase.io/tuurlijk) on keybase.
- I have a public key ASBSWukQjv68Unm_jrPIAQc4F1eytqzkRnrFLz-jREbOwgo
To claim this, I am signing this object:
-- Lambda prompt | |
-- Background color sequence = \ESC[48;5;236m | |
-- where | |
-- 236 = one of the 256 ansi color codes | |
-- Foreground color sequence = \ESC[38;5;244m | |
-- where | |
-- 244 = one of the 256 ansi color codes | |
-- Combined color sequence = \ESC[48;5;236;38;5;244m | |
-- Reset color = \ESC[m | |
-- |
I hereby claim:
To claim this, I am signing this object:
The classes t3lib_*
and tslib_*
have been removed from the core. You could use them when you had the compatibility layer enabled.
All code calling methods like t3lib_div::makeInstance()
will no longer work.
Use the current replacements in the core like GeneralUtility::makeInstance()
.
In the past extensions used classnames starting with tx_
. Since the intruduction of namespaces in TYPO3, you should use namespaces instead.
If you prefix your old classnames with \
throughout your code, things may still work.
Use proper namespaced code instead.
<?php | |
$basePath = '/home/Blah/tmp/TYPO3.CMS/typo3/sysext/core/Documentation/Changelog'; | |
$dir = new DirectoryIterator($basePath); | |
foreach ($dir as $fileinfo) { | |
if (!$fileinfo->isDot()) { | |
$filename = $fileinfo->getFilename(); | |
if (strpos($filename, '.htaccess') === 0 || strpos($filename, 'Howto') === 0) { |
I realy like the PHPStorm extension ChronoMorph which switches between light and dark themes depending on the time of day.
I wanted that for my terminal too. And since the kitty terminal can be remote controlled, we can implement this with two simple scripts.
One script fetches the sunrise and sunset times. It can run once a day.
The other one checks the current time against the sunrise and sunset times and determines if a light or dark mode should be used. It can run every five minutes or however often you like.