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:
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 || []); |
#!/bin/bash | |
echo "Cleaning up any git ignored files..." | |
# copy and paste the line below to get the same results as running this script | |
git rm --cached `git ls-files -ic --exclude-from=.gitignore` | |
echo "Finished clean up." | |
# source: https://stackoverflow.com/questions/13541615/how-to-remove-files-that-are-listed-in-the-gitignore-but-still-on-the-repositor/13541721 |
/********************************************************** | |
ADOBE SYSTEMS INCORPORATED | |
Copyright 2005-2010 Adobe Systems Incorporated | |
All Rights Reserved | |
NOTICE: Adobe permits you to use, modify, and | |
distribute this file in accordance with the terms | |
of the Adobe license agreement accompanying it. | |
If you have received this file from a source |
const SPEED = 150 // ms | |
// Open the console and paste this on linkedin.com/feed/following | |
function unfollowCurrent(elems, callback) { | |
console.log('Unfollowing ', elems.length, ' contacts') | |
elems.forEach( | |
(e, i) => | |
setTimeout(() => e.click(), i * SPEED) | |
) | |
setTimeout(callback, elems.length * SPEED) |