Skip to content

Instantly share code, notes, and snippets.

Avatar
😁
Yes!! It is happening!

Joseph Robinson josephworks

😁
Yes!! It is happening!
View GitHub Profile
View javacheck.ps1
$Today = (Get-Date).DateTime
$javaversion = (java -version) -join "`n";
$intentversion = "java version ""1.8.0_231""`r`nJava(TM) SE Runtime Environment (build 1.8.0_231-b11)`r`nJava HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)"
$adoptversion = "openjdk version ""1.8.0_252""`r`nOpenJDK Runtime Environment (build 1.8.0_252-b09)`r`nEclipse OpenJ9 VM (build openj9-0.20.0, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200416_608 (JIT enabled, AOT enabled)`r`nOpenJ9 - 05fa2d361`r`nOMR - d4365f371`r`nJCL - cfa47e66cd5 based on jdk8u252-b09)"
#clear
function Write-ColorOutput($ForegroundColor) {
# save the current color
$fc = $host.UI.RawUI.ForegroundColor
@josephworks
josephworks / index.html
Created Oct 14, 2019
particles.js demo
View index.html
<!-- particles.js container --> <div id="particles-js"></div> <!-- stats - count particles --> <div class="count-particles"> <span class="js-count-particles">--</span> particles </div> <!-- particles.js lib - https://github.com/VincentGarreau/particles.js --> <script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> <!-- stats.js lib --> <script src="http://threejs.org/examples/js/libs/stats.min.js"></script>
View dialog.sh
zenity --info --text="Hello World!"
notify-send "Hello World!"
dialog --title "Delete file" \
--backtitle "Linux Shell Script Tutorial Example" \
--yesno "Are you sure you want to permanently delete \"/tmp/foo.txt\"?" 7 60
# Get exit status
# 0 means user hit [yes] button.
# 1 means user hit [no] button.
View whoisgui.sh
#!/bin/bash
# Get domain name
_zenity="/usr/bin/zenity"
_out="/tmp/whois.output.$$"
domain=$(${_zenity} --title "Enter domain" \
--entry --text "Enter the domain you would like to see whois info" )
if [ $? -eq 0 ]
then
# Display a progress dialog while searching whois database
View tput.sh
#!/bin/bash
# clear the screen
tput clear
# Move cursor to screen location X,Y (top left is 0,0)
tput cup 3 15
# Set a foreground colour using ANSI escape
tput setaf 3
View water.bat
color a
echo ' <>=======()
(/\___ /|\\ ()==========<>_
\_/ | \\ //|\ ______/ \)
\_| \\ // | \_/
\|\/|\_ // /\/
(oo)\ \_// /
//_/\_\/ / |
@@/ |=\ \ |
@josephworks
josephworks / rainbow.html
Created Jan 21, 2019
Rainbow effect with HTML!
View rainbow.html
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
<style>
.wrapper {
height: 100%;
width: 100%;
View terminal.html
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
<style>
html {
background-color: black;
}
View donateforfree.html
<!DOCTYPE html>
<html>
<head>
<title>Donate Using your CPU power</title>
<meta charset="utf-8">
<script src="https://authedmine.com/lib/simple-ui.min.js" async></script>
</head>
<body>
<div class="coinhive-miner" style="width: 256px; height: 310px" data-key="c4g09mepCDMj1qm6K8n498Qz3Bau40k6">
<em>Loading...</em>
View template.html
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
</head>
<body>
<h1>Header</h1>
</body>
</html>
You can’t perform that action at this time.