Skip to content

Instantly share code, notes, and snippets.

View beatak's full-sized avatar
🍄
Mushroom

Takashi M beatak

🍄
Mushroom
  • San Francisco, CA
View GitHub Profile
#!/usr/bin/env python
# Copyright 2017 Google Inc. All rights reserved.
# Use of this source code is governed by the Apache 2.0 license that can be
# found in the LICENSE file.
"""WebPageTest cross-platform agent"""
import atexit
import logging
import logging.handlers
import os
import platform
#!/bin/sh
cd /LocalBuild/agent-resources
if [ $IS_INNER_CONTAINER == true ]
then
if [ ! -z "${BUILDSPEC_PATH}" ]
then
RELATIVE_PATH=${BUILDSPEC_PATH}
if [[ ${BUILDSPEC_PATH} = *"$SOURCE_PATH"* ]]
[
{
"Id": "sha256:73eba6b500d51461b06c46c25a86e2b1ed84675cc9f9dbfb15d9a41c7bc3fce2",
"RepoTags": [
"foo:bar"
],
"RepoDigests": [],
"Parent": "sha256:ce20fd743e1b6ba6b3171b5fbb86b1d5aa615d7f551ed8736cf1f600025eece5",
"Comment": "",
"Created": "2019-04-01T21:18:21.609593005Z",
#!/bin/sh
cd /LocalBuild/agent-resources
if [ $IS_INNER_CONTAINER == true ]
then
if [ ! -z "${BUILDSPEC_PATH}" ]
then
RELATIVE_PATH=${BUILDSPEC_PATH}
if [[ ${BUILDSPEC_PATH} = *"$SOURCE_PATH"* ]]
[
{
"Id": "sha256:ce20fd743e1b6ba6b3171b5fbb86b1d5aa615d7f551ed8736cf1f600025eece5",
"RepoTags": [
"amazon/aws-codebuild-local:latest"
],
"RepoDigests": [
"amazon/aws-codebuild-local@sha256:a8c0057d75c8f4a735859d05ee01eab9bff417b4263f84feb5c38d2d681a3922"
],
"Parent": "",
diff --git a/bin/run_rspec.sh b/bin/run_rspec.sh
index 224a208..79cc553 100755
--- a/bin/run_rspec.sh
+++ b/bin/run_rspec.sh
@@ -9,3 +9,7 @@ CURRENT_EPOCH=`date +'%s'`
DOCKER_BUILDKIT=1 docker build --tag dev:sinatra-test-$CURRENT_EPOCH --file images/ruby/rspec.Dockerfile --no-cache --progress plain images/ruby
docker run -it dev:sinatra-test-$CURRENT_EPOCH
+
+BOLD_MODIFIER=$(tput bold)
diff --git a/bin/run_rspec.sh b/bin/run_rspec.sh
index 224a208..2935d5a 100755
--- a/bin/run_rspec.sh
+++ b/bin/run_rspec.sh
@@ -9,3 +9,5 @@ CURRENT_EPOCH=`date +'%s'`
DOCKER_BUILDKIT=1 docker build --tag dev:sinatra-test-$CURRENT_EPOCH --file images/ruby/rspec.Dockerfile --no-cache --progress plain images/ruby
docker run -it dev:sinatra-test-$CURRENT_EPOCH
+
+echo "Don't forget to run the following command to clean up test images: docker rmi \$(docker images dev:sinatra* -q)"
@beatak
beatak / messgepad.eps
Created January 3, 2019 00:49
Newton Message Pad Newton OS logo in eps
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: potrace 1.15, written by Peter Selinger 2001-2017
%%LanguageLevel: 2
%%BoundingBox: 0 0 204 204
%%HiResBoundingBox: 0 0 204.000000 204.000000
%%Pages: 1
%%EndComments
%%Page: 1 1
currentfile /ASCII85Decode filter /LZWDecode filter cvx exec
J/lc\@jia36p6os-K?5!aCR.L@HM5X8G7'_Rgk/$,T)ho0q6GnR,f*WHT4QlU@Ws&Afqrs$
% irb
# Newer hash literal
2.3.5 :001 > h1 = { name: 'hash1' }
=> {:name=>"hash1"}
2.3.5 :002 > h1['name']
=> nil
2.3.5 :003 > h1[:name]
=> "hash1"
module.exports = {
cache: true,
parallel: true,
uglifyOptions: {
mangle: true,
compress: {
conditionals: true,
dead_code: true,
evaluate: true,