Skip to content

Instantly share code, notes, and snippets.

View lzilioli's full-sized avatar
💻
Probably coding

Luke Zilioli lzilioli

💻
Probably coding
View GitHub Profile
@lzilioli
lzilioli / hide.scpt
Last active August 29, 2015 14:01
AppleScripts for stay.app
# hide applications on monitor disconnect
set appNames to ["Spotify", "Mail", "Finder", "Calendar", "HipChat", "Stickies", "Tweetbot", "iTunes", "2Do", "Slack"]
tell application "Finder"
repeat with appName in appNames
if (name of processes) contains appName then
set visible of process appName to false
end if
end repeat
@lzilioli
lzilioli / docker.sh
Last active August 29, 2015 14:07 — forked from drewwells/docker.sh
#!/bin/sh
# Setup boot2docker
DIR=$(pwd)
BASE=$(pwd | sed -n 's/\(\/[^/]*\).*/\1/p')
mkdir -p ~/.boot2docker
if [ ! -f ~/.boot2docker/boot2docker-1.2.0.iso ]; then
curl -L http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso -o ~/.boot2docker/boot2docker-1.2.0.iso
mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker.iso.old
ln -s ~/.boot2docker/boot2docker-1.2.0.iso ~/.boot2docker/boot2docker.iso
@lzilioli
lzilioli / gist:a6ee931ca968d1de5a80
Created January 6, 2015 02:40
Workflow Hacking
@lzilioli
lzilioli / prepare-commit-msg
Created January 30, 2016 18:01
git `prepare-commit-msg` - prepend branch name when branch matches `PROJECT-[0-9]+`
#!/bin/bash
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
BRANCH_MATCHES_PATTERN=0
if [[ $BRANCH_NAME == PROJECT-* ]]
then
BRANCH_MATCHES_PATTERN=1
fi
{
"name": "knksmith57/lnc-identity-call-stack-error",
"description": "example setup for reproducing LnC #235",
"authors": [
{
"name": "Kyle Smith",
"email": "[email protected]"
}
],
"require": {
@lzilioli
lzilioli / README.md
Last active January 26, 2017 16:59
Illustrates issue with if/else blocks in lnc 1.0
$ php --version
PHP 5.6.21 (cli) (built: May  4 2016 04:06:12)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.4.0RC4, Copyright (c) 2002-2016, by Derick Rethans
@lzilioli
lzilioli / README.md
Last active April 8, 2025 23:17
typingmind extension for exporting chats to a zip file

TypingMind Extension - Export Chats

Exports chat history from the typingmind application.

Changelog

2025-03-23

  • cleaned up visual styling for the buttons to match the typingmind sidebar
@lzilioli
lzilioli / README.md
Last active March 23, 2025 18:33
typingmind categorize chat plugin

TypingMind Extension - Chat Categorization Plugin

This plugin enhances your chat application by allowing you to categorize chats into folders directly from the chat interface. It adds a "Categorize Chat" button to your sidebar, making chat organization seamless and efficient.

Changelog

2025-03-23

  • cleaned up visual design of button to match other buttons in typingmind sidebar
@lzilioli
lzilioli / plugin-hide-teams.js
Created March 23, 2025 18:28
TypingMind Plugin to Hide Teams Tab from Sidebar
function hideTeamsTab() {
// Create the style element
const styleElement = document.createElement('style');
// Set the CSS content
styleElement.textContent = `
[data-element-id=workspace-tab-teams] {
display: none;
}
`;