Skip to content

Instantly share code, notes, and snippets.

View josehenriqueventura's full-sized avatar
👨‍💻
Coding

Jose Henrique Ventura josehenriqueventura

👨‍💻
Coding
View GitHub Profile
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profile>
<id>jboss-repositories</id>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
@josehenriqueventura
josehenriqueventura / docker
Last active March 23, 2016 21:30
/etc/default/docker
# Docker Upstart and SysVinit configuration file
# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"
# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -g /home/user/docker -H tcp://0.0.0.0:2376 -H unix://var/run/docker.sock"
# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"
import java.io.*;
import java.math.*;
import java.util.*;
public class Solution {
private static BigInteger fibonacci(BigInteger count){
if(count.compareTo(BigInteger.ZERO) <= 0){
return BigInteger.ZERO;
}else if(count.compareTo(BigInteger.ONE) == 0){
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String demiliters = scanner.nextLine();
System.out.println(isDelimitersBalanced(demiliters) ? "True" : "False");
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
@josehenriqueventura
josehenriqueventura / clean.sh
Created December 4, 2019 09:56 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
---
openapi: 3.0.0
info:
title: Generated API
version: "1.0"
paths:
/fruits:
get:
responses:
"200":