Skip to content

Instantly share code, notes, and snippets.

View atrestis's full-sized avatar
🎧
🎶🎶🎶

Atrestis Karalis atrestis

🎧
🎶🎶🎶
View GitHub Profile
@atrestis
atrestis / nagios_template.py
Created July 31, 2023 14:56 — forked from jm-welch/nagios_template.py
A simple template for writing Nagios plugin in Python
#! /usr/bin/env python
###############################################################################
# Nagios plugin template
#
# Notes
# - The RHEL boxes I work on are currently limited to Python 2.6.6, hence the
# use of (deprecated) optparse. If I can ever get them all updated to
# Python 2.7 (or better yet, 3.3), I'll switch to argparse
# - This template runs in 2.6-3.3. Any changes made will need to be appropriate
@atrestis
atrestis / HOWTO.md
Created June 13, 2023 17:40 — forked from stramel/HOWTO.md
Installing Powerline fonts on Windows 10

Installing Powerline fonts on Windows 10

Steps

  1. Download and extract zip from here
  2. Press Windows + x
  3. Press a (Selects PowerShell (Admin))
  4. Navigate to directory where fonts were extracted to (cd ${HOME}\Downloads\fonts-master\fonts-master)
  5. Set Execution Policy Set-ExecutionPolicy RemoteSigned [1]
  6. Press y then Enter to accept
@atrestis
atrestis / ubuntu_16.04_lts_to_20.04_lts.md
Created May 12, 2022 13:40 — forked from rlan/ubuntu_16.04_lts_to_20.04_lts.md
Upgrading Ubuntu 16.04 LTS to 20.04 LTS

Summary: Need to upgrade to 18.04 first, then to 20.04.

Launch tmux before ssh into the vm, in case local network or vpn has issue, the vm continues to run your commands.

tmux new -s vm
ssh username@vm
@atrestis
atrestis / Autocomplete_ssh_scp.md
Created May 9, 2022 11:40 — forked from nhthai2005/Autocomplete_ssh_scp.md
Autocomplete server names for SSH and SCP for Git Bash

Autocomplete server names for SSH and SCP for Git Bash

For ssh

1. Make a file with name ssh as following content:

_ssh() 
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"