Skip to content

Instantly share code, notes, and snippets.

FROM node:18-bullseye AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 \
libxss1 libasound2 libxtst6 xauth xvfb g++ make \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
COPY . /src/
WORKDIR /src
RUN npm install && npm run build:prod
FROM nginx:latest
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
name,quadrant,ring,isNew,description
Container security scanning,Techniques,Adopt,TRUE,"<p>The continued adoption of containers for deployments, especially <a href=""https://www.thoughtworks.com/radar/platforms/docker"">Docker</a>, has made <strong>container security scanning</strong> a must-have technique and we've moved this technique into Adopt to reflect that. Specifically, containers introduced a new path for security issues; it's vital that you use tools to scan and check containers during deployment. We prefer using automated scanning tools that run as part of the deployment pipeline.</p>"
Data integrity at the origin,Techniques,Adopt,TRUE,"<p>Today, many organizations' answer to unlocking data for analytical usage is to build a labyrinth of data pipelines. Pipelines retrieve data from one or multiple sources, cleanse it and then transform and move it to another location for consumption. This approach to data management often leaves the consuming pipelines with the difficult task of verifying the inbou
var altmetricURL = 'https://api.altmetric.com/v1/doi/' + ArticleData.doi;
var dimensionsURL = 'https://metrics-api.dimensions.ai/doi/' + ArticleData.doi;
var counterURL = 'https://counter.plos.org/api/v1.0/stats/totals/doi/' + ArticleData.doi;
var URLs = [altmetricURL, dimensionsURL, counterURL];
var isMetricsView = location.pathname.indexOf('metrics') > 0
if (isMetricsView) {
var citedSection = new MetricsCitedSection();
var discussedSection = new MetricsDiscussedSection();
var savedSection = new MetricsSavedSection();
@wryfi
wryfi / Dockerfile
Last active April 19, 2020 21:40
yodafact cloud function
# Use the official Python image.
# https://hub.docker.com/_/python
FROM python:3.7-slim
RUN mkdir /app
WORKDIR /app
COPY . .
# Install production dependencies.
RUN pip install gunicorn functions-framework
@wryfi
wryfi / http.go
Created May 16, 2018 22:53
DownloadFiles func
func DownloadFiles(destDir string, urls []string) (err error) {
if _, err := os.Stat(destDir); os.IsNotExist(err) {
os.MkdirAll(destDir, 0755)
log.Infof("Created directory %s.", destDir)
}
client := grab.NewClient()
client.UserAgent = "pogos"
requests := make([]*grab.Request, 0)
for _, url := range urls {
global:
scrape_interval: 15s
external_labels:
monitor: plos
scrape_configs:
- job_name: prometheus
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'node resources'
### Keybase proof
I hereby claim:
* I am wryfi on github.
* I am wryfi (https://keybase.io/wryfi) on keybase.
* I have a public key ASA2gPybFWcheeLSnlHa4mWWtUmD0aeZ4oTaTVp19Ggt1Ao
To claim this, I am signing this object:
#!/bin/bash
# This is based on "preexec.bash" but is customized for iTerm2.
# Note: this module requires 2 bash features which you must not otherwise be
# using: the "DEBUG" trap, and the "PROMPT_COMMAND" variable. iterm2_preexec_install
# will override these and if you override one or the other this _will_ break.
# This is known to support bash3, as well as *mostly* support bash2.05b. It
# has been tested with the default shells on MacOS X 10.4 "Tiger", Ubuntu 5.10
# "Breezy Badger", Ubuntu 6.06 "Dapper Drake", and Ubuntu 6.10 "Edgy Eft".
@wryfi
wryfi / solr.log
Created October 11, 2016 22:48
previous ephemeral node
INFO - 2016-10-11 22:46:39.658; [ ] org.eclipse.jetty.util.log.Log; Logging initialized @550ms
INFO - 2016-10-11 22:46:40.021; [ ] org.eclipse.jetty.server.Server; jetty-9.3.8.v20160314
INFO - 2016-10-11 22:46:40.057; [ ] org.eclipse.jetty.deploy.providers.ScanningAppProvider; Deployment monitor [file:///opt/solr/solr-6.2.1/server/contexts/] at interval 0
INFO - 2016-10-11 22:46:40.425; [ ] org.eclipse.jetty.webapp.StandardDescriptorProcessor; NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
WARN - 2016-10-11 22:46:40.445; [ ] org.eclipse.jetty.security.ConstraintSecurityHandler; [email protected]@14bf9759{/solr,file:///opt/solr/solr-6.2.1/server/solr-webapp/webapp/,STARTING}{/opt/solr/solr-6.2.1/server/solr-webapp/webapp} has uncovered http methods for path: /
INFO - 2016-10-11 22:46:40.463; [ ] org.apache.solr.servlet.SolrDispatchFilter; SolrDispatchFilter.init(): WebAppClassLoader=1555690610@5cb9f472
INFO - 2016-10-11 22:46:40.491; [ ] org.
gitfs_remotes:
- [email protected]:FOO/salt-dev:
- root: states
- [email protected]:FOO/sudoers-formula.git