Windows Service with Python 3.5 and pyinstaller
- Python 3.5.x
- Visual C++ Build Tools 2015
- PyInstaller 3.2
#!/bin/bash | |
CONTAINER=$1 | |
RUNNING=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null) | |
if [ $? -eq 1 ]; then | |
echo "'$CONTAINER' does not exist." | |
else | |
/usr/bin/docker rm --force $CONTAINER |
#!/bin/bash | |
# Author: Erik Kristensen | |
# Email: erik@erikkristensen.com | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# Depending on your docker configuration, root might be required. If your nrpe user has rights | |
# to talk to the docker daemon, then root is not required. This is why root privileges are not |
#!/bin/bash | |
# get all running docker container names | |
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}') | |
host=$(hostname) | |
# loop through all containers | |
for container in $containers | |
do | |
echo "Container: $container" |
Windows Service with Python 3.5 and pyinstaller
#!/usr/bin/env python | |
## Tiny Syslog Server in Python. | |
## | |
## This is a tiny syslog server that is able to receive UDP based syslog | |
## entries on a specified port and save them to a file. | |
## That's it... it does nothing else... | |
## There are a few configuration parameters. | |
LOG_FILE = 'youlogfile.log' |
bind-key -T copy-mode C-Space send-keys -X begin-selection | |
bind-key -T copy-mode C-a send-keys -X start-of-line | |
bind-key -T copy-mode C-b send-keys -X cursor-left | |
bind-key -T copy-mode C-c send-keys -X cancel | |
bind-key -T copy-mode C-e send-keys -X end-of-line | |
bind-key -T copy-mode C-f send-keys -X cursor-right | |
bind-key -T copy-mode C-g send-keys -X clear-selection | |
bind-key -T copy-mode C-k send-keys -X copy-end-of-line | |
bind-key -T copy-mode C-n send-keys -X cursor-down | |
bind-key -T copy-mode C-p send-keys -X cursor-up |
#!/usr/bin/env python | |
# encoding: utf8 | |
# Author : laudai | |
# codestyle : black | |
from typing import List, Tuple | |
import sys | |
""" |
#!/bin/sh | |
# SPDX-License-Identifier: GPL-2.0-only | |
# invoke insmod with all arguments we got | |
# and use a pathname, as insmod doesn't look in . by default | |
TARGET_PATH=$(find /lib/modules/$(uname -r)/kernel/drivers/net/ethernet -name realtek -type d) | |
if [ "$TARGET_PATH" = "" ]; then | |
TARGET_PATH=$(find /lib/modules/$(uname -r)/kernel/drivers/net -name realtek -type d) | |
fi |
# SPDX-License-Identifier: GPL-2.0-only | |
################################################################################ | |
# | |
# r8125 is the Linux device driver released for Realtek 2.5Gigabit Ethernet | |
# controllers with PCI-Express interface. | |
# | |
# Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved. | |
# | |
# This program is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the Free |