Skip to content

Instantly share code, notes, and snippets.

View geekish's full-sized avatar

Hannah Chartier geekish

View GitHub Profile
@geekish
geekish / keybindings.json
Last active March 13, 2024 17:00
VS Code settings - only a part of my actual settings, for reference
[
{
"key": "ctrl+r",
"when": "findWidgetVisible && !replaceActive",
"command": "editor.action.startFindReplaceAction"
}
]
@geekish
geekish / script.vue
Created December 22, 2023 19:09
Tailwind CSS Keyboard
<template>
<main class="min-w-screen bg-purple-500 text-purple-700 text-xs min-h-screen flex items-center justify-center">
<div class="bg-purple-700 p-3 rounded-lg border-2 border-t-purple-600 border-x-purple-800 border-b-purple-900 shadow-lg">
<div class="p-1 bg-purple-900 rounded overflow-hidden">
<div class="flex space-x-[2px]">
<div
v-for="key in keys"
v-if="key.row === '1'"
:key="key.label"
class="h-10 min-w-10"
@geekish
geekish / .tmux.conf
Last active August 18, 2020 14:58
Homestead after scripts & dotfiles
if-shell "[[ ! -d ~/.tmux/plugins/tpm ]]" \
'run-shell "mkdir -p ~/.tmux/plugins/tpm"; \
run-shell "git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm"'
# set Zsh as your default Tmux shell
set-option -g default-shell /usr/bin/zsh
# Tmux should be pretty, we need 256 color for that
set -g default-terminal "screen-256color"
@geekish
geekish / snippets.cson
Created July 28, 2020 14:54
Atom snippets for Statamic's Antlers language
'.text.html.statamic':
'antlers-404':
'prefix': '404'
'body': '{{ 404 }}$0'
'antlers-asset':
'prefix': 'asset'
'body': '{{ asset url="${1:path}" }}'
'antlers-assets-container':
'prefix': 'assets'
'body': '{{ assets container="${1:handle}" }}\n\t${2:}\n{{ /assets }}$0'
@geekish
geekish / .zshrc
Created February 29, 2020 01:24
Forge server .zshrc
export LANG=en_US.UTF-8
source $HOME/antigen/antigen.zsh
antigen use oh-my-zsh
antigen bundle jessarcher/zsh-artisan
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search
@geekish
geekish / .editorconfig
Created January 15, 2020 00:55
My editorconfig used in 99% of PHP/Laravel projects.
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
@geekish
geekish / io.gitea.web.plist
Created January 10, 2020 02:27
Gitea LaunchAgent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.gitea.web</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
@geekish
geekish / conf.d__default.conf
Last active October 24, 2019 14:57
Nginx configuration
# Default server, with a "hello world" page & phpinfo.
server {
listen 80 default;
server_name localhost;
root /usr/local/var/www/default;
index index.php;
error_log /usr/local/var/log/nginx/default.error.log;
@geekish
geekish / !LaravelMacros.md
Last active May 22, 2018 20:03
Laravel macros
@geekish
geekish / MyGroup.php
Created May 17, 2017 17:38
Slim invokable class as group callable example (PR #2229)
<?php
namespace Example;
use Slim\App;
use SomeDependency;
class MyGroup
{
public function __construct(SomeDependency $dependency)