Skip to content

Instantly share code, notes, and snippets.

View teachjing's full-sized avatar

TeachJing teachjing

View GitHub Profile
{
"version": "2",
"templates": [
{
"type": 1,
"title": "Registry",
"description": "Docker image registry",
"categories": ["docker"],
"platform": "linux",
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/registry.png",
@teachjing
teachjing / templates.json
Last active July 14, 2022 08:26
template.json
{
"version": "2",
"templates": [
{
"type": 1,
"platform": "linux",
"network": "redcloud_default",
"title": "Metasploit - Nightly",
"description": "Official bare Metasploit Alpine build. Includes beta features from dev branch.",
"name": "red_msf-dev",
@teachjing
teachjing / onload_windows_popup.js
Last active April 29, 2022 20:16
Javascript - Snippets
window.onload = function() {
var s = document.createElement('script');
s.type = 'text/javascript';
var code = 'alert("hello world!");';
try {
s.appendChild(document.createTextNode(code));
document.body.appendChild(s);
} catch (e) {
s.text = code;
document.body.appendChild(s);
@teachjing
teachjing / README.md
Last active January 16, 2023 23:18
HTML Code Snippets

Embedding Gist

Embed Gist Example

@teachjing
teachjing / README.md
Last active April 29, 2022 13:33
SVG - Collection of SVG renders

Collection of SVG I collected that were rendered

test

@teachjing
teachjing / Get-TablesFromWebRequest.ps1
Last active May 13, 2022 16:34
PowerShell - Sort a PowerShell Custom Object property key names
function Get-TablesFromWebRequest {
param(
[Parameter(Mandatory = $true)]
[Microsoft.PowerShell.Commands.HtmlWebResponseObject] $WebRequest,
[Parameter(Mandatory = $true)]
[int] $TableNumber
)
## Extract the tables out of the web request