Skip to content

Instantly share code, notes, and snippets.

open http://www.google.com/?q=$(sysctl -n machdep.cpu.brand_string | awk '{FS=" " ; print $1 "+" $3 "+" $3}')+site:ark.intel.com
# or, on a Linux machine
xdg-open http://www.google.com/?q=$(fgrep 'model name' /proc/cpuinfo | head -n 1 | awk '{FS=" " ; print $5 "+" $6}')+site:ark.intel.com
@rowild
rowild / pimcore-setup-with-ddev.sh
Created February 27, 2023 07:52
Picore setup with ddev
# Sources:
# https://github.com/pimcore/demo
# https://www.fastlane-design.de/ddev-pimcore-install/
# https://stackoverflow.com/questions/58763897/is-there-a-working-pimcore-nginx-config-for-ddev
mkdir pimcore-project
cd ./pimcore-project
ddev config --project-type=php --php-version 8.1 --doc-root=web --create-docroot
@rowild
rowild / MKV_and_MP4_video_conversion_notes.md
Last active January 31, 2023 13:09 — forked from pjobson/MKVToolNix_notes.md
Notes for creating, editing, and extracting MKV files.

MKVToolNix Notes

Various notes for using MKVToolNix.

Probe a Video

mkvinfo lists all elements contained in an MKV container file.

mkvinfo container.mkv
@rowild
rowild / machine.js
Last active April 8, 2021 19:10
Generated by XState Viz: https://xstate.js.org/viz
const editorMachine = Machine({
id: 'editor',
initial: 'idle',
context: {
// The item we want to edit
itemToEdit: { title: '', content: '' }
},
states: {
idle: {
enter: {
@rowild
rowild / install-aimeos-typo3-dist-with-composer.md
Last active June 11, 2020 11:29
Setup the aimeos TYPO3 distribution 19.4 (as of June 2020) via command line and composer

The aimeos/aimeos-typo3-dist v19.4 composer installation is buggy. Here is a work-around:

command line

composer create-project typo3/cms-base-distribution:~9.5 ./dev.aimeos.test
cd ./dev.aimeos.test

Then, add the following to the "composer.json" on the root level:

@rowild
rowild / Install_latest_xdebug_for_MAMP.md
Last active March 9, 2020 17:28
Install latest XDebug for MAMP php versions

Install latest XDebug for MAMP php

The installation of XDebug requires some additional steps to make it work:

  1. Change the local bash files to address the MAMP version of php.
  2. Download the same version of php that you want to use within MAMP from php.net and build it manually.
  3. Download XDebug and follow the installation instructions as provided by the XDebug website.

Step-by-step guide:

1. Adjust the bash files to address the MAMP php version

@rowild
rowild / install_gui_application_darwin.sh
Created July 15, 2018 21:38 — forked from lambdalisue/install_gui_application_darwin.sh
Install Mac OS X Gui Application via Homebrew Cask
#!/usr/bin/env bash
#==============================================================================
# Install Mac OS X GUI Application via brew cask
#==============================================================================
brew cask install google-chrome
brew cask install thunderbird
brew cask install dropbox
brew cask install copy
brew cask install slack
brew cask install the-unarchiver
@rowild
rowild / js-array__better-handling-of-contain.js
Last active February 15, 2017 11:01 — forked from fat/gist:956180
better contains
var ALEX = ['foo', 'bar'];
//n00bs write:
if (ALEX.indexOf('foo') > -1) {
//ALEX contains foo
}
//pros write:
if (~ALEX.indexOf('foo')) {
//ALEX contains foo
@rowild
rowild / gist:3d6072d02287125d7ade
Created February 24, 2016 11:30 — forked from talltyler/gist:5345894
This code gives the HTML canvas element JavaScript support for letter spacing. Don't confuse letter spacing with kerning http://en.wikipedia.org/wiki/Kerning This code is basically from http://stackoverflow.com/a/15509006
(function(){
var _fillText,
__slice = [].slice;
_fillText = CanvasRenderingContext2D.prototype.fillText;
CanvasRenderingContext2D.prototype.fillText = function() {
var args, offset, previousLetter, str, x, y,
_this = this;
@rowild
rowild / css_image_replacement_expl.css
Last active December 16, 2015 23:49
CSS: Image Replacement
/* Text hiding without indent */
.ir {
border: 0;
font: 0/0 a;
text-shadow:none;
color: transparent;
background-color: transparent;
}