sudo apt install openjdk-8-jdk-headless
👁️🗨️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pikaday-white { | |
--backgroundColor: #ffffff; | |
--textColor: #718096; | |
--currentDateTextColor: #3182ce; | |
--selectedDateBackgroundColor: #3182ce; | |
--selectedDateTextColor: #ffffff; | |
--labelTextColor: #4a5568; /* eg. May 2020 */ | |
--weekDaysTextColor: #a0aec0; /* eg. Mo Tu We ....*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pikaday-dark { | |
--backgroundColor: #2d3748; | |
--textColor: #f7fafc; | |
--currentDateTextColor: #3182ce; | |
--selectedDateBackgroundColor: #3182ce; | |
--selectedDateTextColor: #f7fafc; | |
--labelTextColor: #3182ce; /* eg. May 2020 */ | |
--weekDaysTextColor: #a0aec0; /* eg. Mo Tu We ....*/ |
(I'm enjoying doing these raw, barely edited writeups; I hope they're useful to you too)
This is my own writeup on feature flags; for a deep dive I'd recommend something like Martin Fowler's article (https://martinfowler.com/articles/feature-toggles.html).
So. Feature flags. The basic idea that you'll store configuration/values on a database/service somewhere, and by changing those values, you can change the user experience/features for a user on the fly.
Let's say that you're building a new feature, called 'new-button' which changes the color of buttons, which is currently red, to blue. Then you'd change code that looks like this -
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sites into bedrock or normal WordPress | |
# Version 2.0 | |
# Copyright (c) Kenny Eliason | |
set -a | |
source .env | |
set +a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opendb () { | |
[ ! -f .env ] && { echo "No .env file found."; exit 1; } | |
DB_CONNECTION=$(grep DB_CONNECTION .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
DB_HOST=$(grep DB_HOST .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
DB_PORT=$(grep DB_PORT .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
DB_DATABASE=$(grep DB_DATABASE .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
DB_USERNAME=$(grep DB_USERNAME .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
DB_PASSWORD=$(grep DB_PASSWORD .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias sail='bash vendor/bin/sail' | |
alias sdown='bash vendor/bin/sail down' | |
alias sa='bash vendor/bin/sail artisan' | |
alias sup='bash vendor/bin/sail up -d' | |
alias sdown='bash vendor/bin/sail down' | |
alias snpm='bash vendor/bin/sail npm' | |
alias sdev='bash vendor/bin/sail npm run development' | |
alias sprod='bash vendor/bin/sail npm run production' | |
alias snpmi='bash vendor/bin/sail npm install' | |
alias snpmu='bash vendor/bin/sail npm update' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@props([ | |
'percentage' => 0, | |
'failed' => false | |
]) | |
@php | |
$done = $failed || $percentage == 100; | |
@endphp | |
<div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { withProse } = require("./src/remark/withProse"); | |
let { withSyntaxHighlighting } = require("./src/remark/withSyntaxHighlighting"); | |
let { withTableOfContents } = require("./src/remark/withTableOfContents"); | |
let { withExamples } = require("./src/remark/withExamples"); | |
let { withLayout } = require("./src/remark/withLayout"); | |
let { withNextLinks } = require("./src/remark/withNextLinks"); | |
let { VueLoaderPlugin } = require("vue-loader"); | |
let path = require("path"); | |
const withMDX = require("@next/mdx")({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session=lxqt | |
geometry=1920x1080 | |
localhost # comment this out to allow connections from anywhere | |
alwaysshared |