Skip to content

Instantly share code, notes, and snippets.

@ianschmitz
ianschmitz / worker.ts
Created December 14, 2023 21:19
Cloudflare Workers AI proxy example
// This is an example endpoint built for use on Cloudflare Workers using the Hono app.
// This example uses Cloudflare AI to run their hosted llama model,
// but could easily be tweaked to suit consuming the OpenAI SDK directly.
// You could also just use the `fetch` API directly and skip using the SDK as well,
// you'd just have to set the appropriate HTTP headers and query params (API key, etc)
// See second example for a simpler case.
// References:
// - https://developers.cloudflare.com/workers/runtime-apis/streams/
// - https://developers.cloudflare.com/workers/platform/pricing/
// - For Cloudflare AI usage within worker: https://developers.cloudflare.com/workers-ai/platform/bindings/
@Fortyseven
Fortyseven / 2019-05-17-open-sez-me.csv
Created May 17, 2019 14:10
Scraped data from Open Sez Me in CSV format, 2019-05-17
manufacturer product version port-protocol username default-password impact notes
_Top 26 Most Used Passwords # 2 123456 No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 3 12345678 No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 4 qwerty No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 5 abc123 No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 6 monkey No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 7 1234567 No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 8 letmein No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords # 9 trustno1 No it's not "love" "sex" "secret" or "god".
_Top 26 Most Used Passwords #10 dragon No it's not "love" "sex" "secret" or "god".
@Darksonn
Darksonn / Cargo.toml
Last active November 10, 2022 20:49
Hyper example
[package]
name = "hyperexample"
version = "0.1.0"
authors = ["Alice Ryhl <alice@ryhl.io>"]
edition = "2018"
[dependencies]
hyper = "0.12"
hyper-tls = "0.3"
tokio = "0.1"
@SoarLin
SoarLin / lambda-get-ip.js
Created September 2, 2018 08:01
AWS Lambda Function to Get Internet IP
const http = require('http');
exports.handler = function(event, context, callback) {
const option = {
"hostname": "api.ipify.org",
"path": "/?format=JSON",
"method": "GET"
};
callback(null, Request(option).
[package]
name = "hyper02"
version = "0.1.0"
authors = ["fliar"]
[dependencies]
hyper-tls = "0.3.0"
futures = "0.1.22"
tokio = "0.1"
hyper = "0.12"
@jkjung-avt
jkjung-avt / openalpr_camera.py
Last active May 5, 2024 12:28
Real-time license plate recognition with 'openalpr' using a video file as input. Please check out my "Building and Testing 'openalpr' on Jetson TX2" post for more information: https://jkjung-avt.github.io/openalpr-on-tx2/
# test_camera.py
#
# Open an RTSP stream and feed image frames to 'openalpr'
# for real-time license plate recognition.
import numpy as np
import cv2
from openalpr import Alpr
@Gadgetoid
Gadgetoid / README.md
Last active February 20, 2023 09:35
Raspberry Pi Zero / Windows 10 automatic RNDIS driver install for composite gadgets

Preface

I owe my very rapid learning journey in the world of ConfigFs to several key sources which aren't necessarily relevant to this result, but I feel deserve a mention anyway.

@jschlyter
jschlyter / certstream2logstalgia.sh
Last active December 4, 2017 03:05
Certstream + Logstalgia = True
#!/bin/sh
certstream --json |\
jq -r '.data | [ (.seen|floor|tostring), .leaf_cert.all_domains[0], .chain[0].subject.CN, "200", "0" ] | join("|")' |\
logstalgia
@clarketm
clarketm / google-dorks
Created January 30, 2017 10:01 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@xbb
xbb / README
Last active April 17, 2024 20:21
IDRAC6 Virtual Console Launcher
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You can use the user and password that you use for the web interface.
You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS.
You don't need to install it, just extract it or copy the files in "jre" folder.
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor.
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture.
Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs.