Skip to content

Instantly share code, notes, and snippets.

View alexandrefsdev's full-sized avatar

Alexandre Silveira alexandrefsdev

  • Transalvador
  • Salvador, BA, Brazil
View GitHub Profile
@carzacc
carzacc / HomePage.dart
Created February 13, 2020 19:47
Flutter app for JWT tutorial
class HomePage extends StatelessWidget {
HomePage(this.jwt, this.payload);
factory HomePage.fromBase64(String jwt) =>
HomePage(
jwt,
json.decode(
ascii.decode(
base64.decode(base64.normalize(jwt.split(".")[1]))
)
@akmandev
akmandev / php74-install.sh
Created October 18, 2019 11:23
PHP 7.4 Installation - Ubuntu/Elementary OS
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
php -v
sudo apt-get install -y php7.4-{curl,mbstring,mcrypt,opcache,xml,readline,zip,gd}
Note: this assumes you are using ZSH shell.
## Installation
Install [asdf](https://github.com/asdf-vm/asdf):
```
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc