Skip to content

Instantly share code, notes, and snippets.

@marabesi
marabesi / References
Created April 15, 2020 08:27 — forked from jpcaparas/References
Limit docker CPU and memory resource usage
Inspired by: https://stackoverflow.com/questions/46408673/docker-17-06-ce-default-container-memory-limit-on-shared-host-resources/46557336#46557336
@marabesi
marabesi / curl_post_json.md
Created July 17, 2020 20:47 — forked from ungoldman/curl_post_json.md
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

@marabesi
marabesi / withRouter.tsx
Created November 26, 2021 22:31 — forked from sibelius/withRouter.tsx
withRouter for react-router-dom v6
import { useNavigate } from 'react-router-dom';
export const withRouter = Component => {
const Wrapper = (props) => {
const history = useNavigate();
return (
<Component
history={history}
{...props}
@marabesi
marabesi / raw-data.csv
Last active July 27, 2024 15:30
TDD anti patterns - Survey focused on the industry and developer experience - data version 2021
Timestamp I am a software developer working in the industry professionally for: I work/worked for projects in the following countries (list provided by https://www.listofcountriesoftheworld.com/): I write/wrote code professionally in the following languages (programming languages listed are from https://www.tiobe.com/tiobe-index): I am familiar with testing tools such as Junit, Jest, PHPUnit or any other framework that provides a common ground to write tests. I learned TDD at work I learned TDD myself, through books, videos courses or tutorials. People that I work/worked with already knew TDD The people I work with practice TDD as part of daily work I practice TDD as part of my daily workflow. I feel that TDD makes me go slower than if I wasn't doing it I am not allowed to push code for review without a test case with it The companies I work/worked at, required TDD to join them as part of the job description. Companies I work/worked at do not practice TDD Companies I work/worked at argued that TDD requi
@marabesi
marabesi / raw-data-2022.csv
Created July 18, 2023 06:24
TDD anti patterns - Survey focused on the industry and developer experience - data version 2022
Timestamp I am a software developer working in the industry professionally for: I work/worked for projects in the following countries (list provided by https://www.listofcountriesoftheworld.com/): I write/wrote code professionally in the following languages (programming languages listed are from https://www.tiobe.com/tiobe-index): How many years of experience do you have doing Testing? I am familiar with testing tools such as Junit, Jest, PHPUnit or any other framework that provides a common ground to write tests. I learned TDD at work I learned TDD myself, through books, videos courses or tutorials. People that I work/worked with already knew TDD The people I work with practice TDD as part of daily work I practice TDD as part of my daily workflow. I feel that TDD makes me go slower than if I wasn't doing it I am not allowed to push code for review without a test case with it The companies I work/worked at, required TDD to join them as part of the job description. Companies I work/worked at do not pract