Skip to content

Instantly share code, notes, and snippets.

@FALL1N1
FALL1N1 / PVE-HP-ssacli-smart-storage-admin.md
Created November 18, 2021 15:13 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@FALL1N1
FALL1N1 / x.sql
Last active November 14, 2019 19:46
This file has been truncated, but you can view the full file.
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 02, 2019 at 04:15 PM
-- Server version: 10.3.18-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
. /etc/rc.d/init.d/functions
. /etc/sysconfig/network
[ "$NETWORKING" = "no" ] && exit 0
nginx="/usr/sbin/nginx"
prog=$(basename $nginx)
NGINX_CONF_FILE="/etc/nginx/nginx.conf"
[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx
lockfile=/var/lock/subsys/nginx
make_dirs() {
# make required directories
package blokirai;
import org.bukkit.Server;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
GmTicket::GmTicket(Player* player, WorldPacket& recvData) : _createTime(time(NULL)), _lastModifiedTime(time(NULL)), _closedBy(0), _assignedTo(0), _completed(false), _escalatedStatus(TICKET_UNASSIGNED), _haveTicket(false)
{
_id = sTicketMgr->GenerateTicketId();
_playerName = player->GetName();
_playerGuid = player->GetGUID();
uint32 mapId, unk2;
uint8 unk1, t1, t2;
recvData >> mapId;
_mapId = mapId;
@FALL1N1
FALL1N1 / gist:29c64c1330a9154cb598
Last active August 29, 2015 14:17
Arena Spectator (all revisions) \\ // All you need to do is to put the both files in the CMakeLists.txt and ScriptLoader.cpp
From 8f0b67ad3fda93e0cb7c2d29a3b4eaa405146aca Mon Sep 17 00:00:00 2001
From: Emiliyan Kurtseliyanski <emiliyan9604bg@gmail.com>
Date: Fri, 13 Mar 2015 17:50:38 +0200
Subject: [PATCH] Properly implement the Arena Spectator
---
sql/custom/spectator.sql | 13 +
src/server/game/Accounts/RBAC.h | 6 +
src/server/game/Battlegrounds/Battleground.cpp | 24 +-
src/server/game/Battlegrounds/Battleground.h | 10 +
-- --------------------------------------------------------
-- Host: stewie.novahost.bg
-- Server version: 5.5.34-MariaDB-cll-lve - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 8.3.0.4694
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
[17:08:23] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.server.v1_7_R3.ReportedException: Ticking entity
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:714) ~[hysteria.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) ~[hysteria.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) ~[hysteria.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [hysteria.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [hysteria.jar:git-Spigot-1543]
Caused by: java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300) ~[?:1.7.0_55]
at net.minecraft.server.v1_7_R3.EnchantmentManager.a(SourceFile:147) ~[hysteria.jar:git-Spigot-1543]
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 7/23/14 5:08 PM
Description: Ticking entity
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300)
at net.minecraft.server.v1_7_R3.EnchantmentManager.a(SourceFile:147)
at net.minecraft.server.v1_7_R3.EntityLiving.c(EntityLiving.java:951)
@FALL1N1
FALL1N1 / gist:9874372
Created March 30, 2014 15:24
Load all CPP / H scripts from the Custom folder for CMake.
diff --git a/src/server/game/CMakeLists.txt b/src/server/game/CMakeLists.txt
index f455610..13f594a 100644
--- a/src/server/game/CMakeLists.txt
+++ b/src/server/game/CMakeLists.txt
@@ -48,6 +48,7 @@ file(GLOB_RECURSE sources_Tickets Tickets/*.cpp Tickets/*.h)
file(GLOB_RECURSE sources_Warden Warden/*.cpp Warden/*.h)
file(GLOB_RECURSE sources_Weather Weather/*.cpp Weather/*.h)
file(GLOB_RECURSE sources_World World/*.cpp World/*.h)
+file(GLOB_RECURSE sources_Custom Custom/*.cpp Custom/*.h)