- Using a ready-to-use Ubuntu image
This file contains hidden or 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
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->exclude('libs') | |
->exclude('utils') | |
->name('*.phtml') | |
->in(__DIR__) | |
//->append([ | |
//__DIR__.'/dev-tools/doc.php', | |
// __DIR__.'/php-cs-fixer', disabled, as we want to be able to run bootstrap file even on lower PHP version, to show nice message |
This file contains hidden or 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
# Save to ~/.xonshrc | |
# XONSH WIZARD START | |
# source-bash "echo loading xonsh foreign shell" | |
# XONSH WIZARD END | |
# Uncomment the below if running from appimage and need python/pip on your path from AppImage | |
# $PATH = [f'{$APPDIR}/usr/bin'] + $PATH | |
# Setup vox autovox to auto activate for .venv folders | |
# https://xon.sh/python_virtual_environments.html#automatically-switching-environments |
This file contains hidden or 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/python3 | |
# | |
# Copyright 2020 Frank David Martinez M. (mnesarco at github) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains hidden or 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
# Save to ~/.xonshrc | |
# https://github.com/anki-code/xontrib-prompt-starship | |
# Below is example to put in xonsh config ~/.xonshrc for xontrib-prompt-starship | |
#$STARSHIP_CONFIG = "~/.config/starship_xonsh.toml" | |
$XONTRIB_PROMPT_STARSHIP_LEFT_CONFIG = "~/.config/starship_xonsh_left.toml" | |
#$XONTRIB_PROMPT_STARSHIP_RIGHT_CONFIG = "~/.config/starship_xonsh_right.toml" | |
#$XONTRIB_PROMPT_STARSHIP_BOTTOM_CONFIG = "~/.config/starship_xonsh_bottom.toml" | |
xontrib load prompt_starship |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am meramsey on github. | |
* I am mikeramsey (https://keybase.io/mikeramsey) on keybase. | |
* I have a public key ASBQdhTRwC5JXtG2vKWtDXZdfu8M77OffA5L9Q37vf1kpQo | |
To claim this, I am signing this object: |
This file contains hidden or 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
#!/bin/bash | |
# Download binaryfate's GPG key | |
wget -q -O binaryfate.asc https://raw.githubusercontent.com/monero-project/monero/master/utils/gpg_keys/binaryfate.asc | |
# Verify binaryfate's GPG key | |
echo "1. Verify binaryfate's GPG key: " | |
gpg --keyid-format long --with-fingerprint binaryfate.asc | |
# Prompt user to confirm the key matches that posted on https://src.getmonero.org/resources/user-guides/verification-allos-advanced.html | |
echo |
based on https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO
- Move
systemd-email.sh
to/usr/local/bin/systemd-email
- Move
[email protected]
to/etc/systemd/system/
- Put
OnFailure=OnFailure=status-email-alerts@%n.service
into the[Unit]
section of a service
Create file /usr/local/bin/systemd-email
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
from PyQt5 import QtCore, QtDBus, QtWidgets | |
def notify(header, msg): | |
item = "org.freedesktop.Notifications" | |
path = "/org/freedesktop/Notifications" | |
interface = "org.freedesktop.Notifications" |
This file contains hidden or 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
# First lets import the two modules we'll need from Qt | |
from Qt import QtWidgets, QtCore | |
# Then we create our Window class, in this case from a QDialog | |
class MyWindow(QtWidgets.QDialog): | |
def __init__(self): | |
# We use the __init__ method to initialize it | |
# The super function gets the class we are inheriting from (in this case QDialog) and calls its' __init__ as well |