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’],…

soa

SOA #1 – nr 1: U mnie działa. SOA #2 – nr 2: U mnie też nie działa. SOA #4 – nr 4: Się naprawi – pracujemy nad poprawką. SOA #8 – nr 8: Google…

git update repos

#!/usr/bin/env bash if [ -z “$1″ ]; then PATH_START=$HOME”/REPOS” cd $PATH_START else PATH_START=$1 cd $PATH_START PATH_START=$(pwd) fi DIR_REPOS=($(ls -d */)) printf “\nstart DIR: “$PATH_START”\n” for dir in “${DIR_REPOS[@]}”; do CURRENT=$PATH_START”/”$dir echo “repo: “$CURRENT if […

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;

Create PHP CRUD with symfony

composer create-project symfony/website-skeleton example cd example composer require –dev symfony/maker-bundle bin/console make:entity SomeExample bin/console make:crud SomeExample

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…

mysql db size

SELECT table_schema “DB Name”, Round(Sum(data_length + index_length) / 1024 / 1024, 1) “DB Size in MB” FROM information_schema.tables GROUP BY table_schema LIMIT 30;

Telegram tłumaczenie polskie

hmm zrobione wieki temu chyba trzeba będzie uaktualnić Tłumaczenie komunikatora Telegram.org wyślij przez teleram jako plik, pobiez i wtedy jest dostepna opcja użyj tłumaczenie Android Telegram Polish translation – Polskie tłumaczenie Telegram na Androida wiecej…