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));}

makeScript.sh

#!/bin/bash if [ -z “$1” ]; then echo “No arguments supplied” else PATH=$HOME”/sh/” FILE_SCRIPT=$1 echo $PATH$FILE_SCRIPT if [ ! -f $PATH$FILE_SCRIPT ]; then #echo “File not found!” /bin/touch $PATH$FILE_SCRIPT /bin/echo “#!/bin/bash” > $PATH$FILE_SCRIPT /bin/chmod 755…

typo3conf/AdditionalConfiguration.php

<?php defined(‘TYPO3_MODE’) || die(); /* * .htaccess: SetEnv TYPO3_CONTEXT Development * bash: export TYPO3_CONTEXT=Development * * @see https://usetypo3.com/application-context.html */ $currentContext = \TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext(); $redisConfiguration = __DIR__ . DIRECTORY_SEPARATOR . ‘RedisConfiguration.php’; if ($currentContext->isDevelopment() || empty(getenv(‘TYPO3_CONTEXT’)) || stristr($_SERVER[‘HTTP_HOST’],…

dirsUsage10biggest.sh

#!/bin/bash ### find if [ -z “$1” ]; then echo “give path as pram” exit fi du -sh $1 | sort -n -r | head -n 10 # #HowToFindLargestTop10Files

mysql drop all tables

SET FOREIGN_KEY_CHECKS = 0; — Your semicolon separated list of DROP statements here SELECT concat(‘DROP TABLE IF EXISTS ‘, TABLE_NAME, ‘;’) FROM information_schema.tables WHERE table_schema = ‘taylorwessing’; SET FOREIGN_KEY_CHECKS = 1;

gitFindReposAndUpdate.sh

#!/bin/bash # Update all git directories below current directory or specified directory # Skips directories that contain a file called .ignore HIGHLIGHT=”\e[01;34m” NORMAL=’\e[00m’ function update { local d=”$1″ if [ -d “$d” ]; then if…