Skip to content

Instantly share code, notes, and snippets.

View ChechoCZ's full-sized avatar
🎯
Focusing

Sergio Cuadros ChechoCZ

🎯
Focusing
View GitHub Profile
@ChechoCZ
ChechoCZ / APIGateway.md
Created December 12, 2022 14:22 — forked from bskim45/APIGateway.md
CloudWatch Logs Insights query for API Gateway

Req id:

parse @message '(*) *' as reqId, message
| filter reqId like "c19dd3fc-5f27-11e9-a823-930d231e2ab8"
| sort @timestamp asc
| limit 50

Status code:

@ChechoCZ
ChechoCZ / curl.md
Created June 23, 2021 19:15 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@ChechoCZ
ChechoCZ / gist:531f0f0876d2a6e5fab546b39412faa3
Created April 6, 2021 12:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
docker run --name pgadmin -p 9000:80 \
-e PGADMIN_DEFAULT_EMAIL="email" \
-e PGADMIN_DEFAULT_PASSWORD="password" \
-d dpage/pgadmin4
@ChechoCZ
ChechoCZ / gist:7dffd831cc8273c33c60b40dbb7b630a
Last active July 16, 2021 18:50
TypeScript Node Express
yarn init -y
yarn add express
yarn add typescript @types/node @types/express -D
yarn tsc —init || npx tsc --init
tsconfig:
"outDir": "./dist",
"rootDir": "./src",
Create:
npx serverless create --template aws-nodejs --path fancy-name
Deploy:
npx serverless config credentials --provider aws --key AWS_KEY --secret AWS-SECRET
npx serverless deploy -v
@ChechoCZ
ChechoCZ / gist:b511a18a34c73fd2f05a7fa0447a3e5f
Created February 3, 2021 22:28
Install Go Lang Mac using Brew
// INSTALL
1. brew update&& brew install golang
// SETUP
2. mkdir -p $HOME/go/{bin,src,pkg}
// SET ENV
export GOPATH=$HOME/go
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
1. Generate Editor Config (Install editor config dependency VSCode).
2. Install ESLint
- ```yarn add eslint -D```
- ```yarn eslint --init```
- *To check syntax, find problems and enforce code style*
- *Javascript modules (import/export)*
- *None of these*
- **Typescript?** *Yes*
- *Node/Browser*
- *Use a popular style guide*
@ChechoCZ
ChechoCZ / arena-macos-fixes.sh
Created November 22, 2020 01:35 — forked from april/arena-macos-fixes.sh
Fixes Magic Arena's broken full screen implementation on macOS
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
# replace 1680 and 1050 with your full screen resolution, or any scaled resolution your display supports
# to find the scaled resolutions, go to System Preferences --> Display
defaults write com.wizards.mtga "Screenmanager Resolution Width" -integer 1680
defaults write com.wizards.mtga "Screenmanager Resolution Height" -integer 1050
@ChechoCZ
ChechoCZ / Realm Path RN
Created July 29, 2020 22:15
Script to find the path to realm DB in React Native
Realm.open({}).then(realm => {
console.log("Realm is located at: " + realm.path);
});