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
#!/bin/bash | |
FILENAME=ic_launcher | |
EXTENSION=.png | |
cd launcher_icons | |
if [ -z $1 ]; then | |
echo "folder not found" | |
exit 0 | |
fi |
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
package net.sk.base; | |
import java.io.ByteArrayOutputStream; | |
import java.io.InputStream; | |
import java.math.BigDecimal; | |
import java.math.RoundingMode; | |
import java.net.URL; | |
/** | |
* @author sam.fan | |
*/ |
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
grep -Irl --exclude=*.cache* --exclude=*.{PlayOnLinux} /home/user1/ ./ | while read file; do sed -i s//home/user1///home/usario//g ; done |
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
package main; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, World"); | |
} | |
} |
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
-- Creates an index if it does not already exist in MySQL. | |
-- Code by RolandoMySQLDBA, minor modifications by Adam Matan. | |
-- License: CC BY-SA, http://creativecommons.org/licenses/by-sa/3.0/ | |
-- Source: http://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists/24541#24541 | |
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS `pixels`.`CreateIndex` $$ | |
CREATE PROCEDURE `pixels`.`CreateIndex` |
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: '2' | |
services: | |
rancher: | |
image: rancher/server | |
container_name: rancher-server | |
restart: always | |
nginx: | |
image: nginx:1.11 | |
volumes: |
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: '2.1' | |
services: | |
mongodb: | |
image: mongo:latest | |
container_name: "mongodb" | |
environment: | |
- MONGO_DATA_DIR=/data/db | |
- MONGO_LOG_DIR=/dev/null | |
- MONGODB_APPLICATION_DATABASE=twitties | |
volumes: |
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
.metadata | |
mongo-data | |
postgres-kong-data | |
postgres-konga-data | |
collection-twitties | |
twitties-country | |
show-twitties-app |
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
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" | |
xmlns="http://maven.apache.org/SETTINGS/1.1.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<servers> | |
<server> | |
<id>everis-microservice-chassis</id> | |
<username>${env.MAVEN_REPO_USER}</username> | |
<password>${env.MAVEN_REPO_PASS}</password> | |
</server> | |
<server> |
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
image: maven:3.6-jdk-8-alpine | |
stages: | |
- prepare | |
- compile | |
- deploy | |
variables: | |
MAVEN_CLI_OPTS: "-s settings-everis.xml -P everis-profile --batch-mode" | |
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true " |