Skip to content

Instantly share code, notes, and snippets.

@jabofh
jabofh / tp2md.pl
Last active December 14, 2024 16:57
Convert TaskPaper formatted File or Input to Markdown on Standard Output
#!/usr/bin/env perl -T
use strict;
use warnings;
use Getopt::Std;
my $VERSION = "0.0.5";
$Getopt::Std::STANDARD_HELP_VERSION = 1;
#===============================================================================
@swwind
swwind / userChrome.css
Created December 13, 2024 13:18
Firefox userChrome (makes it more radius like edge)
#tabbrowser-tabbox {
padding-right: var(--space-small);
padding-bottom: var(--space-small);
outline: none !important;
box-shadow: none !important;
background-color: var(--toolbar-bgcolor);
}
#tabbrowser-tabpanels {
border-radius: var(--border-radius-medium);
# -*- coding: utf-8 -*-
# Make by x:@BoxMrChen and windsurf ai
import asyncio
import base64
import json
import io
import os
import sys
import pyaudio
@tomdaley92
tomdaley92 / README.md
Last active December 14, 2024 16:51
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

@ky-zo
ky-zo / FloatingMenu.tsx
Created April 23, 2024 09:05
FloatingMenu effect from CopyCopter.ai
//Parent of this component is a div with "fixed" className
'use client'
import { motion, useTransform, useScroll, useSpring, useMotionValueEvent } from 'framer-motion'
const ScrollFloatingAnimation = ({ children }: { children: React.ReactNode }) => {
const { scrollYProgress } = useScroll()
const smoothProgress = useSpring(scrollYProgress, {
mass: 0.5,
function Add-Copy {
param (
[Parameter(
Mandatory = $true,
Position = 0,
HelpMessage = "The path of the file to clone."
)]
[ValidateNotNullOrWhiteSpace()]
[string]$OriginalFilePath,
import asyncio
from enum import Enum
HOST = "127.0.0.1"
PORT = 62775
class Commands(Enum):
UPDATE = 0
LOGOUT = 1
@foolofafitz
foolofafitz / hyprscratch.sh
Last active December 14, 2024 16:43
Little rofi script to create and switch between Hyprland special workspaces
#!/bin/sh
# Usage:
# Put this somewhere in your path, make executable and bind a key to...
# rofi -show scratch -modes "scratch:hyprscratch.sh"
# Requires ripgrep
hc=hyprctl
if [ "$1" = "" ]; then
@BoQsc
BoQsc / reloadGnome.md
Last active December 14, 2024 16:42
Reloading Gnome Desktop Environment via command line

dbus-run-session -- gnome-shell --nested --wayland

busctl --user call \ org.gnome.Shell \ /org/gnome/Shell \ org.gnome.Shell.Extensions ReloadExtension \ s "$name"

@niqdev
niqdev / setup-gradle.md
Last active December 14, 2024 16:41
Setup Gradle on Linux

Setup Gradle

Download

mkdir -p ~/opt/packages/gradle && cd $_
wget https://services.gradle.org/distributions/gradle-3.1-all.zip
unzip gradle-3.1-all.zip

Install and setup