Skip to content

Instantly share code, notes, and snippets.

@moshe
moshe / import.js
Created October 17, 2021 18:58
Import AWS events as Gmail meetings
function clear(x) {
return x.replaceAll(',', '-').replaceAll('\"', '-')
}
const header = 'Subject,All Day Event,Start Date,Start Time,End Date,End Time,Description,Location';
copy(`${header}\n${[...document.querySelectorAll('.awsui-util-mb-xl')]
.map((event) => {
const [title, id] = event.querySelector('.awsui-util-mt-m').children
const description = event.querySelector('.sanitized-html').textContent
const table = event.querySelectorAll('[data-awsui-column-layout-root=true]')[0]
@moshe
moshe / reload zshrc with signal howto.md
Last active June 1, 2019 06:17
reload zshrc with signal

How To

Add those lines into your zshrc and now every time you update you zshrc run: reload_zsh

and all you zsh sessions will be updated.

be aware

  • for the first time you must source your zshrc manully otherwise they will terminated