- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action- your default shell should already be selected, otherwise use
/bin/zsh
for macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
Update! This tutorial is outdated. Nowadays brew installes m1 binaries just fine. Also use valet: https://laravel.com/docs/9.x/valet. It's 10x easier.
In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of this benchmark below.
TEST NAME | SECONDS | OP/SEC |
---|
Character code (character) | Duration (ms) | Alias to | Pronounced as |
---|---|---|---|
27 (�) | 656 | None | Escape |
33 (!) | 1333 | None | Exclamation mark |
35 (#) | 409 | None | Hash |
36 ($) | 425 | None | Dollar |
37 (%) | 631 | None | Percent |
38 (&) | 329 | None | And |
43 (+) | 396 | None | Plus |
45 (-) | 706 | None | Dash |
npm install -D acorn babel-loader @babel/core @babel/preset-env babel-polyfill webpack webpack-cli uglifyjs-webpack-plugin --save-dev
webpack-cli
and acorn
are dependencies that you, unfortunately, have to install if you want to run this god damn thing without any obscure warnings or errors.
Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
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
'use strict'; | |
/** | |
* Makes an element draggable. | |
* | |
* @param {HTMLElement} element - The element. | |
*/ | |
function draggable(element) { | |
var isMouseDown = false; |
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
<? | |
// Link image type to correct image loader and saver | |
// - makes it easier to add additional types later on | |
// - makes the function easier to read | |
const IMAGE_HANDLERS = [ | |
IMAGETYPE_JPEG => [ | |
'load' => 'imagecreatefromjpeg', | |
'save' => 'imagejpeg', | |
'quality' => 100 |
- Copy the Script1 function into the first Storyline JS trigger on the page you wish to display results
- Repeat for Scripts 2 and 3
- Tweak as necessary to get different results
- Create a Storyline variable to hold the results
- Just called “storylineVar” in the example
- Insert a “reference” to this variable on the screen (%storylineVar%)
- Publish
- Doesn’t have to be “TinCan” publish since we’re handling it ourselves
- Add the “tincan.js” library to the root folder of your published output
NewerOlder