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
@Grapes([ | |
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7') | |
]) | |
import groovyx.net.http.* | |
def API_KEY = "000000000000000000000000" | |
def APP_ID = "1111111" | |
def URL = "https://api.newrelic.com/v2/applications/${APP_ID}/deployments.json" |
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 com.liferay.portal.util.PortalUtil; | |
import com.liferay.portal.theme.ThemeDisplay; | |
import com.liferay.util.Encryptor; | |
import javax.servlet.http.HttpServletRequest; | |
String key = "23410447"; | |
String uid = ""; | |
ThemeDisplay themeDisplay = null; | |
HttpServletRequest request = null; |
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 io.github.cmaggiulli.Game; | |
import javafx.geometry.Point2D; | |
public class AlgebraicNotationPoint2D extends Point2D { | |
public AlgebraicNotationPoint2D(char rank, double file) { | |
super(alphabeticalIndex(rank), file); | |
} |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> | |
<dependency> | |
<dependentAssembly> | |
<assemblyIdentity | |
type="win32" | |
name="Microsoft.Windows.Common-Controls" | |
version="6.0.0.0" processorArchitecture="*" |
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
function Send-ComPort-Alert | |
{ | |
param([bool]$Asc, [string]$Modems) | |
# Sender and Receiver | |
$From = "[email protected]" | |
$To = "[email protected]", "[email protected]" | |
# Server and Port | |
$Server = "smtp.server.com" |
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 | |
# To run this use the following commands | |
# ---------------------------------- | |
# sudo chmod +x aws-config-linux.sh | |
# sudo . aws-config-linux.sh access_key_id secret_access_key | |
fldr=~/.aws | |
cred=$fldr/credentials |
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
$access_key_id = $args[0] | |
$secret_access_key = $args[1] | |
$dir = Join-Path $env:userprofile "\.aws\" | |
$file = Join-Path $dir "credentials" | |
if (-NOT (Test-Path $dir)) { | |
New-Item $dir -type Directory | |
} | |
if (-NOT (Test-Path $file)) { |
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
--- | |
template: | |
templateName: OIC-DBaaS-SE-Template.yaml | |
templateVersion: 1.1.0 | |
templateDescription: Integration Cloud template with Oracle 12c Database as a Service Standard Edition | |
#---------------------------------------- | |
# PARAMETERS | |
#---------------------------------------- | |
parameters: |
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
#!/usr/bin/env groovy | |
/* | |
* This script undeploys all revisions of a particular project as specified in the command line arguments | |
* Example execution command below | |
* groovy deactivate.groovy https://My-Oracle-URL.com MyProject MyUsername MyPassword | |
* Author: Chris Maggiulli | |
* Email: [email protected] | |
*/ | |
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
$ip=get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.Ipaddress.length -gt 1} | |
$EmailTo = "[email protected]" | |
$EmailFrom = "[email protected]" | |
$Subject = "$($ip.ipaddress[0])" | |
$Body = "$($ip.ipaddress[0])" | |
$SMTPServer = "smtp.example.com" | |
$SMTPMessage = New-Object System.Net.Mail.MailMessage($EmailFrom,$EmailTo,$Subject,$Body) | |
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587) | |
$SMTPClient.EnableSsl = $true |
OlderNewer