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
/**************************************************** | |
Author: Christopher Maggiulli | |
Student ID: 000911211 | |
Email: [email protected] | |
Class: ICSI 404 Computer Organization | |
*****************************************************/ | |
#include <stdio.h> |
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/sh | |
# Author: Chris Maggiulli | |
# Email: [email protected] | |
# Platform: Oracle Service Cloud (RightNow) Connect REST API v1.4 | |
# Description: Sends ROQL to a RESTful service to retrieve FileNames, FileIDs, and the IncidentID from a ReferenceNumber | |
# Usage: ./incident-file-information.sh {Usernmae} {Password} {BaseURL (without protocol schema)} {RefeenceNumber} | |
# Example: ./incident-file-information.sh CMaggu0 Lifer12 yoururl.custhelp.com/ 188011-0919 | |
ROQL="SELECT |
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
curl -X PUT http://url:port/payload.jsp/ -d @- < payload.jsp |
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 exports all Oracle Inegration Cloud integrations | |
* Example execution command below | |
* groovy export-iar.groovy https://My-Oracle-URL.com 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
@Grapes([ | |
@Grab(group='com.rabbitmq', module='amqp-client', version='3.6.5'), | |
@Grab(group = 'com.sun.mail', module = 'javax.mail', version = '1.6.0') | |
]) | |
import com.rabbitmq.client.* | |
import groovy.json.JsonSlurper | |
import javax.mail.Message | |
import javax.mail.Session | |
import javax.mail.Transport |
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/sh | |
# Author: Chris Maggiulli | |
# Email: [email protected] | |
# Platform: Oracle Service Cloud (RightNow) Connect REST API v1.4 | |
# Description: Sends ROQL to a RESTful service to retrieve FileNames, FileIDs, and the IncidentID from a ReferenceNumber | |
# Usage: ./incident-file-information.sh {Usernmae} {Password} {BaseURL (without protocol schema)} {RefeenceNumber} | |
# Example: ./incident-file-information.sh CMaggu0 Lifer12 yoururl.custhelp.com/ 188011-0919 | |
ROQL="SELECT |
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/sh | |
./sqlmap.py -u "http://www.my-security-lab-example.com/index.cfm" --cookie="CFID=14438602; CFTOKEN=c0d7ea59ab207174-42572088-1DD8-B747-629578C7057DE711" --level=3 --risk=1 --tor --tor-type=SOCKS5 --check-tor --tor-port=9050 --forms --user-agent="Googlebot (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" |
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
ALTER SESSION set exclude_seed_cdb_view = false; | |
ALTER SESSION set "_exclude_seed_cdb_view" = false; | |
SELECT file_name FROM cdb_data_files | |
WHERE con_id = 2 |
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
public void setFilePermissions(DLFileEntry fileEntry) throws Exception{ | |
ResourceAction resourceAction = null; | |
try { | |
ArrayList<String> actions = actions(); | |
for(String action : actions) { | |
resourceAction = ResourceActionLocalServiceUtil.getResourceAction(DLFileEntry.class.getName(), action); | |
setFilePermissions(fileEntry, resourceAction); | |
} |
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
<aui:script use="aui-base"> | |
var password = A.one('#<portlet:namespace />password'); | |
if (password) { | |
password.on( | |
'keypress', | |
function(event) { | |
Liferay.Util.showCapsLock(event, '<portlet:namespace />passwordCapsLockSpan'); | |
} | |
); |