Skip to content

Instantly share code, notes, and snippets.

@aadsm
aadsm / 1_summary.md
Last active February 14, 2024 22:36
António Afonso resumé (2/13/2024)

António Afonso

Summary

I have considerable experience in software engineering (with a focus on the web) and I'm currently interested in building friendlier developer tools. I also love to mentor people and build happier, loveable, successful teams.

Through my career I've tech led multiple projects that got shipped to billions of people at Meta (e.g.: https://techcrunch.com/2016/02/18/facebook-video-metrics/), and millions of people at other companies (e.g.: https://www.wired.com/2009/10/opera-unite-puts-the-web-server-in-your-web-browser/). I was an Engineering Manager for around a year at Meta, and can still wear that hat when needed, but that's not the type of role I'm looking for right now.

Along with the creator of LLDB (Greg Clayton) I created the first and only native debugging team at Meta supporting the whole company's needs. I built the infrastructure required to continuously ship an evergreen version of the debugger, created new debugging tools for developers, and contributed to LLDB by imp

@aadsm
aadsm / messagePassingJavaScriptFlash.pdf
Last active February 14, 2024 02:20
Alternative Method for Message Passing Between JavaScript and Flash
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aadsm
aadsm / chessboard.cpp
Last active January 20, 2024 02:58
Chessboard
//******************************************************************
// Chessboard program
// This program prints a chessboard pattern that is built up from
// basic strings of white and black characters.
//******************************************************************
#include <iostream>
#include <string>
using namespace std;
const string BLACK = "%%%%%"; // Define a line of a black square //
@aadsm
aadsm / apple-keychain-pass-import.md
Created December 15, 2023 18:25 — forked from santigz/apple-keychain-pass-import.md
Import Apple Keychain into pass

Import Apple Keychain into pass

This guide shows how to import into pass your passwords stored in Apple's Keychain Access.

Find your keychain file

The default kaychain file is ~/Library/Keychains/login.keychain.

Passwords under the "Local Items" keychain (the default since Mavericks to sync with iCloud) use a different file format and can not be exported via the Apple's security tool we use. If that is you case, create a new keychain and drag-and-drop the keys. Your new keychain should have the .keychain extension.

@aadsm
aadsm / updates2.zip
Last active November 25, 2023 01:36
updates2.zip
Just some stupid new empty gist because gist.github.com decided to now allow the drop of zip files (and of course, without any error message, or visual indication in any way)
@aadsm
aadsm / 0330restoredisplay-fix-aa.st
Created November 22, 2023 04:49
Fixes Smalltalk-78 bug on UserView restoredisplay
'Image saved (21 November 2023 7:43:08 pm )'
UserView understands: 'restoredisplay | ext rect
[ext _ self primScreenExtent.
screenrect = (00 rect: ext) and DisplayForm extent = ext  [self mapDisplay]
self currentDisplay: (Form new extent: ext bits: (String new: ext x * ext y + 7 / 8) offset: nil)]' classified: 'displaying'

@aadsm
aadsm / IPA_Install_Apple_Silicon.md
Created May 6, 2022 16:21 — forked from Dids/IPA_Install_Apple_Silicon.md
Installing IPAs on the M1

Installing IPAs on Apple Silicon (M1)

  1. Open Apple Configurator 2 and plug in your iPhone or iPad
  2. Click Add, login to the App Store and select the application you want to install
  3. Open up ~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears
  4. Copy the application from the newly created temporary directory, but do note that it will disappear once Apple Configurator is done installing
  5. Double click the .ipa on your Apple Silicon (M1) device and install it
  6. Fix permissions on the installed application by running sudo xattr -rd com.apple.quarantine /Applications/<your_app>.app (if you skip this step, you're unable to start the application)

Note that it's easier if you already have the application installed, as Apple Configurator will prompt you about overwriting the existing installation, at which point the temporary file (the .ipa) will still exist, until you choose an action in the prompt.

@aadsm
aadsm / main.js
Created July 3, 2017 04:38
jsmediatags test
var jsmediatags = require('jsmediatags');
http://aadsm.github.io/blog/2014-05-10/live-edit-in-montage-studio.html
{
"plugins": [
"transform-flow-strip-types",
"babel-plugin-transform-es2015-modules-commonjs",
"transform-class-properties",
"transform-es2015-classes",
"transform-es2015-block-scoping"
]
}