a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#Overview drip is an awesome command line tool that can be used to dramatically lower perceived JVM startup time. It does this by preloading an entirely new JVM process\instance and allowing you to simply use the preloaded environment. This has extraordinary results with jruby.
We reduced time to run rake environment
from 13 seconds to a mere 3.5 seconds. This is actually at or near MRI 1.9.3p327 (with falcon patch) speeds!
Adding a few addition jruby options will reduce startup time even further (down to 1.69 seconds).
#Install Drip Install drip if you haven't already (see https://github.com/flatland/drip)
(defmacro with-system-out-str | |
[& body] | |
`(let [out# System/out | |
buf# (java.io.ByteArrayOutputStream.) | |
prs# (java.io.PrintStream. buf#) | |
wtr# (java.io.OutputStreamWriter. prs#)] | |
(try | |
(System/setOut prs#) | |
(binding [*out* wtr#] | |
(do ~@body)) |
Moved to https://github.com/18F/ghadmin.
;; Run me with: | |
;; clojure -Sdeps '{:deps {org.jsoup/jsoup {:mvn/version "1.12.1"}}}' gen.clj | |
(require '[clojure.string :as str]) | |
(import (java.time.format DateTimeFormatter) | |
(java.time LocalDate LocalTime ZoneId ZonedDateTime) | |
(java.util UUID) | |
(org.jsoup Jsoup) | |
(org.jsoup.nodes Document)) |
(defn get-clipboard [] | |
(.getSystemClipboard (java.awt.Toolkit/getDefaultToolkit))) | |
(defn slurp-clipboard [] | |
(try | |
(.getTransferData (.getContents (get-clipboard) nil) (java.awt.datatransfer.DataFlavor/stringFlavor)) | |
(catch java.lang.NullPointerException e nil))) | |
(defn spit-clipboard [text] | |
(.setContents (get-clipboard) (java.awt.datatransfer.StringSelection. text) nil)) |
# See also: | |
# - https://github.com/actions/runner/issues/774 | |
# - https://help.github.com/en/actions/reference/events-that-trigger-workflows#push-event-push | |
# - https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request | |
# - https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions | |
name: "[skip ci]" on Actions | |
on: [push, pull_request] |
name: CI | |
on: [push] | |
jobs: | |
tslint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
job: [0, 1, 2, 3, 4] |
#!/bin/bash -ex | |
# Tries to download latest cached node_modules based on package-lock.json | |
# If it can't, then `npm ci` and push up node_modules to cache | |
# Assumes S3_BUCKET env var has been set, and that `aws` credentials | |
# are configured (either in env, or ~/.aws/credentials) | |
CHECKSUM=$(sha256sum package-lock.json | awk '{print $1}') |