Skip to content

Instantly share code, notes, and snippets.

View jfranciscos4's full-sized avatar
💭
I may be slow to respond.

J.F. Silva IV jfranciscos4

💭
I may be slow to respond.
View GitHub Profile
@jfranciscos4
jfranciscos4 / pom.xml
Created May 23, 2019 22:38 — forked from timmolderez/pom.xml
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@jfranciscos4
jfranciscos4 / git-tag-delete-local-and-remote.sh
Created July 28, 2018 15:04 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@jfranciscos4
jfranciscos4 / KillProcces.md
Created July 18, 2018 20:17 — forked from appikonda/KillProcces.md
Address already in use: JVM_Bind <null>:8080

###Exception:

Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
        ... 31 more
@jfranciscos4
jfranciscos4 / gist:ae3dc8ada5f6f70cf74595ea0ca4d9c8
Created June 8, 2018 00:18 — forked from eliasnogueira/gist:5340507
Diferença entre Smoke e Acceptance Test num contexto ágil

Hoje um colaborador da lista sobre Teste de Software [DFTestes] (http://br.groups.yahoo.com/group/DFTestes/) perguntou em uma thread sobre PhantomJS qual era a difernça entre Smoke Test e Acceptance Test. Ai resolvi responder. Como a lista é somente de acesso aos usuários registrados, estou colocando um resumo, na minha ótica, a diferença entre eles:

Dentro de um contexto ágil nós temos uma separação clara do que é smoke test e o que é teste de aceitação.

  • Smoke Test: conjunto de testes (bem menor do que o conjunto de teste de aceitaçaõ, que vai configurar posteriormente em uma regressão) com o intuito de validar se os pontos maisimportantes da aplicação continuam funcionando após as alterações.

  • Teste de Aceitação: São os testes funcionais que conhecemos. Em um contexto ágil eles são chamados de aceitação ao invés de funcional, pela ótica que adotamos a estes testes, que vão tanto validar a aplicação funcionalmente como validar também da ótica de um usuário (fazer uma venda completa, por exemplo). Este

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@jfranciscos4
jfranciscos4 / npm-list-globally.md
Created May 31, 2018 21:57 — forked from brenopolanski/npm-list-globally.md
Listing globally installed NPM packages and version
npm list -g --depth=0
@jfranciscos4
jfranciscos4 / filter-by-alasql.js
Created November 24, 2017 21:48
Filtering Data by AlaSQL,js
// var filters = {id: 2}; // passed: true
// var filters = {id: 2, name: 'name_2'}; // passed: true
// var filters = {
// id: 2,
// name: 'name_1'
// }; // passed = true
// var filters = {
// id: 1,
// name: 'name_1',
// list: {
@jfranciscos4
jfranciscos4 / load.js
Created November 23, 2017 21:07
Load page es5
var init = function() {
// Handler when the DOM is fully loaded
};
if (
document.readyState === "complete" ||
(document.readyState !== "loading" && !document.documentElement.doScroll)
) {
init();
} else {
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install
@jfranciscos4
jfranciscos4 / slackpost
Created May 4, 2017 19:45 — forked from dopiaza/slackpost
Post a message to a Slack channel
#!/bin/bash
# Usage: slackpost <token> <channel> <message>
# Enter the name of your slack host here - the thing that appears in your URL:
# https://slackhost.slack.com/
slackhost=PUT_YOUR_HOST_HERE
token=$1