Skip to content

Instantly share code, notes, and snippets.

@raulqf
raulqf / Install_OpenCV4_CUDA11_CUDNN8.md
Last active April 18, 2024 19:53
How to install OpenCV 4.5 with CUDA 11.2 in Ubuntu 22.04

How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 22.04

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

@PatrickLang
PatrickLang / win10_slipstream.md
Last active April 18, 2024 19:52
Building an up to date Windows 10 VHDX
@bivoje
bivoje / TIS-100_Reference_Manual_kor.md
Last active April 18, 2024 19:52
Markdown 포맷으로 변환된 TIS-100 매뉴얼 한국어 번역

TIS-100

Tessellated Intelligence System


레퍼런스 매뉴얼

음--

Copy ChatGPT Transcript as markdown

javascript:void (async () => { let { default: TD } = await import("https://cdn.skypack.dev/turndown");  let json = [   ...document.querySelectorAll(".text-base"), ].map((i) => ({   html: i.innerHTML,   text: i.innerText,   markdown: new TD().turndown(i),   isPrompt: !i.querySelector(".prose"), }));  window.open(   URL.createObjectURL(     new Blob(       [         json           .map((i) =>             i.isPrompt ? `**Prompt**: ${i.text}` : `**ChatGPT**: ${i.markdown}`           )           .join("\n\n"),       ],       { type: "text/plain" }     )   ) ); })()

Google answer

Get a quick answer from google for any question

(async function answer(q) {
  var html = await fetch(
    `https://cors.explosionscratc.repl.co/google.com/search?q=${encodeURI(q)}`,
@milkbottlelough
milkbottlelough / custom.scss.liquid
Last active April 18, 2024 19:50
Klaviyo Custom Form Integration
/*------------------------------------------------
KLAVIYO signup form
------------------------------------------------*/
.klaviyo_styling{
max-width: none;
}
.klaviyo-form-wrap.klaviyo_form_actions {
text-align: left;
@brandonko
brandonko / html_to_text_beautifulsoup.py
Last active April 18, 2024 19:46
BeautifulSoup HTML Text Extractor
from bs4 import BeautifulSoup
# Returns the text from a HTML file based on specified tags
def parse_html(html_path):
with open(html_path, 'r') as fr:
html_content = fr.read()
soup = BeautifulSoup(html_content, 'html.parser')
# Check that file is valid HTML
if not soup.find():
@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active April 18, 2024 19:43
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@unitycoder
unitycoder / DrawBounds.cs
Last active April 18, 2024 19:40
Draw Bounds with Debug.DrawLine , Draw Box, Draw Runtime Gizmos
void DrawBounds(Bounds b, float delay=0)
{
// bottom
var p1 = new Vector3(b.min.x, b.min.y, b.min.z);
var p2 = new Vector3(b.max.x, b.min.y, b.min.z);
var p3 = new Vector3(b.max.x, b.min.y, b.max.z);
var p4 = new Vector3(b.min.x, b.min.y, b.max.z);
Debug.DrawLine(p1, p2, Color.blue, delay);
Debug.DrawLine(p2, p3, Color.red, delay);
@71
71 / boorkmarklet.md
Last active April 18, 2024 19:39
Lists all participants in a Google Meet meeting.

The following bookmarket shows a popup with the name of the participants separated by newlines.

javascript:-function(maxStrLength = 2000) { try { function findParticipants(current, depth = 0) { if (depth > 7) return; if (typeof current !== "object" || current === null || current === window) return; const descriptors = Object.getOwnPropertyDescriptors(current); for (const prop in descriptors) { if (prop.startsWith('["spaces/')) return Object.values(current); const item = findParticipants(descriptors[prop].value, depth + 1); if (item !== undefined) return item; } } const rootState = Object.entries(window).find(x => x[0].startsWith("closure_lm_"))[1], participants = findParticipants(rootState), names = []; function findName(obj) { for (const prop in obj) { const value = obj[prop]; if (typeof value === "object" && value !== null && typeof value[1] === "string") return value[1]; } } for (let i = 0; i < participants.length; i++) { const name = findName(participants[i]); if (names.indexOf(name) === -1) names.
@LukeMathWalker
LukeMathWalker / audit.yml
Last active April 18, 2024 19:36
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit: