Regular expression:
pattern: (/\*\*)\n\s*\*\s*(\@var.*)\n\s*(\*/)
replacement: $1 $2 $3
It will convert this:
Scenarist_SCC V1.0 | |
00:00:00;00 94ae 94ae 9420 9420 94d0 94d0 9137 2049 20e3 616e 20f4 e5ec ec20 6279 20f4 6861 f420 f7ef f2f2 e9e5 6480 9470 9470 ecef ef6b 2079 ef75 2067 eff4 20e3 ef6d e96e 6720 ef6e 2079 efa7 20e6 61e3 e580 | |
00:00:01;11 942c 942c | |
00:00:51;01 942f 942f | |
00:00:51;05 94ae 94ae 9420 9420 94d0 94d0 2020 2080 9137 20c2 e5e5 6e20 f7ef f2f2 79e9 6e67 2061 62ef 75f4 9470 9470 2020 2080 6def 6ee5 7920 6def 6d6d 6120 4920 e361 6e20 f2e5 70ec 61e3 e580 |
<?php | |
/** | |
* @param int $amount | |
* @param int $count | |
*/ | |
function amountFromBundle(int $amount, int $count) | |
{ | |
$mod = $amount % $count; | |
$div = ($amount - $mod) / $count; |
# 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> |
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'), |
<?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 |
<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 { |
#!/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 |
#!/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 | |
# 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 |