Skip to content

Instantly share code, notes, and snippets.

Toby Smith tobysmith568

View GitHub Profile
@tobysmith568
tobysmith568 / BuilderMaker.java
Created Nov 6, 2018
Java Builder Pattern Creator
View BuilderMaker.java
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.Calendar;
public class BuilderMaker
{
public static void main(String args[])
{
if (args.length < 1)
View Open Jira ticket bookmark.html
<head>
<title>Open a Jira ticket</title>
<script>
var jiraURL = "http://<<YOUR JIRA URL>>";
var ticketPrefix = "<<OPTIONAL TICKET PREFIX>>";
var url_string = window.location.href;
var url = new URL(url_string);
var opened = url.searchParams.get("opened");
@tobysmith568
tobysmith568 / Add Eclipse Workspace.bat
Last active Sep 20, 2018
Batch file to add a new option to the Windows Explorer right-click menu which opens an Eclispe workspace wherever you right click
View Add Eclipse Workspace.bat
@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else (
goto gotAdmin
)
You can’t perform that action at this time.