Skip to content

Instantly share code, notes, and snippets.

View jakejarvis's full-sized avatar

Jake Jarvis jakejarvis

View GitHub Profile
<!--
___ ___ ___
/\__\ /\ \ /\__\
/:/ / /::\ \ /:/ /
/:/ / /:/\:\ \ /:/ /
/:/ / /:/ \:\ \ /:/ /
/:/__/ /:/__/ \:\__\ /:/__/
\:\ \ \:\ \ /:/ / \:\ \
\:\ \ \:\ /:/ / \:\ \
\:\ \ \:\/:/ / \:\ \
public static String[] shuffle(String[] array) {
Random r = new Random();
for(int i = 0; i < array.length; i++) {
int position = r.nextInt(array.length);
String temp = array[i];
array[i] = array[position];
array[position] = temp;
}
private class MyKeyListener implements KeyListener {
public void keyTyped(KeyEvent e) {
}
public void keyPressed(KeyEvent e) {
System.out.println("keyPressed="+KeyEvent.getKeyText(e.getKeyCode()));
if(KeyEvent.getKeyText(e.getKeyCode()).equals("J")) {
System.out.println("hello!");
getAudioClip(getDocumentBase(), "bach_847.mid").loop();
}
<html>
<head>
<title>Page Test</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<div id="page1_content">
<h1>Page 1</h1>
<p>waeowiaejfoiwejfaowief</p>
</div>
String message="Scrabble";
message.toLowerCase(); // TEMPRARY!!!!
int code = 1;
for(int i = 0; i < message.length(); i++) {
char letter = message.charAt(i);
write-host "checking..."
# check for apache
$apache = scoop which httpd
if($lastexitcode -ne 0) { 'Apache isn''t installed. run ''scoop install apache'''; return }
# check for php
$php = scoop which php
if($lastexitcode -ne 0) { 'PHP isn''t installed. run ''scoop install php'''; return }
@jakejarvis
jakejarvis / cloudSettings
Last active November 12, 2020 17:31
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-12T17:31:33.925Z","extensionVersion":"v3.4.3"}

Keybase proof

I hereby claim:

  • I am jakejarvis on github.
  • I am jakejarvis (https://keybase.io/jakejarvis) on keybase.
  • I have a public key whose fingerprint is 87FB 4B60 06DD 1BEB 3ED4 7FAB D36C B66F 4002 B25B

To claim this, I am signing this object:

@jakejarvis
jakejarvis / forking-branch-for-pull-requests.md
Last active February 19, 2019 16:22
Forking a repo and pushing new branch for pull requests
git init
git clone git@github.com:jakejarvis/twofactorauth.git
git remote add --track master upstream git@github.com:2factorauth/twofactorauth.git
git fetch upstream
git checkout -b add-something upstream/master

# make changes

git add .
@jakejarvis
jakejarvis / reclaimWindows10.ps1
Last active October 28, 2020 15:06 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...