Skip to content

Instantly share code, notes, and snippets.

View balanici's full-sized avatar

Igor Bălănici balanici

  • Chișinău
View GitHub Profile
@balanici
balanici / application.properties
Last active December 14, 2020 22:45 — forked from rhamedy/README.md
Configure HikariCP with Spring Boot JPA Hibernate and PostgreSQL as a database
server.contextPath=/
debug=true
# Spring data source needed for Spring boot to behave
# Pre Spring Boot v2.0.0.M6 without below Spring Boot defaults to tomcat-jdbc connection pool included
# in spring-boot-starter-jdbc and as compiled dependency under spring-boot-starter-data-jpa
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.url=jdbc:postgresql://localhost:5432/somedb
spring.datasource.username=dbuser
spring.datasource.password=dbpassword
@balanici
balanici / maven-profiles-example
Last active July 9, 2020 08:48
maven profiles: tomcat, jetty, undertow
<profiles>
<profile>
<id>tomcat</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
#Igor: for git branch in command prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\033[01;38;5;117m\]\u@\h:\[\033[01;38;5;120m\]\w \[\033[33m\]\$(parse_git_branch)\[\e[00m\]\\n└─\$ "
http://xandeadx.ru/blog/drupal/450
Drupal → Обновляем Drupal 6 до версии 7
Опубликовано в сб, 01/10/2011 - 04:19
drupal
Записываем список включённых модулей со страницы admin/build/modules. Drush юзеры могут воспользоваться командой drush pm-list --status=enabled.
Отключаем, деинсталлируем и удаляем неиспользуемые модули. Аналогично поступаем с модулями, которые больше не понадобятся на Drupal 7 (например admin_menu, poormanscron и т.д.). Uninstall делается на странице admin/build/modules/uninstall.
Обновляем Drupal 6 до последней минорной версии (если нужно). Drush юзеры могут воспользоваться командой drush up drupal.