Inspired by: https://cassandra.apache.org/doc/latest/cassandra/getting-started/index.html
Note: Stick to Java 17.
Installing a more recent version (Java 17+) will fail when running Cassandra with error:
Inspired by: https://cassandra.apache.org/doc/latest/cassandra/getting-started/index.html
Note: Stick to Java 17.
Installing a more recent version (Java 17+) will fail when running Cassandra with error:
<?php | |
$arr = [ | |
'a' => 'xyz', | |
'b' => null, | |
'c' => 0, | |
]; | |
// Rather than writing: | |
// |
/etc/ssl/.old-certs
doesn't exists, create it:sudo mkdir /etc/ssl/.old-certs
sudo mv /etc/ssl/certs/phpmyadmin.local.{cnf,crt,csr,key} /etc/ssl/.old-certs
First, check if the `brave.desktop` file is present in `/usr/share/applications`. | |
If not, just create a symlink like that: | |
``` | |
ln -s /snap/brave/current/meta/gui/brave.desktop /usr/share/applications/brave.desktop | |
``` | |
Then edit the `default.list` file: | |
``` | |
sudo nano /usr/share/applications/defaults.list | |
``` |
<?php | |
if (! function_exists('array_weave')) { | |
function array_weave(...$args) { | |
/** | |
* @todo | |
* 1. Check that each argument is the same size. If they're not, return false. | |
* 2. Add the type declarations and corresponding DocBlock. | |
*/ | |
return array_map(fn (...$args) => func_get_args(), ...$args); |
<?php | |
if (! function_exists('spreg_match')) { | |
function spreg_match( | |
string $pattern, | |
string $subject, | |
array &$matches = null, | |
int $flags = 0, | |
int $offset = 0 | |
): ?string { |
<?php // Run it at: https://web.tinkerwell.app | |
use Carbon\Carbon; | |
$datetime_start = Carbon::now()->subHours(1)->subMinutes(05)->subSeconds(42); | |
echo $datetime_start->format('Y-m-d H:i:s') . "\r\n"; | |
$datetime_end = Carbon::now(); | |
$timestamp_ms_end = $datetime_end->getTimestamp(); | |
echo $datetime_end->format('Y-m-d H:i:s') . "\r\n"; |
#/usr/bin/env bash | |
cat <<"HEREDOC" | |
____ __________ __ ______ __ | |
/ __ \___ _ __ / ___/ ___// / / ____/__ _____/ /_ | |
/ / / / _ \ | / / \__ \\__ \/ / / / / _ \/ ___/ __/ | |
/ /_/ / __/ |/ / ___/ /__/ / /___ / /___/ __/ / / /_ | |
/_____/\___/|___/ /____/____/_____/ \____/\___/_/ \__/ | |
HEREDOC |
var isSupportingTouchEvents = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; |
> "%USERPROFILE%\AppData\Local\atom\app-1.17.2\atom.exe" -cur_console:f:d:"C:\server\www":C:"%USERPROFILE%\AppData\Local\atom\app.ico" | |
cmd /k "%ConEmuDir%\..\init.bat" -cur_console:bs1T25V:d:"C:\server\www":C:"C:\cmder\icons\cmder.ico" | |
cmd /k "%ConEmuDir%\..\init.bat" -cur_console:bs2T50H:d:"C:\server\www":C:"C:\cmder\icons\cmder.ico" |