Skip to content

Instantly share code, notes, and snippets.

DinisCruz-Dev / 1.finding findings view.groovy
Last active August 29, 2015 14:00
Groovy scripts on IBM AppScan Source Eclipse plugin
// A) get list of current installed plugins
return eclipse.registry.views_Ids().sort()
// B) get findings view
def findings ="com.ouncelabs.osa.ui.base.views.findings");
return findings;
// C) view findings object (properties, fields and methods)
def findings ="com.ouncelabs.osa.ui.base.views.findings");
show(findings) // return value: com.ouncelabs.osa.ui.extended.views.FindingsView@1d4e177
return "cmd.exe".startProcess_getConsoleOut("/c ipconfig");
return WindowsIdentity.GetCurrent().Name; // stays the same
DinisCruz-Dev / 1. index.html
Created March 1, 2014 19:29
Simple AngularJS app with Firebug lite
<!DOCTYPE html>
<html ng-app>
<meta charset="UTF-8">
<title>Angular example (with Firebug lite)</title>
<script src=""></script>
<script src="" ></script>
<link href ="" rel="stylesheet" ></link>
<script type="text/javascript">
DinisCruz-Dev / 1. final script.groovy
Last active August 29, 2015 13:56
Eclipse Groovy script to remove loading Icon from Default webbrowser
def visible = false;
for(editor in eclipse.editors.list())
if ( == "org.eclipse.ui.browser.editor")
editor.getEditor(true).webBrowser.busy.visible = visible;
DinisCruz-Dev / 01. get file name from loaded editor.groovy
Last active August 29, 2015 13:56
Groovy scripts to parse Blogger export xml
def editor = eclipse.editors.get("blog-02-28-2014 (1).xml").getEditor(true);
def xmlFile = editor.getEditorInput().fileStore.toString();
return xmlFile;
DinisCruz-Dev / 1. Groovy script to auto open an browser based on folder change.groovy
Last active August 29, 2015 13:56
Groovy script to auto open an browser based on folder change (same as the last example on but on a separate gist so that it embeds ok in a blog post)
import java.nio.file.*;
import com.sun.nio.file.*
import java.nio.file.attribute.*;
def editorTitle = "index.html"
def refreshBrowser = { path ->
eclipse.log("Opening browser with: " + path);
def view = eclipse.views.create("Synced WebBrowser");
if (view.controls().size() == 0)
DinisCruz-Dev / _views_messages.html
Last active August 29, 2015 13:56
Nice Simple AngularJS + Firebase + C# REST PoC.
<h5>Current messages:</h5>
<table class="table table-striped">
<tr ng-repeat="message in messages" >
DinisCruz-Dev / 1. hook TeamMentor BeginRequest and send url to firebase.c#
Created February 27, 2014 15:23
C# REPL scripts to Communitcate with Firebase
Action<string,string,string,string> sendData_Raw =
(app,token, area, data)=>
var url = "https://{0}{1}.json?auth={2}".format(app, area, token);
var now = DateTime.Now.ToShortTimeString(); // DateTime.Now. TimeOfDay;
var postData = "\"{0}: {1}\"".format(now, data.replace("\"", "'"));
DinisCruz-Dev / 1. send 1000 pushes to firebase in c#.cs
Last active August 29, 2015 13:56
Script to test Firebase and C# performace
var msgSent = 1;
var errors = 0;
Action<string,string,string,string> sendMessage =
(app,token, area, message)=>
var url = "https://{0}{1}.json?auth={2}".format(app, area, token);
var now = DateTime.Now. TimeOfDay; //DateTime.Now.ToShortTimeString();
var data = "\"[{0}] {1}\"".format(now, message.replace("\"", "'"));
DinisCruz-Dev / 1a. simple Angular with route - Firebase_Login.html
Last active May 17, 2020 22:47
Creating an AngularJS page with Firebase login
<!doctype html>
<html ng-app="project">
<script src="" ></script>
<script src=""></script>
<link href="" rel="stylesheet" >
<script src="app.js"></script>