Skip to content

Instantly share code, notes, and snippets.

View lucamartellucci's full-sized avatar

Luca lucamartellucci

  • Actalis Service Srl
  • Italy
View GitHub Profile
@lucamartellucci
lucamartellucci / OpenSSL_Tips.md
Last active March 23, 2020 17:59
OpenSSL Tips

OpenSSL Tips

Show certificate content

$ openssl x509 -in cert.pem -noout -text | more

Build trustchain

SVN Tips

Show differences between current version of a file against the head version

$ svn diff filename -r head --diff-cmd meld

Show list of modified files

Travis & Slack Integration

  • Go to the slack website and add a new Travis CI integration.
  • Slack will provide a snippet of configuration for your .travis.yml file:
notifications:
  slack: <account>:<token>
@lucamartellucci
lucamartellucci / rr.md
Last active March 11, 2016 15:15
Ruby on Rails

##Install Ruby on Rails

Refer to this tutorial: [Install Rails on Ubuntu]

Create a Rails application

Scaffold a new application

Here’s how to create a project-specific gemset, installing Rails, and creating a new application.

@lucamartellucci
lucamartellucci / docker.md
Last active March 11, 2016 15:01
Docker Mini-How-To

Docker how-to

Start / Stop the docker service

$ service docker start / stop

Sign in to the Docker Hub

$ docker login

Git Cheat Sheet

Show the commit history of the local repository

$ git log

Show the content of a given commit

$ git show 
@lucamartellucci
lucamartellucci / linux_notes.md
Last active July 27, 2016 06:31
Linux Notes and Tips

Linux Notes

Remove unused Kernels and packages in Ubuntu

$ sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')

Show the size of the current directory

$ du -ch | grep total
@lucamartellucci
lucamartellucci / eclipse_tips.md
Last active March 11, 2016 16:08
How to setup Eclipse for Java Development

Eclipse Tips

Add static imports to the favorite list

To speed up the import of static methods in a Java class we need to populate the Eclipse's "Content Assist, Favorites"

Window > Preferences > Java > Editor > Content Assist > Favorites

In mine, I have the following entries (when adding, use "New Type" and omit the .*):

  • org.hamcrest.Matchers.*
@lucamartellucci
lucamartellucci / angularjs_spring_workshop.md
Last active March 11, 2016 11:00
Workshop on Spring and Angular JS

Worksop AngularJS & Spring

Windows Setup

Java 8

Installare la JDK 8 tramite il classico installer scaricabile da Oracle al seguente link: [JDK8]

Gradle

Installare il tool per la build gradle scaricabile dal sequente link: [Gradle]. Verrà scaricato un file .zip contenente i file binari e la documentazione.