Skip to content

Instantly share code, notes, and snippets.

View dmrty's full-sized avatar

Gilles Demarty dmrty

View GitHub Profile
@dmrty
dmrty / bug_stimulus.html
Created June 15, 2021 08:02
Bug in Stimulus – moving Controller when initialising
<html>
<head>
<script type="text/javascript" src="https://unpkg.com/stimulus@2.0.0/dist/stimulus.umd.js"></script>
<script type="text/javascript">
(() => {
const application = Stimulus.Application.start()
application.register("hello", class extends Stimulus.Controller {
static get targets() {
return [ "name", "output" ]
MyPassport Pro 2x2To
disk2 :
smartctl 7.2 2020-12-30 r5155 [Darwin 17.7.0 x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Green Mobile
Device Model: WDC WD20NPVX-11EA4T0
Serial Number: WD-WX61A84F9K4U
@dmrty
dmrty / 1-macOS-10.15-catalina-setup.md
Created November 17, 2020 18:20 — forked from kevinelliott/1-macOS-10.15-catalina-setup.md
macOS 10.15 Catalina Mostly-Automated Setup

To support my open-source work, consider adding me on Patreon.

macOS 10.15 Catalina Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.15 Catalina.

Controversy

The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.

@dmrty
dmrty / Ixd18 - edit script
Last active May 17, 2018 08:18
Ixd18 "Edit talk in page" script
/*
* Ixd18 "Edit talk in page" script. This script was hosted by Google script, to deal with requests done from
* a speaker Edit page (in a static website) to allow them to modify their content before publication:
* https://github.com/IxDA/interaction18/blob/master/themes/interaction18/layouts/edit-session/single.html
**/
function doGet(e) {
var mode=e.parameters['mode'],

a raw google translation, do not use as is!

1. Guidance

All the means used to advise, guide, inform and lead the user during his interaction with the computer.

1.1 Incentives

Encourage the user to perform specific actions by providing indices. For example, guide data entries indicating the correct format and acceptable values: Date (dd / mm / yy) _ _ / _ _ / _ _. See this example of incitement ... missed! But as another example, successful.

@dmrty
dmrty / 1-macOS-10.12-sierra-setup.md
Last active March 17, 2018 18:09 — forked from kevinelliott/1-macOS-10.12-sierra-setup.md
macOS 10.12 Sierra Setup

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. T

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install OS X

  • Make backup
  • Download Sierra installer
  • Format USB Stick, name it Sierra