Regular expression:
pattern: (/\*\*)\n\s*\*\s*(\@var.*)\n\s*(\*/)
replacement: $1 $2 $3
It will convert this:
#!/bin/bash | |
# exit if any of the commands fail | |
set -e | |
source ${BASH_SOURCE[0]%/*}/ip.conf | |
today=$(date +"%Y-%m-%d") | |
echo -e "Connecting to ip:$ip"; |
#!/bin/bash | |
# exit if any of the commands fail | |
set -e | |
source ${BASH_SOURCE[0]%/*}/ip.conf | |
echo -e "Connecting to ip:$ip"; | |
sftp username@$ip |
#!/bin/bash | |
# import ip config | |
source ${BASH_SOURCE[0]%/*}/ip.conf | |
ssh root@$ip ls -t /root/backups/*backup.gz | head -n1 | awk '{printf("%s",$0)}' | cat > backup.gz |
#!/bin/bash | |
# exit if any of the commands fail | |
set -e | |
# import config with IP addresses | |
source ${BASH_SOURCE[0]%/*}/ip.conf | |
echo -e "Connecting to IP:$laravel"; | |
ssh root@$worker -t "cd /var/www/ && |
#!/bin/bash | |
# directory to cleanup | |
DIR=$1 | |
# how much to free up in Gb | |
SIZE=$2 | |
# factor to size conversion | |
FACTOR=1048576 | |
MAX_FREE_SIZE=20 |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
<script> | |
$(function () { | |
// Show and hide filter block based on selected checkbox toggle-source | |
function toggleFilters(name, delay) { | |
delay = delay || 0; | |
if ($('input[name=' + name + ']').is(':checked')) { | |
$('.hide-when-' + name).fadeOut(delay) | |
$('.show-when-' + name).delay(delay).fadeIn(delay) | |
} else { |
<?php | |
error_reporting(E_ALL & ~ E_NOTICE); | |
set_error_handler('my_error_handler'); | |
register_shutdown_function('send_error_log'); | |
$__errors = array(); | |
function my_error_handler($code, $message, $file, $line) | |
{ | |
if (!(error_reporting() & $code)) { | |
// This error code is not included in error_reporting |
var gulp = require('gulp'), | |
filter = require('gulp-filter'), | |
mainBowerFiles = require('main-bower-files'), | |
uglify = require('gulp-uglify'), | |
concat = require('gulp-concat'), | |
cleanCss = require('gulp-clean-css'), | |
order = require('gulp-order'), | |
flatten = require('gulp-flatten'), | |
merge = require('merge-stream'), | |
less = require('gulp-less'), |
# How it works: | |
# Make sure you have xdebug installed and configured on your server | |
# Make sure PhpStorm is listening for PHP Debug connections | |
# Just add your breakpoints and run a command | |
# 10.0.2.2 is your guest ip (I guess) | |
# and the only place I could find it is when you run `vagrant ssh` | |
# it will be printed next to "Last login: <date> from 10.0.2.2" | |
# More info here http://stackoverflow.com/a/28856207/1479743 | |
php -dxdebug.remote_autostart=on -dxdebug.remote_connect_back=off -dxdebug.remote_host=10.0.2.2 artisan <command> |