Skip to content

Instantly share code, notes, and snippets.

View Intrepidd's full-sized avatar
🍽️
Hello

Adrien S Intrepidd

🍽️
Hello
View GitHub Profile
// DISCLAIMER : You can now probably use `data-turbo-action="advance"` on your frame to perform what this controller is aiming to do
// https://turbo.hotwired.dev/handbook/frames#promoting-a-frame-navigation-to-a-page-visit
// Note that you probably want to disable turbo cache as well for those page to make popstate work properly
import { navigator } from '@hotwired/turbo'
import { Controller } from '@hotwired/stimulus'
import { useMutation } from 'stimulus-use'
export default class extends Controller {
connect (): void {
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Adrien Siami",
"label": "Full-Stack Software Engineer | Tech advisor for good",
"email": "adrien@siami.fr",
"phone": "",
"url": "",
"summary": "Passionate about IT since my early years, I chose to specialize in web development, especially with Ruby and Javascript.\n\nI enjoy solving complex problems with code and building features that make sense to me and benefit society. \nI'm particularly sensible and interested in working on positive fields such as health, ecology, privacy, etc.\n\nI believe in open source software and have written and contributed to several open source projects from small libraries to well known web frameworks.\n\nI define myself as proactive, pragmatic, customer centric and engaged.",
"location": {
@Intrepidd
Intrepidd / application.js
Created September 26, 2023 14:25
Turbo stream action to update the navigator history
window.Turbo.StreamActions.advance_history = function () {
const url = new URL(this.getAttribute('url'))
window.Turbo.navigator.view.lastRenderedLocation = url
window.Turbo.navigator.history.push(url)
}
@Intrepidd
Intrepidd / .env
Created January 2, 2024 16:25
Metabase + Kamal
POSTGRES_PASSWORD=xxxx
MB_DB_CONNECTION_URI=postgres://metabase:xxxx@your.server.ip.address:5432/metabase
KAMAL_REGISTRY_PASSWORD=xxxxx
S3_ACCESS_KEY_ID=xxxxx
S3_SECRET_ACCESS_KEY=xxxxx