Open up a Terminal window. (If you have never seen Terminal before, go to Spotlight Search and type "Terminal.")
In the Terminal box, try this:
defaults read com.google.Chrome AppleLanguages
If you see this:
@Composable | |
fun rememberQrBitmapPainter( | |
content: String, | |
size: Dp = 150.dp, | |
padding: Dp = 0.dp | |
): BitmapPainter { | |
val density = LocalDensity.current | |
val sizePx = with(density) { size.roundToPx() } | |
val paddingPx = with(density) { padding.roundToPx() } |
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
# jar | |
shell/i/.jar | |
Open=%cd %p/uzip:// | |
View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip | |
# jar | |
type/i/^jar\ archive | |
Open=%cd %p/uzip:// | |
View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip |
import { useEffect, useState } from "react" | |
import { motion } from "framer-motion" | |
import { addPropertyControls, ControlType } from "framer" | |
import Masonry, { ResponsiveMasonry } from "react-responsive-masonry" | |
import React from "react" | |
// Welcome to Code in Framer | |
// Get Started: https://www.framer.com/docs/guides/ | |
/** |
chrome.action.onClicked.addListener((tab) => { | |
chrome.scripting.executeScript({ | |
target: { | |
tabId: tab.id, | |
}, | |
files: ["content.js"], | |
}); | |
}); |
//Convert uploaded files to webp and delete uploaded file. Imagick needs to be enabled. This can be done via the php config settings in your servers control panel. | |
function compress_and_convert_images_to_webp($file) { | |
// Check if file type is supported | |
$supported_types = ['image/jpeg', 'image/jpg', 'image/png', 'image/webp']; | |
if (!in_array($file['type'], $supported_types)) { | |
return $file; | |
} | |
// Get the path to the upload directory |
#!/bin/bash | |
# This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys | |
# 1. Script must run on the source server | |
# 2. Have all the containers running that you want to migrate | |
# Configuration - Modify as needed | |
sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server | |
destinationHost="server.example.com" |
cmake_minimum_required( VERSION 2.8 ) | |
# Create Project | |
project( solution ) | |
add_executable( project main.cpp ) | |
# Set StartUp Project (Option) | |
# (This setting is able to enable by using CMake 3.6.0 RC1 or later.) | |
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" ) |
import type { V2_HtmlMetaDescriptor, V2_MetaFunction } from "@remix-run/node"; | |
export const mergeMeta = ( | |
overrideFn: V2_MetaFunction, | |
appendFn?: V2_MetaFunction, | |
): V2_MetaFunction => { | |
return arg => { | |
// get meta from parent routes | |
let mergedMeta = arg.matches.reduce((acc, match) => { | |
return acc.concat(match.meta || []); |