Skip to content

Instantly share code, notes, and snippets.

View kvizdos's full-sized avatar

Kenton Vizdos kvizdos

View GitHub Profile
@kvizdos
kvizdos / main.go
Created May 20, 2025 18:27
Get data from GoVulnCheck
/*
For demo purposes, run with `GOTOOLCHAIN=go1.24.1 go run main.go` to get the http request smuggling vuln.
go.mod
module github.com/kvizdos/vulncheck-test
go 1.24.1
toolchain go1.23.0
@kvizdos
kvizdos / skeleton.directive.ts
Created February 2, 2025 00:09
LitJS Skeleton Loader
import { ChildPart, directive, PartInfo, PartType } from 'lit/directive.js';
import { AsyncDirective } from 'lit/async-directive.js';
import { html, noChange, TemplateResult } from 'lit';
import { until } from 'lit/directives/until.js';
class SkeletonDirective extends AsyncDirective {
private loadGracePeriod: number = 100;
private gracePeriodPromise: Promise<any> | undefined = undefined;
// ==UserScript==
// @name Promotion Blocker
// @description Disable Promotions
// @author Kenton
// @match https://twitter.com/*
// @include https://twitter.com/*
// ==/UserScript==
setInterval(function() {
var promotedTweets = document.querySelectorAll(".js-promoted-badge");

Keybase proof

I hereby claim:

  • I am kvizdos on github.
  • I am kvizdos (https://keybase.io/kvizdos) on keybase.
  • I have a public key ASDaKebUWDeBJlnya8Ib8O_4R4djAglhavCTLHdZW1apsgo

To claim this, I am signing this object:

"Express Boilerplate": {
"prefix": "ebp",
"body": [
"// Install body-parser and Express",
"const express = require('express')",
"const app = express()",
"",
"var bodyParser = require('body-parser')",
"",
"// Use req.query to read values!!",
#deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
<html>
<head>
<title>this is bad formatting</title>
</head>
<body>
<p>Hello World :D</p>
<p>How are you today?</p>
<div>
<h1>Hello</h1>
@EventHandler
public void onLeashEvent(PlayerLeashEntityEvent e) {
Player p = e.getPlayer();
if(e.getEntity().getType().toString().equals("SHEEP")) {
p.sendMessage("You have captured a sheep!");
}
if(e.getEntity().getType().toString().equals("PIG")) {
p.sendMessage(ChatColor.LIGHT_PURPLE + "You have captured a pig!");
@EventHandler
public void blockExEvent(PlayerBedEnterEvent e) {
Player p = e.getPlayer();
Block b = e.getBed();
b.breakNaturally();
e.setCancelled(true);
p.sendMessage("No no no!");
}
// IN YOUR ON ENABLE:
getCommand("<cmd>").setExecutor(new <cmd-path>());
// IN YOUR <cmd-path> FILE:
// MAKE SURE TO IMPLEMENT CommandExecutor!
@Override
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player p = (Player) sender;
if(cmd.getName().equalsIgnoreCase("<cmd>") && sender.hasPermission("<perm-node>")) {
if(args.length == 0) {