Skip to content

Instantly share code, notes, and snippets.

View davidroman0O's full-sized avatar
🏠
Working from home

David Roman davidroman0O

🏠
Working from home
View GitHub Profile
@davidroman0O
davidroman0O / script.js
Created September 26, 2024 22:26
Anthropic Claude AI - Remove all knowledge
// I was so tired of clicking
const uls = document.querySelectorAll('ul');
uls.forEach(ul => {
const buttons = ul.querySelectorAll('button[aria-label="Remove from project knowledge"]');
buttons.forEach(button => button.click());
});
@davidroman0O
davidroman0O / client.go
Created September 1, 2024 21:53
Experiment on using etcd for a library i'm putting together
package main
import (
"context"
"encoding/json"
"flag"
"fmt"
"log"
"net"
"net/url"
@davidroman0O
davidroman0O / Dockerfile
Last active July 19, 2024 21:57
mgmt under osx with devcontainer
FROM ubuntu:latest
# Install dependencies
RUN apt-get update && \
apt-get install -y \
golang-go \
git \
build-essential \
curl \
vim \
@davidroman0O
davidroman0O / readme.md
Last active November 22, 2023 13:07
Delete all "Watch later" videos

It's semi-automated at worse, automated at best

open browser

open inspector on console

copy paste, enter

wait

@davidroman0O
davidroman0O / README.md
Created March 24, 2022 16:20 — forked from josephg/README.md
Getting Zig compiling to WASM

In case anyone else wants to play with Zig on webassembly, here's what you need to do to make it work on a mac today.

1. Get LLVM 7 compiled with webassembly support.

You'll need LLVM to output to the WASM target. This has just been added by default in trunk, so if LLVM >7 is available, you might be able to just brew install llvm.

If you have wasm support already you should see:

$ llc --version
@davidroman0O
davidroman0O / css-size-comparison.csv
Created February 27, 2022 02:30 — forked from shqld/css-size-comparison.csv
A comparison of CSS library sizes.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
Caution,Name,Version,Size (raw),Size (minified),Size (gzipped),"Site","URL",Remarks
,Milligram,v1.4.1,11 kb,9.0 kb,2.3 kb,"https://milligram.io/","https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.min.css",
,Skelton,v2.0.4,11 kb,5.8 kb,1.6 kb,"http://getskeleton.com/","https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css",
,Material Design Lite,v1.3.0,146 kb,62 kb,12 kb,"https://getmdl.io/","https://code.getmdl.io/1.3.0/material.min.js",
,Foundation,v6.6.3,168 kb,133 kb,17 kb,"https://get.foundation/","https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css",
,Materialize,v1.0.0,179 kb,141 kb,21 kb,"https://materializecss.com/","https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css",
,Bootstrap,v4.6.0,199 kb,161 kb,24 kb,"https://getbootstrap.com/docs/4.6/","https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
,Bootstrap,v5.1.2,206 kb,164 kb,24 kb,"https://getbootstrap.com/","https://cdn.jsdelivr.net/npm/b
@davidroman0O
davidroman0O / pipeline.js
Created August 15, 2019 21:01
Pipelines with bluebird
const Promise = require("bluebird");
// It's that simple
const Pipeline = async a => {
return await Promise.reduce(
a.slice(1, a.length),
(ac, cv) => {
return cv(ac);
},
a[0]
@davidroman0O
davidroman0O / Dockerfile
Created April 16, 2019 19:35
Moleculer Jest Setup for docker-compose unit testing
FROM node:8-alpine
ENV NODE_ENV=production
RUN mkdir /app
WORKDIR /app
COPY package.json .
RUN npm install --production
@davidroman0O
davidroman0O / LazyView.js
Last active May 8, 2017 22:26
React Native Lazy View
import React from 'react';
import {View } from 'react-native';
/*
@description: for lazy people who don't give a fuck on performances
it's working for only ONE child!
<LazyView topleft|top|topright|left|center|right|bottomleft|bottom|right>
<View
style={{
@davidroman0O
davidroman0O / Commands.sh
Created April 29, 2017 19:14
Medium Commands
npm install
yarn start