made with esnextbin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch | |
WORKDIR /root | |
RUN apt-get update | |
RUN apt-get install -y git openjdk-8-jre curl gpg build-essential apt-transport-https | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["env"], | |
"plugins": ["transform-react-jsx"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-list --remotes --author="$(git config user.name)" --date=iso --pretty --branches="*" --no-merges --since="7 days ago" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lightningd(1): Creating lightningd dir /root/.lightning (because chdir gave No such file or directory) | |
lightningd(1): Trying to guess public addresses... | |
lightningd(1): Address 172.18.0.3:9735 is not routable | |
lightningd(1): Failed to connect 10 socket: Cannot assign requested address | |
lightningd(1): testing /usr/bin/lightningd | |
lightningd(1): testing /usr/bin/lightning_channeld | |
lightningd(1): testing /usr/bin/lightning_closingd | |
lightningd(1): testing /usr/bin/lightning_gossipd | |
lightningd(1): testing /usr/bin/lightning_hsmd | |
lightningd(1): testing /usr/bin/lightning_onchaind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
log_dir=".upgrade-frontend-deps-logs" | |
mkdir -p "$log_dir" | |
if ! git diff-index --quiet HEAD --; then | |
echo "Make sure the working tree doesn't have uncommitted changes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- decode-base64 | |
[input] | |
(new java.lang.String (.decode (java.util.Base64/getDecoder) input) "utf-8")) | |
(defn- encode-base64 | |
[input] | |
(.encodeToString (java.util.Base64/getEncoder) (.getBytes input))) |
made with esnextbin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE sf_crime_incidents ( | |
incident_number integer, | |
category varchar, | |
description varchar, | |
day_of_week varchar, | |
date date, | |
time time, | |
police_department_district varchar, | |
resolution varchar, | |
address varchar, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String literal action names in action creator: | |
Find: (export\s+const\s+\w+\s*=\s*create(?:Thunk)?Action)\("([^"]+)" | |
Replace: export const $2 = "$2";\n$1($2 | |
Un-namespaced action constants: | |
Find: export\s+const\s+(\w+)\s*=\s*["']([A-Z_]+)["'] | |
Replace: export const $1 = "metabase/NAMESPACE/$2" |