Skip to content

Instantly share code, notes, and snippets.

mark-alfonso /
Last active January 16, 2020 03:19
Automated screenshots generation with Fastlane and Xamarin

get lastest xcode commandline tools

xcode-select --install

install fastlane using homebrew

brew install fastlane

get all existing iOS simulators, list IDs

diskutil list
sudo diskutil eraseDisk FAT32 MYSD MBRFormat <path>
sudo diskutil eraseDisk FAT32 MYSD MBRFormat /dev/disk2
# remove private in .gitignore
sed -i '' '/private/d' .gitignore
# add private in .gitignore
echo "private" >> .gitignore
# untrack private
mark-alfonso /
Last active May 30, 2018 06:34
Setting Up Laravel Development in MacOS

Get composer:


php -r "copy('', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mark-alfonso /
Last active March 21, 2018 09:22
Install WKHTML 0.13 in Docker

Docker Image: abernix/meteord:node-8-base

  1. Get .deb file
curl -L -O
  1. Install
dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
mark-alfonso / fix-npm-issue-laravel-mix
Last active October 19, 2017 16:16
NPM install issue with the new Larave Mix
# Linux VM (Homestead) on a Windows 10 host
# Doing npm install --no-bin-links on Laravel 5.5 results to an error
# added info: we migrated from Laravel 5.2
# to fix, install yarn
$ sudo npm install -g yarn
# delete your node_modules folder (optional but to be safe, do this as well)
$ rm -rf node_modules