javascript twitter export follow(ers/ing)

var ttResultsList = []; var currentPosition = -1; function exportTT() { let cList = []; if (currentPosition < window.scrollY) { window.scrollTo(0, document.body.scrollHeight); for (const d of document.querySelectorAll(‘div[data-testid=”UserCell”]’)) { let img = d.getElementsByTagName(‘img’)[0].src; let usr =…

find git repos link on dir

#!/usr/bin/env bash if [ -z “$1” ]; then echo “No arguments supplied” else RESULTS_FILE=$(echo $1 | sed -e ‘s/\//_/g’) RESULTS_FILE=”$HOME/repos__links__”$RESULTS_FILE”.txt” echo $RESULTS_FILE touch $RESULTS_FILE find $1 -type f -name “config” -print0 | xargs -I {}…

PHP: trunkate text by word

protected function truncateText(string $string, $maxLength = 140): string{ return substr($string, 0, strpos(wordwrap($string, $maxLength), PHP_EOL));}