This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: ft=systemd.unit | |
# | |
# Systemd service file for the brightness-daemon script. | |
# | |
# Author: Lorenzo Murarotto <lnzmrr@gmail.com> | |
# License: MIT | |
[Unit] | |
Description=Daemon to sync the brightness level of external monitors. | |
After=dbus.socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = "Stop" | |
######## Constants ######## | |
$VaultModule = "SecretManagement.JustinGrote.CredMan" | |
$VaultModuleVersion = "1.0.0" | |
$KeyApiToken = "com.murar8.api-token" | |
$ApiUrl = "https://api.paperspace.io" | |
######## Functions ######## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |