Skip to content

Instantly share code, notes, and snippets.

@nimone
nimone / App.jsx
Created November 13, 2023 09:13
A Modal Component with ReactJS and TailwindCSS
import { useState } from "react"
import Modal from "./components/Modal"
import Trash from "./icons/Trash"
export default function App() {
const [open, setOpen] = useState(false)
return (
<main className="App">
<button className="btn btn-danger" onClick={() => setOpen(true)}>
<Trash /> Delete
@maliubiao
maliubiao / quest2.md
Last active April 16, 2024 04:17
oculus quest 2 / quest 3电脑热点激活教程

原理

  1. quest 2 或者quest 3 连接wifi后连接受限是因为无法发送UDP到国外服务器
  2. 由于墙的干扰, 很多梯子, 都加了混淆 , 不支持udp转发
  3. ss原版, v2ray最新版本支持udp转发

准备工具

  1. 能连无线wifi的电脑
  2. outline client
  3. connectify 热点创建工具, 如果不想用connectify, 请参考知乎教程, 也没问题. windows 10自带热点共享, 不需要connectify.
  4. outline用的ss连接 到justmysocks3.net购买
@zudsniper
zudsniper / OBS_VIRTUAL_WEBCAM_RTSP.md
Created April 15, 2024 07:13
📽️ A chatGPT prompt & response explaining how to use OBS software to read in an RTSP stream as a virtual camera device.

You:

I want to use OBS (Open Broadcaster Software) to create a virtual webcam device that receives realtime video from an RTSP stream on port 554. How do I go about doing this? Give a guide that includes information about both Mac & Windows steps -- that is, to add (mac only) and (windows only) sections in the guide, not provide separate guides for each OS.


ChatGPT:

To use OBS (Open Broadcaster Software) to create a virtual webcam device that receives real-time video from an RTSP stream on port 554, follow these steps. I have included specific steps for both macOS and Windows.

@BuffaloWill
BuffaloWill / cloud_metadata.txt
Last active April 16, 2024 04:15
Cloud Metadata Dictionary useful for SSRF Testing
## IPv6 Tests
http://[::ffff:169.254.169.254]
http://[0:0:0:0:0:ffff:169.254.169.254]
## AWS
# Amazon Web Services (No Header Required)
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 16, 2024 04:14
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jordienr
jordienr / Gradient.js
Created September 12, 2021 00:23
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/
@valterh4ck3r
valterh4ck3r / localization.dart
Last active April 16, 2024 04:13
Portuguese BR Localization Flutter
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/date_symbol_data_local.dart' as intl;
import 'package:intl/intl.dart' as intl;
class _PTBRMaterialLocalizationsDelegate
extends LocalizationsDelegate<MaterialLocalizations> {
@ChristianAlexander
ChristianAlexander / Podcast Transcription.livemd
Created April 12, 2024 23:03
Podcast Transcription LiveBook

Podcast Transcription

Mix.install([
  {:req, "~> 0.4.14"},
  {:fast_rss, "~> 0.5.0"},
  {:bumblebee, "~> 0.5.3"},
  {:exla, "~> 0.7.1"},
  {:kino, "~> 0.12.3"}
])
@samfromcadott
samfromcadott / raylib-bullet.cc
Created June 11, 2023 16:10
Example of using Bullet Physics with raylib
// raylib+Bullet physics
// Sam Jackson
// Partially based off this: https://github.com/bulletphysics/bullet3/blob/master/examples/HelloWorld/HelloWorld.cpp
#include <vector>
#include <btBulletDynamicsCommon.h>
#include <raylib.h>
btDefaultCollisionConfiguration* collision_configuration;
@yrevar
yrevar / imagenet1000_clsidx_to_labels.txt
Last active April 16, 2024 04:08
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',