Laravel Str Generate a more truly "random" alpha-numeric string.
public static function random($length = 16)
{
$string = '';
while (($len = strlen($string)) < $length) {
$size = $length - $len;
1 | |
2 Log opened at 2023-02-20 23:34:41 | |
3 I: Connecting to configured address/port: host.docker.internal:9000. | |
4 I: Connected to client. :-) | |
5 -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/server.php" language="PHP" xdebug:language_version="7.2. 5 34" protocol_version="1.0" appid="13" idekey="XDEBUG_ECLIPSE"><engine version="2.6.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDAT 5 A[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init> | |
6 | |
7 <- feature_get -i 1 -n resolved_breakpoints | |
8 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="1" feature_name="resolved_breakpoints" 8 supported="0"><![CDATA[0]]></response> | |
9 | |
10 <- feature_get -i 2 -n notify_ok |
-- https://www.reddit.com/r/neovim/comments/og1cdv/neovim_lsp_how_do_you_get_diagnostic_mesages_to/ | |
lua << EOF | |
-- Location information about the last message printed. The format is | |
-- `(did print, buffer number, line number)`. | |
local last_echo = { false, -1, -1 } | |
-- The timer used for displaying a diagnostic in the commandline. | |
local echo_timer = nil |
# Nerd Fonts for your IDE | |
# https://www.nerdfonts.com/font-downloads | |
brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font |
#include <iostream> | |
#include <openssl/aes.h> | |
#include <openssl/evp.h> | |
#include <openssl/rsa.h> | |
#include <openssl/pem.h> | |
#include <openssl/ssl.h> | |
#include <openssl/bio.h> | |
#include <openssl/err.h> | |
#include <assert.h> |
# References: | |
# https://cmake.org/cmake/help/latest/command/add_custom_target.html | |
# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/ | |
# https://gist.github.com/socantre/7ee63133a0a3a08f3990 | |
# https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install | |
# https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target | |
# https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command | |
# https://blog.csdn.net/gubenpeiyuan/article/details/51096777 | |
cmake_minimum_required(VERSION 3.10) |
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
// https://gist.github.com/addyosmani/fd3999ea7fce242756b1 | |
window.iwShowOutline = !!!window.iwShowOutline; | |
[].forEach.call(document.querySelectorAll("*"),function(a){ | |
if (window.iwShowOutline) a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
else a.style.outline='initial' | |
}) |
Laravel Str Generate a more truly "random" alpha-numeric string.
public static function random($length = 16)
{
$string = '';
while (($len = strlen($string)) < $length) {
$size = $length - $len;
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"> | |
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"> |
// https://laravel-news.com/using-sanctum-to-authenticate-a-react-spa | |
// The tap command is a short-hand way of saying “create the guard, then pass it to the closure in the second argument; | |
// then return the guard”. Let’s look at createGuard: | |
$auth->extend('sanctum', function ($app, $name, array $config) use ($auth) { | |
return tap($this->createGuard($auth, $config), function ($guard) { | |
$this->app->refresh('request', $guard, 'setRequest'); | |
}); | |
}); |