Skip to content

Instantly share code, notes, and snippets.

@parterburn
parterburn / custom_warp_script.applescript
Created September 27, 2022 16:51
An easy way to use the Warp terminal (https://www.warp.dev/) with Alfred.
-- For the latest version:
-- https://gist.github.com/parterburn/e832b9090ee35eb830529de8bd978b82
-- Set this property to true to always open in a new window
property open_in_new_window : false
-- Set this property to false to reuse the current tab
property open_in_new_tab : true
-- Handlers
@mpociot
mpociot / README.md
Last active April 5, 2025 13:09
A Scriptable widget to show the upcoming Laracon talks

Laracon Scriptable Widget

Usage

  1. Install and download the free Scriptable app on your iOS device.
  2. Inside the app, press the "Plus" icon to create a new script
  3. Paste the content of the JS file into the script
  4. Place a Scriptable widget on your home screen
javascript:(() => {
const requestURL = "http://127.0.0.1:8080/api/readingList";
const token = "dfgkjlhsdfgkljghklhj";
const pageTitle = document.title;
const pageURL = window.location.href;
let metaImage = "";
let metaDescription = "";
function getMetaValue(propName) {
@jerone
jerone / README.md
Last active July 19, 2024 16:40
AdBlock filter containing rules for a.o. Marktplaats.nl
@LeCoupa
LeCoupa / shell_aliases
Last active July 18, 2026 15:06
Shell Aliases
##############################################################################
# SHELL ALIASES
# ADD TO .bashrc OR .zshrc
##############################################################################
# Capacitor
alias csync="npx cap sync"
alias cios="npx cap open ios"
alias cand="npx cap open android"
@ttscoff
ttscoff / 256color.rb
Last active May 22, 2026 08:31
256-color hex intepretation for terminal colorization
#!/usr/bin/env ruby
# frozen_string_literal: true
# 256-color hex interpretation for terminal colorization
#
# Usage
# "text".color256(foreground, background)
#
# print "Colorize this".color256('#f7921e', '#666')
@spencerwooo
spencerwooo / resinWidget.js
Last active December 6, 2022 22:57
Current Resin for Genshin Impact
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-brown; icon-glyph: magic;
const config = new Array()
// ========= ↓将生成的配置粘贴这以下↓=========
config[0] = "" // uid
config[1] = "cn_gf01" // cn_gf01 天空岛 or cn_qd01 世界树
config[2] = "" // cookie
// ========= ↑将生成的配置粘贴这以上↑ ========
@gildas-lormeau
gildas-lormeau / README.MD
Last active January 15, 2026 03:10
CLI to transform a SingleFileZ page into a SingleFile page
@mpociot
mpociot / README.md
Last active December 6, 2022 22:46
console.style

Use Tailwind classes in console.log

This script adds a new method called console.style to the global console object, that allows you to style a string - followed by Tailwind CSS classes to apply to this string.

For example:

console.style("I am styled", "p-4 bg-black text-white text-2xl");
@amirsaam
amirsaam / SubCounter.js
Last active October 29, 2023 00:52 — forked from spencerwooo/termiWidget.js
🤖 SubCounter | Terminal-like Widget for Scriptable iOS made with SubStats v2 API
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: terminal;
// SubCounter.js for Scriptable: https://github.com/amirsaam/SubCounter-for-Scriptable
// Change NULL to your prefered Terminal username (only lowercase) you geek!
const user = "NULL"
// Change NULL to your usernames