I hereby claim:
- I am ahobson on github.
- I am ahobson (https://keybase.io/ahobson) on keybase.
- I have a public key whose fingerprint is 59BA F6E0 F475 E91C 7761 C7E8 6CFD 6304 4BA3 F92C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# This script will mount /Users in the boot2docker VM using NFS (instead of the | |
# default vboxsf). It's probably not a good idea to run it while there are | |
# Docker containers running in boot2docker. | |
# | |
# Usage: sudo ./boot2docker-use-nfs.sh | |
# |
#!/bin/bash | |
# | |
# This script will mount /Users in the boot2docker VM using NFS (instead of the | |
# default vboxsf). It's probably not a good idea to run it while there are | |
# Docker containers running in boot2docker. | |
# | |
# Usage: sudo ./boot2docker-use-nfs.sh | |
# |
#!/bin/bash | |
set -euo pipefail | |
scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
rootdir="$(cd $scriptdir/../.. > /dev/null 2>&1 && pwd)" | |
circleconfig="${rootdir}/.circleci/config.yml" | |
image=$(ruby -ryaml -e 'puts YAML.load_file(ARGV.last).dig("jobs","build","docker", 0, "image")' $circleconfig) |
# This is what the Dockerfile looks like | |
$ cat Dockerfile | |
FROM bash | |
ENTRYPOINT ["/bin/ls"] | |
CMD ["-l"] | |
# Build the image so we can experiment | |
$ docker build -t mybashls . | |
Sending build context to Docker daemon 2.048kB | |
Step 1/3 : FROM bash |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:12.16.2 | |
working_directory: ~/react-uswds | |
steps: | |
- checkout | |
- restore_cache: | |
keys: |
import accessabilityNewSprite from 'uswds/src/img/sprite.svg#accessibility_new' | |
export const icons = { | |
accessibilityNew: accessabilityNewSprite, | |
} |
I'm not a big fan of Makefiles as entrypoints for a project.
$(CC) $(CFLAGS) -MM
that generates Makefile compatible syntax so that only necessary files are rebuilt. Modern languages don't work that way: they provide a single command that recompiles all n$ npx create-react-app uswds-sccs-test | |
$ yarn add sass uswds nprogress | |
$ mv src/App.css src/App.scss | |
# edit App.js to change App.css to App.scss | |
$ yarn build | |
# everything is ok | |
$ echo "@import '~nprogress/nprogress';" >> src/App.scss | |
$ yarn build | |
# everything is ok | |
$ echo "@import '~uswds/src/stylesheets/theme/_uswds-theme-general.scss';" >> src/App.scss |
package handlers | |
import ( | |
"net/http" | |
"os" | |
"path/filepath" | |
"github.com/transcom/mymove/pkg/logging" | |
) |