Skip to content

Instantly share code, notes, and snippets.

@gaggle
gaggle / copilot_aliases.sh
Last active November 24, 2023 13:01
GitHub CLI Copilot Aliases
alias computer='function _st_computer(){ gh copilot suggest -t shell "In the tone of the Star Trek computer, $@"; };_st_computer'
alias data='function _data(){ gh copilot suggest -t shell "In the tone of Lieutenant Commander Data from Star Trek, $@"; };_data'
alias HAL='function _hal_computer(){ gh copilot suggest -t shell "In the tone of HAL 9000, $@"; };_hal_computer'
alias jarvis='function _jarvis(){ gh copilot suggest -t shell "In the tone of J.A.R.V.I.S. from Iron Man, $@"; };_jarvis'
alias kitt='function _kitt(){ gh copilot suggest -t shell "In the tone of K.I.T.T. from Knight Rider, $@"; };_kitt'
alias gideon='function _gideon(){ gh copilot suggest -t shell "In the tone of Gideon from The Flash, $@"; };_gideon'
alias tars='function _tars(){ gh copilot suggest -t shell "In the tone of TARS from Interstellar, $@"; };_tars'
alias wopr='function _wopr(){ gh copilot suggest -t shell "In the tone of WOPR from WarGames, $@"; };_wopr'
alias mother='function _mother(){ gh copilot suggest -t shell "In the tone
@gaggle
gaggle / Dockerfile
Created August 29, 2021 21:17
Prototyping pnpm & Docker
FROM node:16-alpine AS base
ARG PNPM_VERSION=6.14.3
RUN npm --global install pnpm@${PNPM_VERSION}
WORKDIR /root/monorepo
FROM base AS dev
ARG PACKAGE_PATH
ENV CI=true
COPY ./meta .
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store\
@gaggle
gaggle / .zshrc
Created March 2, 2021 12:27
Script for pruning Git branches (designed to work on MacOS 11 and newer). Works with base branch "master" or "main" and you choose whether to prune remote AND local branches, or only local branches.
alias git-remove-merged="git-remove-merged.sh"
@gaggle
gaggle / Foo.proto
Created May 23, 2019 21:53
Foo protobuf
syntax = "proto3";
package Foo;
message FooRequest {
int32 limit = 4;
int64 from = 5;
}
FROM sualeh/schemacrawler
COPY schemacrawler.config.properties config/schemacrawler.config.properties
@gaggle
gaggle / fridge-stocking.git
Created February 20, 2017 22:28
fridge-stocking.git
sodas.json
[
{
"name": "sparkling water",
"quantity": 10
},
{
"name": "red bull zero",
"quantity": 10
}
@gaggle
gaggle / page.js
Created December 9, 2016 18:38
WebdriverIO page objects
class Page {
open(path = null) {
return browser.url(path || "/")
}
size(size) {
return browser.setViewportSize({
width: size.width,
height: size.height
})
@gaggle
gaggle / blog.test.js
Last active December 9, 2016 18:39
WebdriverIO test
describe("blog", () => {
it(`has links to home and blog`, () => {
BlogPage.open()
expect(HeaderPage.home_link.isVisible()).to.be.true
expect(HeaderPage.blog_link.isVisible()).to.be.true
})
}