Skip to content

Instantly share code, notes, and snippets.

@authentical
authentical / restart_exporer.ps1111
Last active March 18, 2020 23:16
Restarts explorer
#brb
$rerun = 1
while($rerun -eq 1){
try{
if(![string]::IsNullOrEmpty(($explorerProc = Get-Process explorer))){
kill $explorerProc
try{
@authentical
authentical / Main.java
Created March 17, 2020 19:11
paste_charsStringsArraysLists
public class Main {
public static void main(String[] args) {
// List
// tochararray
char[] putInto = {};
@authentical
authentical / listFilesInWebContentDirectory.jsp
Last active October 2, 2018 04:57
This JSP helps me view the folders and files in the WebContent directory
<%@page import="java.util.Arrays"%>
<%@page import="java.io.File"%>
<%@page import="java.util.ArrayList" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%
// Here I'm learning about javax.servlet.http.Cookie
// TempCookie is just a Cookie implemented with default 60 second maxAge
// TempCookie can be replaced by Cookie
<%@page import="demo.TempCookie"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
package demo;
import javax.servlet.http.Cookie;
/* This is just a Cookie implementation for doing some testing.
javax.servlet.http.Cookie with a default maxAge = 1 minute
*/