apt install glances
- Remove old initd startup config
rm /etc/init.d/glances
- Create new systemd config
import argparse | |
import base64 | |
''' | |
Convert files to b64 or back. | |
Author: visuve | |
''' | |
parser = argparse.ArgumentParser(description="Encode or decode file to base64") |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <Windows.h> | |
struct AutoClose | |
{ | |
void operator()(void* handle) | |
{ |
#include <cstdio> | |
#include <utility> | |
template <typename T, size_t N> | |
constexpr void Reverse(T (&str)[N]) | |
{ | |
constexpr size_t len = N - 2; | |
for (size_t i = 0, j = len; i <= j; ++i, --j) | |
std::swap(str[i], str[j]); |
apt install glances
rm /etc/init.d/glances
""" | |
2021-09-07 22:06:42.377 [2a88.23e0] D: main: Debug-viesti | |
2021-09-07 22:06:42.377 [2a88.23e0] I: main: Informatiivinen viesti | |
2021-09-07 22:06:42.377 [2a88.23e0] .W: main: Varoitusviesti | |
2021-09-07 22:06:42.377 [2a88.23e0] *E: main: Virheviesti | |
""" | |
from datetime import datetime | |
import os | |
import random |
2021-09-07 22:06:42.377 [2a88.23e0] D: main: Debug-viesti
sudo apt install ./filebeat-7.15.0-amd64.deb
output.logstash
sectionfilebeat.inputs
section where the type is filestream
/home/ite/f-secure.log
path in it#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" roulette.py - dare to play?""" | |
__author__ = "visuve" | |
__credits__ = ["visuve"] | |
__license__ = "0BSD" | |
import ctypes | |
import os |
#include <iostream> | |
#include <algorithm> | |
#include <array> | |
template <typename T> | |
constexpr T swap_endian(T value) | |
{ | |
union | |
{ | |
T value; |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\Defender] | |
@="Scan File with Windows Defender" | |
"Icon"="C:\\Program Files\\Windows Defender\\MpDlpCmd.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Defender\command] | |
@="cmd.exe /k \"\"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -Scan -ScanType 3 -File \"%1\"\"" | |