Feature Name: (fill me in with a unique identity, myawesomefeature)
Type: (feature, enhancement)
Start Date: (fill me in with today's date, YYYY-MM-DD)
Author: (your names)
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.nio.ByteBuffer; | |
| import java.nio.channels.Channels; | |
| import java.nio.channels.ReadableByteChannel; | |
| import io.vertx.core.AsyncResult; | |
| import io.vertx.core.Context; | |
| import io.vertx.core.Future; | |
| import io.vertx.core.Handler; |
| #!/bin/sh | |
| # Enhanced backup script | |
| # Sends messages to Zabbix based on exit code of borg executable | |
| # | |
| # anthonyclark AT G MAIL | |
| # Shellcheck will still kvetch at you if notices are enabled | |
| # | |
| # This script will not work AS-IS but is only provided as such | |
| # NO WARRANTIES | |
| # This work is licensed under a Creative Commons Attribution 4.0 International License. |
| addEventListener('fetch', event => { | |
| event.respondWith(purgeCache(event.request)) | |
| }) | |
| async function purgeCache(request) { | |
| const url = new URL(request.url) |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package net.clementlevallois.sshautomator.serversecurization; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; |
| [ui] | |
| interface=curses | |
| editor=/usr/bin/nano | |
| [extensions] | |
| graphlog= | |
| purge= | |
| progress= | |
| rebase= | |
| convert= |
| #define _GNU_SOURCE | |
| #include <errno.h> | |
| #include <sched.h> | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/mount.h> | |
| #include <sys/stat.h> | |
| #include <sys/syscall.h> | |
| #include <sys/types.h> |
| # Make sure to modify "-Xms", "Xmx", "CICompilerCount", and "ParallelGCThreads" according to your PC hardware configuration... | |
| # ------------------------------------------- | |
| # Memory Settings (High-Memory Workstation) | |
| # ------------------------------------------- | |
| # Set the initial heap size (this reduces resizing overhead) | |
| -Xms2048m | |
| # Set the maximum heap size (adjust depending on your system; 2048m or 4096m is good for modern machines) |