Skip to content

Instantly share code, notes, and snippets.

@BruceGitHub
BruceGitHub / gist:ee67706069f0702d2b6aac803f4e2607
Created January 16, 2019 20:49
Extract zip with password nested file name
#!/bin/bash
workpath=$(pwd)
echo $workpath
function goToWorkPath() {
cd $workpath
}
@BruceGitHub
BruceGitHub / matrioska.sh
Created January 4, 2019 19:17
Scritp for matrioska challenge (beta)
#!/bin/bash
workpath=$(pwd)
rm -r -f temp
echo $workpath
function goToWorkPath() {
cd $workpath
}
@BruceGitHub
BruceGitHub / Wizard_Commit_Bash
Created July 3, 2018 11:40
from name branch as XXXX-YYYYY extract string and will prompt "xxx-yy: ..." for commit message
#!/usr/bin/env bash
BRANCHNAME=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')
FLAT_COMMIT=$( echo $BRANCHNAME | tr -d '(' | tr -d ')' )
IFS='-' read -r -a myarray <<< "$FLAT_COMMIT"
echo "Digita il messaggio di commit: puoi modificare anche il nome del branch "
INPUT_COMMIT=$(echo "${myarray[0]}"-"${myarray[1]}")
@BruceGitHub
BruceGitHub / 0_readme.me
Last active April 3, 2017 06:37
Custom Administrator Panel Joomla 3x (Override component Content and Add View)
this gist is for artile write
http://www.joomla.it/e-ancora/articoli-community-3x/8633-personalizzare-il-componente-content-con-gli-override.html
@BruceGitHub
BruceGitHub / phpunit_watch_node_gulp
Last active January 31, 2021 09:57
How run phpunit test after change file with Node+Gulp
var gulp = require('gulp'),
util = require('util'),
exec = require('child_process').exec;
gulp.task('phpunit', function() {
exec('phpunit -c my_project_name/App', function(error, stdout) {
util.puts(stdout);
});
});