Skip to content

Instantly share code, notes, and snippets.

View pevd950's full-sized avatar

Pablo Valero pevd950

View GitHub Profile
@pevd950
pevd950 / dom3d.js
Created August 7, 2024 14:35 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
{
"manipulators": [
{
"description": "Change caps_lock to command+control+option+shift.",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Load Global Protect
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🤖
#!/usr/bin/env python3
require "json"
require "active_support/all"
codespaces = JSON.parse!(`gh cs list --json name,lastUsedAt`)
codespaces.each do |codespace|
if codespace["lastUsedAt"].to_date < 7.days.ago
puts "Deleting #{codespace["name"]}..."
@pevd950
pevd950 / Create PR Reminder.user.js
Created November 9, 2023 17:16
Gets PR title and URL and uses url scheme to call iOS Shortcut that parses the text and adds as a reminder
// ==UserScript==
// @name Create PR Reminder
// @description This is your new file, start writing code
// @match https://github.com/*/*/pull/*
// ==/UserScript==
(function () {
"use strict";
function addButton() {
@pevd950
pevd950 / gist:2725868f27684fb34d5c970bfe64022b
Last active October 28, 2022 14:44
Delete all docker images
images=$(docker ps -a)
if [ -n "$images" ]; then
docker rm $(docker ps -a -q)
fi