Skip to content

Instantly share code, notes, and snippets.

@julieqiu
julieqiu / gist:994a73d48672609d9bc26ac77daf7695
Created January 3, 2024 13:22
all.bash for Python repos
#!/bin/bash
set -e
err() { echo -e "${RED}$@${NORMAL}" 1>&2; EXIT_CODE=1; }
# runcmd prints an info log describing the command that is about to be run, and
# then runs it. It sets EXIT_CODE to non-zero if the command fails, but does not exit
# the script.
runcmd() {
package main
import (
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"io/ioutil"
"os"
)
func main() {
~/go/src/golang.org/x/pkgsite master ⇡1 ?1 ❯ ./all.bash ✘ INT 12:08:17 PM
Checking staged files for license header
Checking internal files for license header
Checking for bad migrations
$ staticcheck golang.org/x/pkgsite/cmd/frontend golang.org/x/pkgsite/cmd/prober golang.org/x/pkgsite/cmd/teeproxy golang.org/x/pkgsite/cmd/worker golang.org/x/pkgsite/content/sta...
$ misspell cmd/frontend/main.go cmd/prober/main.go cmd/teeproxy/main.go cmd/worker/main.go cmd/**/*.sh internal/auth/auth.go internal/complete/completion.go internal/complete/com...
$ unparam ./...
$ prettier --write content/static/css/sidenav.css content/static/css/stylesheet.css
content/static/css/sidenav.css 54ms
content/static/css/stylesheet.css 192ms
SCRIPT /Users/julieqiu/.vim/plugged/vim-go/ftplugin/go.vim
Sourced 1 time
Total time: 0.001763
Self time: 0.001451
count total (s) self (s)
" Copyright 2013 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
"
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'AndrewRadev/splitjoin.vim'
Plug 'VundleVim/Vundle.vim'
Plug 'altercation/vim-colors-solarized'
Plug 'bling/vim-airline'
Plug 'cknadler/vim-anywhere'
xcode-select --install
# https://brew.sh/
mkdir -p $HOME/bin/homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/bin/homebrew
export PATH=$HOME/bin/homebrew/bin:$PATH
# brew install
brew install vim macvim ripgrep tmux tree jq npm
POST _search
{"test": "hello"}
@julieqiu
julieqiu / 0_reuse_code.js
Created February 21, 2016 03:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console