Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# Description | Copy the latest monitor configuration to GDM.
# Author | Lorenzo Murarotto
# Email | lnzmrr@gmail.com
shopt -s nullglob # Unmatched globs expand to null.
GDM_CONFIG_DIR=/var/lib/gdm/.config
GDM_CONFIG_FILE=$GDM_CONFIG_DIR/monitors.xml
#!/usr/bin/env bash
REPO_URL=git@github.com:murar8/dotfiles.git
REPO_DIR=$HOME/.dotfiles
echo "Setup started"
echo "Repository: $REPO_URL"
echo "Target directory: $REPO_DIR"
echo
$ErrorActionPreference = "Stop"
######## Constants ########
$VaultModule = "SecretManagement.JustinGrote.CredMan"
$VaultModuleVersion = "1.0.0"
$KeyApiToken = "com.murar8.api-token"
$ApiUrl = "https://api.paperspace.io"
######## Functions ########
#!/usr/bin/env bash
#
# Name: bootstrap-debian.sh
# Author: Lorenzo Murarotto <lnzmrr@gmail.com>
# Usage: ./bootstrap-debian.sh <USERNAME> <USER_UID> <USER_GID>
echo "Starting dependency installation procedure."
set -e
@murar8
murar8 / bootstrap.sh
Last active February 5, 2022 12:27
Initialize dotfiles repository.
#!/usr/bin/env bash
REPO_URL=git@github.com:murar8/dotfiles.git
REPO_DIR=$HOME/.dotfiles
echo "Starting bootstrap procedure."
set -e
if ! command -v git >/dev/null; then
import 'package:flutter/material.dart';
abstract class Bloc<BlocEvent, BlocState> {
void dispose();
}
/// Used to give [child] and all it's subsequent children access to [blocs].
/// To get a reference to 'SomeBloc' from a child use: MultipleBlocProvider.of<SomeBloc>(context)
class MultipleBlocProvider extends StatefulWidget {
MultipleBlocProvider({Key key, @required this.child, @required this.blocs})