Skip to content

Instantly share code, notes, and snippets.

View DotAmzi's full-sized avatar
:shipit:
println("Hello Stranger");

Camilo Fernandes DotAmzi

:shipit:
println("Hello Stranger");
  • Coopersystem
  • Brasilia, Brazil
  • 00:55 (UTC -03:00)
  • LinkedIn in/camilodf
View GitHub Profile
@DotAmzi
DotAmzi / azure-pipelines.yml
Created January 14, 2021 03:06 — forked from dlmelendez/azure-pipelines.yml
Firebase Hosting Azure Pipeline Deploy
trigger:
- firebase-demo
pool:
vmImage: 'windows-2019'
steps:
- task: NodeTool@0
@DotAmzi
DotAmzi / frontend-ws-connection.ts
Created September 8, 2020 23:27 — forked from jsdevtom/frontend-ws-connection.ts
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);
@DotAmzi
DotAmzi / Stress test.md
Created May 13, 2020 16:17 — forked from oviniciusfeitosa/Stress test.md
Stress test.md
sudo apt-get install apache2-dev
# or yum install httpd-tools
ab -n 9999 -c 333 http://localhost:80/

(9999 nr re requisições)
(333 quantidade de vezes)
```sh

Products

index of products 25 first

curl -i -H "X-Spree-Token: YOUR_TOKEN_ID" http://0.0.0.0:3000/api/products.json

Show a product

curl -i -H "X-Spree-Token: YOUR_TOKEN_ID" http://0.0.0.0:3000/api/products/706676762.json

Modify a product

curl -i -X PUT -H "X-Spree-Token: YOUR_TOKEN_ID" -d "product[name]=Headphones" http://0.0.0.0:3000/api/products/706676762.json

#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin