Skip to content

Instantly share code, notes, and snippets.

View severgun's full-sized avatar

Sergey Vergun severgun

  • Saint-Petersburg, Russia
View GitHub Profile
@costerwi
costerwi / Abaqus MPI.md
Last active March 26, 2024 23:28
Overview of running Abaqus MPI on Linux

Abaqus MPI on Linux

MPI Versions Delivered with Abaqus

Abaqus version IBM Platform MPI (PMPI) Intel MPI (IMPI)
2018 to 2020 HF2 9.1.4.3 (S, E) 2017.2.174
2020 HF3 (FP2024) 9.1.4.3 2017.2.174 (S, E)
2020 HF4 (FP2030) 9.1.4.3 (S, E) 2017.2.174
2020 >=HF5 (FP2038) 9.1.4.3 (S) 2019 Update 7 (E)
@veteran29
veteran29 / baseline_basic.cfg
Last active October 29, 2022 18:43
Arma 3 Basic.cfg experiments
// This config intends to be a baseline for further adjustments.
// The default values for most of the settings seem to be more fit for good ol OFP days.
// Per socket (client) bandwidth settings
// These values are in BYTES
// value * 8 / 1000 to get kbits
class sockets {
// Packet MTU, keep lower than 1500 to not risk packet fragmentation, default 1400
// 1444 used on official BI servers
maxPacketSize = 1430;
@mergwyn
mergwyn / zfsbench
Last active May 2, 2024 08:28
ZFS benchmarking using fio
#!/usr/bin/env bash
set -o errexit
echo $(date):Random read
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Random write
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \
params ["_display"];
private _background = _display ctrlCreate ["RscPicture", -1];
_background ctrlSetPosition [
safezoneXAbs,
safezoneY,
safezoneWAbs,
safezoneH
];
class Extended_DisplayLoad_EventHandlers {
class RscDisplayLoading {
Mission_customLoadingScreen = "_this call compile preprocessFileLineNumbers 'initLoadingScreen.sqf'";
};
};
CBA_fnc_get3DENRotation = {
params ["_object"];
private _dir = vectorDir _object;
_dir params ["_xDir", "_yDir", "_zDir"];
private _up = vectorUp _object;
_up params ["_xUp", "_yUp", "_zUp"];
private _side = _dir vectorCrossProduct _up;
@guilherme
guilherme / gist:9604324
Last active May 17, 2024 14:09
Git pre-commit hook that detects if the developer forget to remove all the javascript console.log before commit.
#!/bin/sh
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
consoleregexp='console.log'
# CHECK
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0
then