Skip to content

Instantly share code, notes, and snippets.

@mark-alfonso
mark-alfonso / fastlane-xamarin.md
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>
example:
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
mark-alfonso / setup-laravel.md
Last active May 30, 2018 06:34
Setting Up Laravel Development in MacOS

Get composer:

Ref: https://getcomposer.org/download/

php -r "copy('https://getcomposer.org/installer', '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
mark-alfonso / install_wkhtmltopdf13_docker.md
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 https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
  1. Install
dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
@mark-alfonso
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