Skip to content

Instantly share code, notes, and snippets.

View giorgiosironi's full-sized avatar

Giorgio Sironi giorgiosironi

View GitHub Profile
<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<doi_records>\r\n <doi_record>\r\n <crossref>\r\n <error>doi:10.21203/rs.3.rs-3869684/v1</error>\r\n </crossref>\r\n </doi_record>\r\n</doi_records>
{"messages":[{"status":"no posts found"}], "collection":[]}
[16:46:49][giorgio@elife-XPS-13-9370:~/code/sciety]$ kubeconform -schema-location default -verbose -kubernetes-version=1.22.0 *.yaml
pod-identity-webhook.yaml - MutatingWebhookConfiguration pod-identity-webhook is valid
controllerrevision1.yaml - ControllerRevision cloudwatch-agent-74cb9dfbcb is valid
daemonset1.yaml - DaemonSet cloudwatch-agent is valid
[16:47:17][giorgio@elife-XPS-13-9370:~/code/sciety]$ kubeconform -schema-location default -verbose -kubernetes-version=1.20.0 *.yaml
pod-identity-webhook.yaml - MutatingWebhookConfiguration pod-identity-webhook is valid
controllerrevision1.yaml - ControllerRevision cloudwatch-agent-74cb9dfbcb is valid
daemonset1.yaml - DaemonSet cloudwatch-agent is valid
@giorgiosironi
giorgiosironi / gist:eea5dc5db2de457d8ee5988218dbcabc
Created November 25, 2020 12:09
Example of Crossref metadata of a withdrawn bioRxiv article
$ curl -s -L -H "Accept: application/vnd.crossref.unixref+xml" "https://doi.org/10.1101/2020.01.30.927871"
<?xml version="1.0" encoding="UTF-8"?>
<doi_records>
<doi_record owner="10.1101" timestamp="2020-06-02 10:44:42">
<crossref>
<posted_content type="preprint" language="en" metadata_distribution_opts="any">
<group_title>Evolutionary Biology</group_title>
<contributors>
<person_name contributor_role="author" sequence="first">
<given_name>Prashant</given_name>
[09:40:26][giorgio@Newton:~/code/prc]$ node -v
v14.5.0
[09:40:28][giorgio@Newton:~/code/prc]$ npm install
npm WARN eslint-config-airbnb@18.2.0 requires a peer of eslint-plugin-jsx-a11y@^6.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@18.2.0 requires a peer of eslint-plugin-react@^7.20.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@18.2.0 requires a peer of eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 1043 packages in 19.194s
{"log":"2020-06-02T09:27:47.515Z app:api:fetch-abstract-from-crossref Found abstract for 10.1101/339747: \r\n Abstract\r\n \r\n Induction of a non-culturable state has been demonstrated for many bacteria. In a clinical perspective, the lack of growth due to these non-culturable bacteria can have major consequences for the diagnosis and treatment of patients. Here we show how anoxic conditioning (restriction of molecular oxygen, O\r\n 2\r\n ) generates difficult-to-culture (DTC) bacteria during biofilm growth. A significant subpopulation of\r\n Pseudomonas aeruginosa\r\n entered a DTC state after anoxic conditioning, ranging from five to 90 % of the total culturable population, in both planktonic and biofilm models. Anoxic conditioning also generated DTC subpopulations of\r\n Staphylococcus aureus\r\n and\r\n Staphylococcus epidermidis\r\n . Growth of the DTC populations were achieved by substit
Proposal for scientific publishers 0507
- Highlight on Page 2 | Added on Thursday, May 28, 2020, 03:16 PM
The proposed process envisions that authors post articles and data on repositories and journals peer review and curate those articles and data in exchange for service fees
==========
Proposal for scientific publishers 0507
- Highlight on Page 3 | Added on Thursday, May 28, 2020, 03:21 PM
Publishers could also incentivize peer review service by offering vouchers to peer reviewers. Such vouchers would entitle the recipient to a discounted peer review for one of their own articles (note that the voucher won’t promise a favorable outcome of the peer review)
==========
## 1. Lego
What is this? A set of Lego bricks ok. Trademarked name.
It's also one of the most overused metaphors in software development. You can replicate software an infinite number of times. So if you have reusable components that you or someone else have built, you put them together to get a complete application like GMail or Microsoft Word.
## 2. Cables
Reality is more similar to this. Software components and libraries follow different standards, are built for different audiences and incorporate different assumptions. So they need to be put together with duct tape, screws, adapters; completely custom parts need to be fitted in to get a polished product.
The end result can be scary but it's not necessarily of low quality; what can be scary is if you were given the Lego bricks and asked to put together this. This could happen because you have purchased the product (a set of bricks) or even across different teams in a single company if there is a separation of development (build it) and operations (run
@giorgiosironi
giorgiosironi / blocking-test.js
Last active November 14, 2019 10:23 — forked from diversemix/blocking-test.js
Test for understanding how blocking works
const fs = require('fs');
const log = (text) => {
console.log(new Date() + ' ' + text);
}
const util = require('util');
const sleep = async ms => {
return new Promise(resolve => setTimeout(resolve, ms));
};
version: '3'
services:
b:
build:
context: .
dockerfile: Dockerfile.b
args:
image_tag: ${IMAGE_TAG}
image: b:${IMAGE_TAG}