Skip to content

Instantly share code, notes, and snippets.

@mimimalizam
mimimalizam / vagrant-vmware-tech-preview-apple-m1-pro.md
Created January 12, 2022 19:21 — forked from sbailliez/vagrant-vmware-tech-preview-apple-m1-pro.md
Vagrant and VMWare Tech Preview on Apple M1 Pro

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:

#! /usr/bin/env bash
## Usage:
## $ wget https://gist.githubusercontent.com/mimimalizam/e68634b4144f40acbcb3ba5ef3a2b624/raw/golang-setup-semaphore.sh
## $ bash ./golang-setup-semaphore.sh <golang-version>
GOLANG_VERSION=${1:-"1.9"}
TAR=go$GOLANG_VERSION.linux-amd64.tar.gz
URL=https://storage.googleapis.com/golang/$TAR
GOLANG_CACHE_PATH="$SEMAPHORE_CACHE_DIR/$TAR"
@mimimalizam
mimimalizam / index.html
Last active June 15, 2020 04:45
multiple-charts
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: Helvetica;
}
.country-labels {
font-size:11px;
}
.containers {
  • Add your Engine Yard api token as a environment variable to your Project, for example named ENGINE_YARD_API_TOKEN. As described here, you can get this token locally after the engineyard gem is installed. To get the API token run these commands:
ey login
cat ~/.eyrc 

api_token: 76f2d43d79bedd9bc74654a1ded733c9
  • If it is not included in your repository add ey.yml as a configuration file to your project on Semaphore. For the file path insert path analogy to
@mimimalizam
mimimalizam / SemaphoreCI-PHPUnit-Codeception-Laravel5.3.txt
Created October 25, 2016 15:37 — forked from nateritter/SemaphoreCI-PHPUnit-Codeception-Laravel5.3.txt
SemaphoreCI setup for Laravel 5.3 + PHPUnit (unit, integration, API functional) + Codeception (acceptance) tests
/**
* NOTE: Earlier versions of this file used `php artisan serve`.
* However, Codeception and/or PhantomJS is not too fond of
* running that way for some reason. I ended up switching
* to Apache since that's what worked for all our devs
* locally. This script now includes how to get that
* setup properly. Please enjoy this responsibly.
*
* Assumptions:
* Using site5/phantoman to run phantomjs as the headless browser
@mimimalizam
mimimalizam / sources.list
Created January 21, 2016 13:43
Bypassing the usage of mirrors
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://de.archive.ubuntu.com/ubuntu/ precise main restricted universe
deb-src http://de.archive.ubuntu.com/ubuntu/ precise main restricted universe
###### Ubuntu Update Repos
deb http://de.archive.ubuntu.com/ubuntu/ precise-security main restricted universe
sudo dpkg -r elasticsearch
if ! [ -e .semaphore-cache/elasticsearch-2.1.1.deb ]; then (cd .semaphore-cache; wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-2.1.deb); fi
echo 'N' | sudo dpkg -i ./.semaphore-cache/elasticsearch-2.1.1.deb
sudo service elasticsearch start
sleep 7