Skip to content

Instantly share code, notes, and snippets.

@weedz
weedz / index.html
Last active July 15, 2023 00:21
password strength indicator (very, very simple)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.flex-col {
@weedz
weedz / userstyle.css
Created July 3, 2023 19:22
Fix youtube video tooltip text
/* This seems to be not working any more ? */
.ytp-tooltip-title.style-scope.ytd-player,
span.ytp-tooltip-text.style-scope.ytd-player{
background-color: #131313;
padding: 0;
}
.ytp-tooltip-title,
.ytp-tooltip-text {
background-color: #131313;
@weedz
weedz / README.md
Last active August 7, 2023 07:44
Change VSCode workbench font

Issue tracking the progress for this in VSCode microsoft/vscode#519.

Edit the file /opt/visual-studio-code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html. Add a <style> tag under <head>:

<style>
    /* Think this is `.windows` or `.mac` if you are not using linux */
    .linux {
 font-family: 'JetBrainsMonoNL Nerd Font Mono' !important;
@weedz
weedz / README.md
Last active September 7, 2023 08:53
Linux screen recording and encoding with ffmpeg

Linux screen recording and encoding with ffmpeg

Hardware

  • CPU: AMD Ryzen 7, 5800X
  • GPU: AMD Radeon 5700XT
  • Memory: 32gb

Terminology

@weedz
weedz / main.js
Last active February 7, 2023 23:02
Electron bug: Wrong app name from getPath("userData")
const { app } = require("electron/main");
console.log(app.getName());
console.log(app.getPath("userData"));
app.whenReady().then(() => {
console.log(app.getName());
console.log(app.getPath("userData"));
app.quit();

Keybase proof

I hereby claim:

  • I am weedz on github.
  • I am weedzcokie (https://keybase.io/weedzcokie) on keybase.
  • I have a public key ASBjdbk5Gc2_KmX7xb5-bI4RiMLipG6NJFgHyVCr2HdSBQo

To claim this, I am signing this object: