Skip to content

Instantly share code, notes, and snippets.

@cadoo
cadoo / chatgpt-robots.txt
Created August 30, 2023 14:34
Disallowing GPTBot
User-agent: GPTBot
Disallow: /
@cadoo
cadoo / oklch.css
Created August 30, 2023 13:54
OKLCH colors with fallback
html {
--brandYellow: hsl(53.81 97% 58%);
background: var(--brandYellow);
}
@supports (color: oklch(0% 0 0)) {
html {
--brandYellow: oklch(91.91% 0.22 102.16);
}
}
import os
from psycopg2.pool import ThreadedConnectionPool
class ProcessSafePoolManager:
def __init__(self, *args, **kwargs):
self.last_seen_process_id = os.getpid()
self.args = args
self.kwargs = kwargs
@ruvnet
ruvnet / Research.md
Last active December 22, 2024 22:41
The Emergence of Malicious Large Language Models (LLMs) and the Next Frontier of Symbolic-AI Integration: A Comprehensive Research Paper Ab

Title:

The Emergence of Malicious Large Language Models (LLMs) and the Next Frontier of Symbolic-AI Integration: A Comprehensive Research Paper


Abstract

This research paper explores the rapid rise of malicious Large Language Models (LLMs)—often termed “Dark LLMs”—designed explicitly for cybercrime.

Building on prior analyses, we update the discourse to address critical gaps in existing research, focusing on model profiling, economic drivers, regulatory challenges, and advanced AI concepts such as symbolic reasoning and consciousness prompts.

@johnpolacek
johnpolacek / AnimateIn.tsx
Last active December 22, 2024 22:38
Utility React UI Component for animating elements in with Tailwind and CSS Animation and plays nicely with shadcn
import React, { useEffect, useState } from "react";
import cn from "mxcn";
// or if using shadcn:
// import { cn } from "@/lib/utils"; // https://github.com/shadcn-ui/ui/blob/main/apps/www/lib/utils.ts
const AnimateIn = ({
children,
delay = 0,
duration = 500,
className = "",
@fitorec
fitorec / youtube-dl.py
Created November 11, 2009 12:33
youtube-dl.py descarga videos de youtube
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Ricardo Garcia Gonzalez
# Author: Danny Colligan
# License: Public domain code
import htmlentitydefs
import httplib
import locale
import math
import netrc
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <string.h>
#define JIT_ALLOC_FUNC(size) \
(u8 *)mmap(NULL, size, PROT_READ|PROT_WRITE|PROT_EXEC, \
(MAP_PRIVATE|MAP_ANON), -1, 0)
typedef unsigned char u8;
@nessus42
nessus42 / destiny-networking-primer3.md
Created January 18, 2018 22:37
Destiny Networking Primer: Why does Destiny 1 do P2P mesh networking?

Destiny Networking Primer: Why does Destiny 1 do P2P mesh networking?

Executive Summary

Destiny 1 maintains a P2P mesh so that other players won't appear frozen in place during a host migration.

Or at least that's my educated guess.

@FreddieOliveira
FreddieOliveira / docker.md
Last active December 22, 2024 22:34
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@olitreadwell
olitreadwell / 2023-07-29-ip-passthrough-guide.md
Created July 29, 2023 17:16
2023-07-29-ip-passthrough-guide