Skip to content

Instantly share code, notes, and snippets.

View vincentbollaert's full-sized avatar
🎧
Learning monorepos and micro-frontends

Vincent vincentbollaert

🎧
Learning monorepos and micro-frontends
View GitHub Profile
body {
color: red !important;
}
.test {
display: none;
overflow: hidden;
no: ways
}
@vincentbollaert
vincentbollaert / aws.js
Last active August 16, 2022 07:25
useful fullstack commands
ssh -i $keypairname ec2-user@$ec2ip // ssh into EC2 instance
aws iam list-users // show iam users
kops edit/get ig nodes --name ${NAME} // gets instance groups and lets you configure min and max nodes etc
kops delete cluster --name ${NAME} --yes
// RESTART CLUSTER
export NAME=fleetman.k8s.local // set env variable
export KOPS_STATE_STORE=s3://kops-fleetman // set env variable
kops create cluster --zones=ap-southeast-1a,ap-southeast-1b,ap-southeast-1c ${NAME} // recreate cluster
kops edit ig nodes --name ${NAME} // edit cluster to have 5 max and 3 min nodes
@vincentbollaert
vincentbollaert / ramda.js
Created May 6, 2020 01:18
learning ramda
R.add(5, 10)
let add5 = R.add(5)
add5(10)
// for divide and subtractn the order matters
let subtract40 = R.subtract(R.__, 40) // needs to be 2x underscore
subtract40(100)
// old
const fahrenheitToCelcius = x => {
@vincentbollaert
vincentbollaert / gist:4d729428da5caed8f0059e10b28bb8fe
Created April 7, 2020 07:06
react - prevent rerenders with memo and context
https://github.com/facebook/react/issues/15156
@vincentbollaert
vincentbollaert / .babelrc
Last active August 19, 2020 09:02
config files
// https://gist.github.com/vincentbollaert/e90def9b351d8d97c90ef7cfd887685e
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"react-hot-loader/babel",
"@babel/plugin-syntax-dynamic-import",
@vincentbollaert
vincentbollaert / gist:f832ab19eb31daf528e84d8bb07cadd4
Created March 4, 2020 05:27
Binance mobile grid styling override
grid-template-rows: 0 570px auto auto auto;
grid-template-areas:
"header header orderbook"
"chart chart orderbook"
"orderform orderform orderbook"
"tradelist tradelist orderbook"
"history history orderbook";
grid-template-columns: 1fr 1fr 234px;
@vincentbollaert
vincentbollaert / script.js
Created November 7, 2019 15:04
haasbot remove bots
const botListItems = document.querySelectorAll('#botListSimple .divTableRow');
const toRemove = [...botListItems].filter((item, index) => index > 185);
toRemove.forEach(item => {
const checkbox = item.children[0].children[0].children[0];
checkbox.click();
})
// remove adams
{
"processors": [
"stylelint-processor-styled-components"
],
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
],
"rules": {
"no-extra-semicolons": null,
@vincentbollaert
vincentbollaert / alternatively, follow these steps
Last active March 1, 2019 11:13
react-native amplify: jest-haste-map: Haste module naming collision
https://stackoverflow.com/questions/50805753/duplicate-module-name-react-native