Skip to content

Instantly share code, notes, and snippets.

@ddelizia
ddelizia / gist:3714403
Created September 13, 2012 13:47
Error - mvn missing repository
Failed to execute goal on project projectName:
Could not resolve dependencies for project com.package.projectName:type:version:
The following artifacts could not be resolved:
org.apache.camel:camel-bindy:jar:2.8.0-fuse-03-06, org.apache.camel:camel-core:jar:2.8.0-fuse-03-06, org.apache.camel:camel-spring:jar:2.8.0-fuse-03-06, org.apache.camel:camel-jetty:jar:2.8.0-fuse-03-06, org.apache.camel:camel-http:jar:2.8.0-fuse-03-06, org.apache.camel:camel-test:jar:2.8.0-fuse-03-06: Could not find artifact org.apache.camel:camel-bindy:jar:2.8.0-fuse-03-06 in central (http://repo1.maven.org/maven2)
@ddelizia
ddelizia / gist:3714418
Created September 13, 2012 13:49
mvn repositories for camel project
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
@ddelizia
ddelizia / VcrudModel.java
Created July 15, 2013 14:47
Vcrud Model
package org.ddelizia.vcrud.model;
import javax.persistence.*;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* User: danilo.delizia
* Date: 8/05/13
* Time: 16:17
'use strict';
angular.module('vcrudValidatedInputDirective', [])
.directive('validatedInput', function($tooltip, $interval) {
return {
restrict: 'A',
scope:{
feedbackType: '@',
label:'@',
formValidation:'@',
<form role="form" name='registerForm' class="register-form" ng-controller="registerFormCtrl">
<div growl></div>
<div class="form-group col-md-6">
<input
type="text"
id="firstname"
name="firstname"
class="form-control"
placeholder="{{ 'sign.placeHolderFirstname' | translate }}"
ng-model="register.firstname"
'use strict';
angular.module('vcrudSign', ['vcrudSignService', 'vcrudSignDirective', 'angular-growl'])
.controller('registerFormCtrl', ['$scope', 'growl', function($scope, growl) {
$scope.submit = function() {
if (!$scope.registerForm.$valid){
growl.addErrorMessage('Error in form',{ttl: 5000});
}
$scope.$broadcast('validateFormEvent');
};
@ddelizia
ddelizia / httpd.conf
Created August 5, 2018 17:15
My httpd configuration with php installed
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@ddelizia
ddelizia / php_setup.sh
Last active August 6, 2018 16:19
Installing php on mac osx and homebrew
xcode-select --install
echo '****Installing Apache httpd'
brew install httpd
echo '****Installing Php 5.6 and 7.2'
brew install php@5.6
brew install php@7.2
echo '****Installing mariadb'
alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor'
export JREBEL_HOME=/Applications/jrebel
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
alias ccat='pygmentize -g'
alias hosts='cat /etc/hosts'
alias mysshkey='pbcopy < ~/.ssh/id_rsa.pub'
alias jupyter='cd ~/projects/jupyter;pipenv run jupyter notebook'
@ddelizia
ddelizia / Brewfile
Last active January 25, 2021 12:40
Brewfile
brew 'graphviz'
brew 'htop'
brew 'ctop'
brew 'wget'
brew 'go'
brew 'pyenv'
brew 'ngrok'
brew 'helm'
brew 'cdktf'
brew 'minikube'