- If the folder
/etc/ssl/.old-certs
doesn't exists, create it:
sudo mkdir /etc/ssl/.old-certs
- Move old certs files into it:
sudo mv /etc/ssl/certs/phpmyadmin.local.{cnf,crt,csr,key} /etc/ssl/.old-certs
/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" |
<?php | |
// Paste it before $query->execute() | |
die( | |
vsprintf( | |
strtr( | |
$query->getSqlQuery(), | |
array( | |
'?' => '%s', | |
'%' => '%%' | |
) |
/** | |
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* | |
* @param string url | |
* @param object callback | |
* @param mixed data | |
* @param null x | |
*/ | |
function ajax(url, callback, data, x) { | |
try { |