Skip to content

Instantly share code, notes, and snippets.

View cmilfont's full-sized avatar

Christiano Milfont cmilfont

View GitHub Profile

Isaías 51:6

6 Levantai os vossos olhos para os céus, e olhai para a terra em baixo, porque os céus desaparecerão como a fumaça, e a terra se envelhecerá como roupa, e os seus moradores morrerão semelhantemente; porém a minha salvação durará para sempre, e a minha justiça não será abolida.

Salmos 102:25,26

25 Desde a antiguidade fundaste a terra, e os céus são obra das tuas mãos.
26 Eles perecerão, mas tu permanecerás; todos eles se envelhecerão como um vestido; como roupa os mudarás, e ficarão mudados.

Hebreus 1:11

10 E: Tu, Senhor, no princípio fundaste a terra, E os céus são obra de tuas mãos.
11 Eles perecerão, mas tu permanecerás; E todos eles, como roupa, envelhecerão,

@cmilfont
cmilfont / accenture-level.md
Created March 7, 2024 11:29
Accenture Career Level

Level 1: Senior Managing Director (SMD)
Level 2: Client Account Director (MD)
Level 3: Senior Client Account Executive (MD)
Level 4: Client Account Executive (MD)
Level 5: Associate Director or Principal Director
Level 6: Senior Manager or Senior Principal
Level 7: Manager or Principal
Level 8: Associate Manager or Associate Principal
Level 9: Consultant, Team Lead, or Specialist
Level 10: Senior Analyst

version: '2'
services:
mysql:
image: docker.io/bitnami/mysql:8.0
volumes:
- 'mysql_data:/bitnami/mysql'
ports:
- "3306:3306"
environment:
- ALLOW_EMPTY_PASSWORD=yes
@cmilfont
cmilfont / install.sh
Last active July 14, 2023 21:44
Create React Native project
# Macos Ventura 13.4.1 (22F82) - Apple M1 Max
brew update
brew install openssl
curl -sSL https://get.rvm.io | bash
rvm install ruby-3.2 --enable-shared --with-openssl-dir=/opt/homebrew/opt/openssl@1.1 --with-out-ext=fiddle
sudo gem install cocoapods
sudo xcode-select --switch /Applications/Xcode.app #Open Xcode, then choose Settings -> Locations
npx react-native@latest init search --template react-native-template-typescript
@cmilfont
cmilfont / es-woocommerce.es
Created June 3, 2023 13:16
Reindexação enriquecida no Elasticsearch com o Domain Model do Wordpress que o Woocommerce utiliza
PUT /_enrich/policy/mysql-server.wordpress.wp_postmeta_policy
{
"match":{
"indices": "mysql-server.wordpress.wp_postmeta",
"match_field": "post_id",
"enrich_fields": ["meta_id", "meta_key", "meta_value"]
}
}
POST /_enrich/policy/mysql-server.wordpress.wp_postmeta_policy/_execute
@cmilfont
cmilfont / peter-thiels-cs183-startup-class-01-notes-essay.md
Created January 3, 2022 00:28 — forked from harperreed/peter-thiels-cs183-startup-class-01-notes-essay.md
Notes Essays—Peter Thiel’s CS183: Startup—Stanford, Spring 2012

Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.

CS183: Startup—Notes Essay—The Challenge of the Future

Purpose and Preamble

{
"compilerOptions": {
"target": "ES2017",
"module": "CommonJS",
"moduleResolution": "node",
"outDir": "./build",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true
}
@cmilfont
cmilfont / S3-Static-Sites.md
Created December 30, 2019 21:36 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

@cmilfont
cmilfont / redux.js
Last active November 8, 2019 00:15
Usando Redux sem combineReducer
import { LOCATION_CHANGE } from 'connected-react-router';
import { connectRouter } from 'connected-react-router';
export default history => {
const handleRouter = connectRouter(history);
const initialState = {
router: connectRouter(history)
};
import { take, put, call } from 'redux-saga/effects';
import { eventChannel } from 'redux-saga';
import { push } from 'react-router-redux';
import actions from 'api/actions';
import reducer from 'api/reducers/crud';
import { loginMutation as mutation } from 'api/graphql/mutations';
function createSocketChannel(firebase) {
return eventChannel((emit) => {
return firebase.auth()