Skip to content

Instantly share code, notes, and snippets.

View lemanchester's full-sized avatar

Lennon Manchester lemanchester

View GitHub Profile

Vagrant and VMWare Tech Preview on Apple M1 Pro

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated from discussions in hashicorp/vagrant-vmware-desktop#22

Installing Rosetta

First install Rosetta if not already done, this is needed to run x86 code:

Berlin

Pizza

  • Standard Pizza
  • La Bionda
  • Pizza Alla Grande Berlino
  • Masaniello
  • Zola

Custo Alemanha

Restaurantes

Restaurante Categoria Média (almoço 2 pessoas) – 40 €

Restaurante Almoço Diário (1 pessoa) ~ 7 €

Mcdonalds – 7 €

set -ex \
&& wget -O freetds-1.00.15.tar.gz "ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.15.tar.gz" \
&& tar -xzvf freetds-1.00.15.tar.gz \
&& cd freetds-1.00.15 \
&& ./configure \
&& make \
&& sudo make install

Aeroporto

A taxis is around 65.000

or you can get a bus like 15 or 20

it takes you to to San Diego and then a cab or uber

Best Burguer

@lemanchester
lemanchester / ruby_convert_array_to_hash.md
Created October 15, 2015 20:21
Convert Ruby Array to Hash

Convert Array to Hash

fruits = [[6, "apple"], [7, "orange"], [8, "grape"], [24, "banana"], [30, "strawberry"], [66, "lemon"]]
Hash[*fruits.flatten(1)] # => {6=>"apple", 7=>"orange", 8=>"grape", 24=>"banana", 30=>"strawberry", 66=>"lemon"}
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"drag_text": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 15.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
require 'rails_helper'
describe ProductUploader do
include CarrierWave::Test::Matchers
let(:company) { seed :master_company }
let(:uploader) { ProductUploader.new(company, :image) }
it 'creates image versions' do
uploader.store!(File.open("#{Rails.root}/spec/support/images/death_star.jpg"))
echo "*****************************************"
echo " Installing PhantomJs on Amazon Linux AMI "
echo "*****************************************"
echo "*"
echo "*"
echo "*"
echo "*****************************************"
echo " 1. Installing dependencies "
echo "*****************************************"
sudo yum -y install git lex bison gperf openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel libpng-devel libjpeg-devel