What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-17 21:30:11
bash storing and getting global variables between shells
#!/bin/bash global_export () { { flock 0 #prevents process fork when active set -x #enables verbose/debug . /tmp/env [ $# -eq 0 ] || export "$@" echo "$@" KEY=`echo "$@" | awk '{split($0,a,"=&q... Add solution -
Shell/Bash 2021-11-14 06:17:10
Maximum upload file size: 2 MB
Step 1: find php.ini file in /etc folder by running below cmd: grep -rl "post_max_size" | xargs ls -lrth Here I have used post_max_size keyword to search php.ini file as might be we have to change the same on other file , It can vary ... Add solution -
Other 2021-10-04 13:00:02
Linux command line search and replace string in all files
String Find and replace (folders/sub folders) > grep -rl "old string" . | xargs sed -i 's/old string/new string/g' URL Find and replace (folders/sub folders) > grep -rl "www\.google\.com" . | xargs sed -i 's/www\.google\.com... Add solution -
Other 2021-09-10 10:43:02
create a sub theme in drupal 9
cd themes/custom export CUSTOM_BARRIO=custom_barrio # change this to your custom theme_name cp -r ../contrib/bootstrap_barrio/subtheme $CUSTOM_BARRIO cd $CUSTOM_BARRIO for file in *bootstrap_barrio_subtheme.*; do mv $file ${file//bootstrap_barrio_subtheme... Add solution -
Shell/Bash 2021-08-31 18:14:02
linux bash export vars between shell instances
export_global_var () { filename=/tmp/env test -f $filename || touch $filename { flock 0 #prevents isssues with multi thread process #set -x #enables verbose/debug . /tmp/env [ $# -eq 0 ] || export "$@" echo "$@&q... Add solution
Best helpers
Ranking is empty