Skip to content

Instantly share code, notes, and snippets.

View pafnuty's full-sized avatar
⚒️
No time for commit, just push!

Pavel Belousov pafnuty

⚒️
No time for commit, just push!
View GitHub Profile
@pafnuty
pafnuty / MPG_BearsPack.md
Created January 6, 2023 21:06
Добавление типов

Инструкция по установке типов чтбы после обновы dayz не приходилось страдать

  1. Скопировать папку MPG в папку с миссией (например ..\mpmissions\dayzOffline.chernarusplus).
  2. Открыть файл cfgeconomycore.xml в папке с миссией.
  3. Добавить после </defaults> следующий код:
<ce folder="MPG">
    <file name="MPG_BearsPack_types.xml" type="types"/>
</ce>
  1. Настроить нужные параметры в файле MPG_BearsPack_types.xml
@pafnuty
pafnuty / start_bec.bat
Created October 6, 2022 14:29 — forked from cp6/start_bec.bat
DayZ server start up batch file examples
@echo off
:start
::Server name
set serverName=Server1
::Server files location
set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer"
::Server Profile folder
set profile=Server1
::BEC location
set BECLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer\BEC"
process.env.TS_NODE_PROJECT = './tsconfig.json';
import * as moment from 'moment'
import * as mocha from 'mocha';
import { assert } from 'chai';
import axios from "axios";
@pafnuty
pafnuty / readme.md
Created March 14, 2022 11:39 — forked from glennschler/readme.md
AWS Docker VPN

Using AWS Linux setup an L2TP/IPSEC Soft Ether VPN

Consider HVM (SSD) EBS-Backed 64-bit m3.medium

  • us-east-1 => ami-1ecae776

  • Updates and dependencies

sudo yum -y update
sudo yum -y upgrade
sudo yum -y install docker git wget
@pafnuty
pafnuty / index.js
Created August 21, 2019 18:18
index.js for letu-write-version
/**
* Create `version.json` and `buildHash`
*/
const path = require('path')
const git = require('git-rev-sync')
const fs = require('fs')
const dotenv = require('dotenv')
dotenv.config({silent: true})
@pafnuty
pafnuty / ko.utils.3.5.0.signatures.js
Created July 18, 2019 08:56 — forked from hyle/ko.utils.3.5.0.signatures.js
KnockoutJS 3.5.0 utils (ko.utils) signatures
// knockout 3.5.0
ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ }
ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ }
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
@pafnuty
pafnuty / group-objects-by-property.md
Created May 16, 2019 06:55 — forked from JamieMason/group-objects-by-property.md
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2,
"string-quotes": "single",
"no-duplicate-selectors": true,
"color-hex-case": "lower",
"color-hex-length": "long",
"color-named": "never",
"selector-no-id": true,
@pafnuty
pafnuty / vds.menu.adclear.css
Created May 20, 2017 14:27
Убираем рекламу между строк на vds.menu
.col-xs-12 div[style="position:relative; display:block;"] + .panel-info {
opacity: 0;
}
.panel > .table > tbody:first-child > tr:first-child td {
border-top: solid 1px #ddd;
}
.table-striped-active {
background: inherit;
}
@pafnuty
pafnuty / image_gallery.tpl
Last active January 28, 2017 12:51
Выводим галлерею изображений из допполя с именем gallery, типа галерея.