I hereby claim:
- I am travismiller on github.
- I am travismiller (https://keybase.io/travismiller) on keybase.
- I have a public key ASA_hqKiWgImuQ2IwpvgHkZNUzx170EgPxSL-MFDFdJQ7wo
To claim this, I am signing this object:
// DefaultMailSwitcher.swift | |
// https://apple.stackexchange.com/a/455015 | |
import Cocoa | |
// https://stackoverflow.com/a/59357395/1596013 | |
class StandardError: TextOutputStream { | |
func write(_ string: String) { | |
try! FileHandle.standardError.write(contentsOf: Data(string.utf8)) | |
} |
# frozen_string_literal: true | |
## Usage: | |
## | |
## $ irb -r './copy_pasta' | |
## irb(main):001:0> CopyPasta.pbpaste | |
## => "paste from existing clipboard" | |
## irb(main):002:0> CopyPasta.pbcopy 'a' | |
## => "a" | |
## irb(main):003:0> CopyPasta.pbpaste |
#!/usr/bin/env bash | |
## Convert a DSN url to PG environment variables | |
## | |
## Usage: | |
## | |
## # Use PGDSN environment variable | |
## $ PGDSN='postgresql://user:pass@host:port/database' pgdsn psql | |
## | |
## # Use DATABASE_URL environment variable (PGDSN has priority) |
# Powerlevel10k prompt segments for rtx | |
# | |
# https://github.com/romkatv/powerlevel10k | |
# https://github.com/jdxcode/rtx | |
# [Feature request: add segment for rtx](https://github.com/romkatv/powerlevel10k/issues/2212) | |
# | |
# Usage in ~/.zshrc: | |
# | |
# # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
# [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh |
# Create milestones for TPS GitHub repositories | |
# | |
# References: | |
# | |
# - https://docs.github.com/en/rest/issues/milestones#create-a-milestone | |
# | |
# Requires: | |
# | |
# - ENV: GITHUB_TOKEN | |
# - curl |
FROM node:slim | |
ENV DEFAULT_PATH "$PATH" | |
ENV NODE_PATH "/home/node/lib/node_modules" | |
ENV PATH "/home/node/app/node_modules/.bin:/home/node/lib/node_modules/.bin:$DEFAULT_PATH" | |
USER node | |
WORKDIR /home/node/lib | |
COPY --chown=node package*.json ./ |
#!/usr/bin/env bash | |
set -e | |
set -x | |
cd /tmp | |
sudo apt-get update | |
sudo apt-get install -y libgconf-2-4 libarchive13 mono-devel libnss3 flatpak |
# Find the longest genetic palindromic sequence | |
# https://en.wikipedia.org/wiki/Palindromic_sequence | |
# ________ | |
# input: 'ACCTAGGT' | |
# index: 0 | |
# length: 8 | |
# palindrome: 'TGGATCCA' |
I hereby claim:
To claim this, I am signing this object:
# Shell Aliases | |
## dynamic ssh config | |
if [ -f ~/.ssh/broco-ssh-config/bash.alias ]; then | |
source ~/.ssh/broco-ssh-config/bash.alias | |
fi | |
## ls | |
alias ls='ls -G' | |
alias ll='ls -G -l' |