Skip to content

Instantly share code, notes, and snippets.

View phiter's full-sized avatar
💭
Probably working on something cool

Phiter Fernandes phiter

💭
Probably working on something cool
View GitHub Profile
@phiter
phiter / hide-cats-and-pigeons.user.js
Created September 16, 2024 17:57
hide posts with cats and pigeons on bluesky
// ==UserScript==
// @name BlueSky Hide Videos with Cat or Pigeon (CSS)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hides video tags based on src attribute containing 'cat' or 'pigeon' on BlueSky using CSS
// @author You
// @match https://bsky.app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app
// @grant GM_addStyle
// ==/UserScript==
@phiter
phiter / karabiner.json
Created December 2, 2022 15:13
Karabiner
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@phiter
phiter / docgen.js
Last active March 4, 2022 19:29
Generate vetur component tags with vue-docgen-api
const { promisify } = require('util');
const fs = require('fs');
const glob = promisify(require('glob'));
const { parse } = require('vue-docgen-api');
const convertToKebabCase = str => (
str
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
.map(x => x.toLowerCase())
.join('-')