Skip to content

Instantly share code, notes, and snippets.

@BarDev
BarDev / notes_to_self.md
Last active October 16, 2022 16:23
Notes To Self

Notes To Self

These are not rules that must be followed, but guidelines.

The more we pack our lives with memories, the slower time flies. - Joshua Foer, Walking with Einstein

Monotony collapses time; novelty unfolds it. - Joshua Foer, Walking with Einstein

It's important to change routines regularly, and take vacations to exotic locales, and have as many new experiences as possible that can serve to anchor memories. Creating new memories stretches out psychological time, and lengthens our perception of our lives. - Joshua Foer, Walking with Einstein

@BarDev
BarDev / script.sh
Created June 1, 2021 15:53
Ubuntu new instance script
sudo apt-get update
sudo apt install curl wget git
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@BarDev
BarDev / Stargate Document API - VS Code REST Client
Created December 17, 2020 20:02
Testing DataStax Astra Stargate Document API using VS Code & REST Client
# Testing DataStax Astra Stargate Document API
# Using VS Code & REST CLIENT API
# Variables *********************
@DB = 00000000-0000-0000-0000-000000000000
@REGION = us-east1
@USERNAME = <username>
@PASSWORD = <password>
@KEYSPACE = <keyspace>

Cassandra & DSE Commands.md

iostat -x -c -d -t 1 720 >> $(hostname -i)_iostat.log
nodetool sjk ttop >> $(hostname -i)_ttop.log 

Quotes

One day you will wake up & there won’t be any more time to do the things you’ve always wanted. Do it now.
– Paulo Coelho

In preparing for battle I have always found that plans are useless, but planning is indispensable.
- Dwight Eisenhower

Determine never to be idle. No person will have occasion to complain of the want of time who never loses any. It is wonderful how much may be done if we are always doing.
- Thomas Jefferson

Flutter Notes

Google - Flutter.Dev https://flutter.dev/

Widgets

Common Widgets

  • Layout—Row, Column, Scaffold, Stack
  • Structures—Button, Toast, MenuDrawer
@BarDev
BarDev / certs.md
Created October 21, 2019 13:37
All Things Certs

All Things Certs

View x509 Certificate (SSL)

openssl x509 -in certificate.crt -text -noout

View a PKCS#12 file (.pfx or .p12)

openssl pkcs12 -info -in keyStore.p12