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
| # install.ps1 | |
| # Simple installer script for AMH2W module | |
| [CmdletBinding()] | |
| param( | |
| [string]$InstallPath = $(($env:PSModulePath -split ';')[0] + "\AMH2W") | |
| ) | |
| $ErrorActionPreference = 'Stop' | |
| $ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path |
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
| $global:packages = @( | |
| @{ | |
| Name = "Maven" | |
| Description = "Ferramenta de build para Java. Utilizada para compilar e empacotar o projeto." | |
| Url = "https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.zip" | |
| TargetFolder = "apache-maven-3.9.9" | |
| IsOptional = $false | |
| }, | |
| @{ | |
| Name = "Maven Daemon (mvnd)" |
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
| function Optimize-Eclipse { | |
| try { | |
| $eclipsePath = Join-Path $toolsDir "eclipse" | |
| $eclipseExe = Join-Path $eclipsePath "eclipse.exe" | |
| # Tenta iniciar o eclipse em modo silencioso para validar | |
| if (-not (Test-Path $eclipseExe)) { | |
| Write-Host "❌ eclipse.exe não encontrado em $eclipseExe." -ForegroundColor Yellow | |
| return $false | |
| } | |
| Write-Host "Eclipse encontrado em: $eclipseExe" -ForegroundColor DarkGray |
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
| # ============================================================================ | |
| # Modular PowerShell Prompt | |
| # Author: Guinetik | |
| # Description: A modern, modular PowerShell prompt with powerline separators, | |
| # Git integration, language detection, and system monitoring | |
| # Features: Git status, Java/Node.js detection, RAM usage, right-aligned time | |
| # ============================================================================ | |
| # Global color and icon setup | |
| $esc = [char]27 |
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
| # Automação Desktop - Versão Ultra Compatível | |
| # Funciona mesmo sem .NET Framework completo | |
| param( | |
| [string]$AppName, | |
| [int]$TestDuration = 60 | |
| ) | |
| Write-Host "🚀 === AUTOMAÇÃO DESKTOP ULTRA COMPATÍVEL ===" -ForegroundColor Cyan | |
| Write-Host "💡 Esta versão usa apenas recursos nativos do Windows" -ForegroundColor Yellow | |
| Write-Host "" |
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
| # Script de Automação Desktop - Versão Simplificada e Funcional | |
| param( | |
| [string]$AppName, | |
| [int]$TestDuration = 60 | |
| ) | |
| # Inicialização dos assemblies necessários | |
| Write-Host "🔄 Inicializando componentes..." -ForegroundColor Cyan | |
| try { |
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
| <# | |
| .SYNOPSIS | |
| Clona repositórios do GitHub baseado em critérios de pesquisa usando um Personal Access Token (PAT). | |
| .DESCRIPTION | |
| Este script utiliza a API do GitHub para buscar repositórios que correspondem aos critérios especificados | |
| e os clona localmente. Por padrão, força a busca apenas por repositórios privados, mas pode ser | |
| customizado através do parâmetro Query. | |
| .PARAMETER Pat |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | |
| <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | |
| <output url="file://$MODULE_DIR$/target/classes" /> | |
| <output-test url="file://$MODULE_DIR$/target/test-classes" /> | |
| <content url="file://$MODULE_DIR$"> | |
| <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | |
| <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | |
| <excludeFolder url="file://$MODULE_DIR$/target" /> | |
| </content> |
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
| <bean id="itemReader" class="org.springframework.batch.item.file.FlatFileItemReader" scope="step"> | |
| <property name="resource" value="file.csv" /> | |
| <property name="lineMapper"> | |
| <bean class="org.springframework.batch.item.file.mapping.PassThroughLineMapper" /> | |
| </property> | |
| <property name="strict" value="true" /> | |
| </bean> |
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 java.util.ArrayList; | |
| public class HelloWorld{ | |
| private int max; | |
| private ArrayList<String> lista; | |
| public static int MAX = 10; | |
| public HelloWorld(int max) throws Exception { | |
| if(max > 0 && max < MAX) { | |
| this.max = max; |
NewerOlder