Skip to content

Instantly share code, notes, and snippets.

View thbar's full-sized avatar

Thibaut Barrère thbar

View GitHub Profile
@thbar
thbar / vagrant-vmware-tech-preview-apple-m1-pro.md
Created February 23, 2022 13:37 — 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:

Let [tag] = any tag in upstream repo
git fetch upstream --tags
git push origin --tags
@thbar
thbar / main.rs
Created January 7, 2021 14:56 — forked from fchabouis/main.rs
Rust Actix simple Actor communication
use actix::prelude::*;
/// Define message
#[derive(Message)]
#[rtype(result = "Result<String, std::io::Error>")]
struct WhatsYourName;
#[derive(Message)]
#[rtype(result = "()")]
struct SetYourName {
@thbar
thbar / spec_helper.rb
Created August 6, 2020 08:07
Apparition with Puffing Billy configuration for RSpec
build_driver = -> (app:, proxy:) {
options = {
window_size: [1500, 1224],
screen_size: [1500, 1224],
headless: true,
js_errors: true,
ignore_https_errors: true,
browser_options: {
'ignore-certificate-errors' => nil
}
@thbar
thbar / import_multiple_csv_to_database.rb
Last active May 14, 2020 18:05
Automating the process of writing incoming CSV to a SQL database (with Kiba ETL)
# https://www.kiba-etl.org
# for source
require 'kiba-common/sources/enumerable'
require 'kiba-common/sources/csv'
# to create 1 source out of each input file
require 'kiba-common/transforms/source_adapter'
# for target - Kiba Pro is the commercial extension
@thbar
thbar / settings.jsonc
Last active May 12, 2020 10:36
Current minimalistic VSCode setup (à la atom/textmate)
{
// NOTE: these settings work well for me
// using Ruby, Elixir and Assembly languages.
//
// I would probably do something different if
// I worked more with other languages at the moment
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"workbench.startupEditor": "newUntitledFile",
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
adventure.
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
@thbar
thbar / redix.ex
Created May 3, 2020 07:54 — forked from tgodfrey/redix.ex
Elixir Module for working with MessageBus
defmodule MyApp.Redix do
@pool_size 5
# How long, in seconds, to keep messages in the backlog
@max_backlog_age 604800
# How many messages may be kept in the global backlog
@max_global_backlog_size 2000
# How many messages may be kep in the per-channel backlog
@max_backlog_size 1000
@thbar
thbar / rails_lamby_notes.md
Created April 30, 2020 20:52 — forked from joshuap/rails_lamby_notes.md
Deploy a new Rails app to AWS Lambda using Lamby