This file contains hidden or 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
| <datasource jta="true" jndi-name="java:jboss/datasources/CopacoBillingDS" pool-name="CopacoBillingDS" enabled="true" use-ccm="true"> | |
| <connection-url>jdbc:informix-sqli://10.13.200.41:9088/copaco_prueba01:informixserver=copacodb</connection-url> | |
| <driver>informix-jdbc</driver> | |
| <security> | |
| <user-name>USER</user-name> | |
| <password>PASS</password> | |
| </security> | |
| </datasource> |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| public static class Vibration | |
| { | |
| #if UNITY_ANDROID && !UNITY_EDITOR | |
| public static AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
| public static AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"); | |
| public static AndroidJavaObject vibrator = currentActivity.Call<AndroidJavaObject>("getSystemService", "vibrator"); |
This file contains hidden or 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
| #!bin/bash | |
| ps -eF | grep jboss | grep server | tr -s " " | cut -d " " -f2 | xargs kill -9 | |
| su - jboss -c 'nohup sh /opt/jboss/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0' & |
This file contains hidden or 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
| package py.com.volpe.stack; | |
| import java.io.File; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import javax.xml.bind.JAXBContext; | |
| import javax.xml.bind.Unmarshaller; | |
| import javax.xml.bind.annotation.XmlAccessType; |
This file contains hidden or 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
| package test; | |
| import java.sql.Connection; | |
| import org.flywaydb.core.api.MigrationInfo; | |
| import org.flywaydb.core.api.callback.FlywayCallback; | |
| public class AuditCallback implements FlywayCallback { | |
| @Override |
This file contains hidden or 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
| --------------------------------------------------------------------------------------------------- | |
| @echo off | |
| REM JBoss, the OpenSource webOS | |
| REM | |
| REM Distributable under LGPL license. | |
| REM See terms of license at gnu.org. | |
| REM | |
| REM ------------------------------------------------------------------------- | |
| REM JBoss Service Script for Windows | |
| REM ------------------------------------------------------------------------- |
This file contains hidden or 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 urllib2 | |
| from bs4 import BeautifulSoup | |
| e = urllib2.urlopen("http://es.wikipedia.org/wiki/Paraguay").read() | |
| soup = BeautifulSoup(e, 'html.parser') | |
| # Ejemplo de como imprimir todo | |
| # print soup.prettify() |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Dependencias: | |
| # - beautifulsoup4 | |
| import sys | |
| import time | |
| import urllib | |
| import urllib.request |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| FROM postgres:9.4 | |
| MAINTAINER Arturo Volpe <arturovolpe@gmail.com> | |
| ENV DB_NAME test | |
| ENV DB_USER admin | |
| ENV DB_PASS password | |
| RUN apt-get update && apt-get install -y wget && wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | |
| RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' | |
| RUN apt-get update && apt-get install -y postgresql-9.3-postgis-2.1 -f | |
| ADD setup-database.sh /docker-entrypoint-initdb.d/ # this scripts creates a database, is optional |