Skip to content

Instantly share code, notes, and snippets.

@Xotl
Xotl / Trello titles.js
Last active May 15, 2020 20:20
Get all Trello titles from a particular column
const columnTitle = 'Your column title here'
jQuery(
jQuery('div.js-list.list-wrapper').toArray().find(
(node) => jQuery(node).find(`textarea.list-header-name.mod-list-name.js-list-name-input:contains('${columnTitle}')`).length > 0
)
).find('.list-card-title.js-card-name').map(function() {
return this.innerText
}).toArray().join('\n')
// This command renames all .scss files in current directory into *.less
find . -name '*.scss' -exec sh -c 'mv "$0" "${0%.scss}".less' {} \;
docker rmi $(docker images -f "dangling=true" -q)