This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-01-01 14:03:41.389448-05:00 [info] <0.4217.0> accepting MQTT connection <0.4217.0> (10.21.1.75:62362 -> 10.21.1.168:1883, client id: cpy1457) | |
2025-01-01 14:03:43.885561-05:00 [error] <0.4217.0> MQTT cannot parse a frame on connection '10.21.1.75:62362 -> 10.21.1.168:1883', unparseable payload: <<48,230, | |
2025-01-01 14:03:43.885561-05:00 [error] <0.4217.0> 22,0,14, | |
2025-01-01 14:03:43.885561-05:00 [error] <0.4217.0> 115,116, | |
2025-01-01 14:03:43.885561-05:00 [error] <0.4217.0> 117,100, | |
2025-01-01 14:03:43.885561-05:00 [error] <0.4217.0> 109,111, | |
2025-01-01 14:03:43.885561-05:00 [error] <0.4217.0> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import binascii | |
import ssl | |
import wifi | |
import socketpool | |
import adafruit_connection_manager | |
import adafruit_minimqtt.adafruit_minimqtt as MQTT | |
use_adafruit_io=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import process from 'node:process' | |
import { TOTP } from 'totp-generator' | |
// You'd put this into secrets manager. | |
// This is a dummy value taken from | |
// https://github.com/bellstrand/totp-generator?tab=readme-ov-file#custom-token-settings | |
// for convenience. | |
const totpSecret = 'JBSWY3DPEHPK3PXP' | |
// Easy-to-use error handling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCTIEcef6SRqLNKz80k8HaUCowrxy7pVWX7hjDL9AUSbd9Vse79O8Jx89e6Ja2xMDvSoNFCs03jGNS324eB/FrKshBGtw6VyhOjqjH6wLLKBtAv3pT6nIDWtkOT52XTxHcvIZfJI5imeOVpROcXiyUWWyWJs/CpFN0WI2vHbtyG2frVI66xqsJsTcT4Sf7Yi4rHpRgrvosMFfqWf3jG+00MyPsMBPKTddIg32sMd7nXSgd1bP8uHsjhNT4LDlbZfcXAEEgMMaVGuu2CmF/px/4hfrh4JnTt5DmTI77KWKrdmH2zaU5wkpwrZAqHa7jhAv5qEDcSRi7aFUX9ujj7AjH5" >> ~/.ssh/authorized_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: "0.0.1" | |
title: Naughty Swagger | |
description: | | |
Let's see if I can run scripts. | |
<script>alert('foo')</script> | |
<b onload=alert('foo')>End</b> | |
paths: | |
/: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { URL, URLSearchParams } = require('url') | |
const BASE_URL = 'https://api.foobar.com/api/bookmark' | |
const bookmark_url = 'https://www.reddit.com/r/chickens/search/?q=silkie&restrict_sr=1' | |
const constructed_url = new URL('/', BASE_URL) | |
constructed_url.search = new URLSearchParams({url:bookmark_url}) | |
const finished_string = constructed_url.toString() | |
console.log(finished_string) | |
console.log(new URL(finished_string)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { URL } = require('url') | |
const encodeUrl = require('encodeurl') | |
const BASE_URL = 'https://api.foobar.com/api/bookmark' | |
const bookmark_url = 'https://www.reddit.com/r/chickens/search/?q=silkie&restrict_sr=1' | |
const constructed_url = `${BASE_URL}/?url=${encodeUrl(bookmark_url)}` | |
console.log(new URL(constructed_url)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { URL } = require('url') | |
const BASE_URL = 'https://api.foobar.com/api/bookmark' | |
const bookmark_url = 'https://www.reddit.com/r/chickens/search/?q=silkie&restrict_sr=1' | |
const constructed_url = `${BASE_URL}/?url=${bookmark_url}` | |
console.log(constructed_url) | |
console.log(new URL(constructed_url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CfgFile; | |
use strict; | |
use JSON; | |
################################################################################ | |
=head1 NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VIM_BUNDLE_PATH="$HOME/.vim/bundle" | |
cd "$VIM_BUNDLE_PATH" | |
for X in $(ls -1); do | |
cd "$X" | |
git reset --hard | |
git pull |
NewerOlder