-
Download or copy the script content un home directory.
-
Create tarminal alias, like in ~/.bashrc
alias cmvn='/c/Users/juan\ mesaglio/deploy-scripts/create-maven-project.sh'
. -
Enjoy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('caca') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import threading | |
import json | |
import datetime | |
class Server: | |
def __init__(self, port: int, multi_threading=True): | |
self.port = port | |
self.threads = multi_threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cProfile, pstats, io | |
def profile(fun): | |
""" | |
print file-function call, number of calls, cumtime, percall(second percall) | |
How to use: | |
@profile | |
def function_to_analize(): | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
tools { | |
maven 'Maven_3.6.2' | |
jdk 'Java_1.8u161' | |
} | |
environment { | |
GIT_VERSION = sh (returnStdout: true, script: 'git rev-parse HEAD | cut -c 1-10').trim() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1 | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
- discovery.type=single-node | |
logstash: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/target/ | |
/bin/ | |
.classpath | |
.project | |
/.apt_generated/ | |
/.settings/ | |
.factorypath | |
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>GROUP</groupId> | |
<artifactId>ARTIFACT</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const echoPostRequest = { | |
url: pm.environment.get('baseUrl') + '/login', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
"mail": "[email protected]", | |
"password": "HXtaSUzh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Sequelize = require('sequelize'); | |
var pool; | |
module.exports = { | |
getPool: function() { | |
if (pool) { | |
console.log('pool viejo '); //+ pool); | |
return pool; | |
} | |
pool = new Sequelize('mysql://root:root@localhost:3306/pdep', { |
NewerOlder