Skip to content

Instantly share code, notes, and snippets.

View GermanAizek's full-sized avatar
:shipit:
Red-eyed byte4cker

Herman Semenov GermanAizek

:shipit:
Red-eyed byte4cker
View GitHub Profile
@GermanAizek
GermanAizek / .settings.php
Last active March 15, 2020 23:08
При выполнении скрипта возникла ошибка. Включить расширенный вывод ошибок можно в файле настроек .settings.php
<?php
return array (
'exception_handling' =>
array (
'value' =>
array (
'debug' => true,
'handled_errors_types' => 4437,
'exception_errors_types' => 4437,
'ignore_silence' => false,
@GermanAizek
GermanAizek / .htaccess
Last active March 24, 2020 12:21
Выполнение PHP кода в HTML на веб сервере c FastCGI
AddHandler fcgid-script .php .phtml .html .htm
FCGIWrapper /var/www/php-bin-php74/u0811566/php .php
FCGIWrapper /var/www/php-bin-php74/u0811566/php .phtml
FCGIWrapper /var/www/php-bin-php74/u0811566/php .html
FCGIWrapper /var/www/php-bin-php74/u0811566/php .htm
@GermanAizek
GermanAizek / main.cpp
Last active April 17, 2020 09:04
Напишите функцию, которая принимает на вход знаковое целое число и печатает его двоичное представление, не используя библиотечных классов или функций.
#include <iostream>
#include <vector>
template <typename T>
auto printBinary(T decimalNumber) -> void
{
std::vector<T> result;
auto buffer = std::move(decimalNumber);
auto intermediateResult = std::move(decimalNumber);
if (buffer < 0)
#include <iostream>
#include <fcntl.h>
int main()
{
mode_t perms = S_IRWXU;
int fd = open("log", O_CREAT | O_EXCL, perms);
if (fd >= 0) {
std::cout << "[OK] CreateFileA\n";
} else {
@GermanAizek
GermanAizek / cop_explosion.lua
Last active October 18, 2020 02:49
cop_explosion.lua
local mat = Material("sprites/stalker_cop/ani_explo")
function EFFECT:Init(data)
local origin = data:GetOrigin()
local angles = data:GetAngles()
self.Time = 0
self.Data = data
ParticleEffect("cop_rgd_explosion", origin, angles)
@GermanAizek
GermanAizek / cop_muzzleflash.lua
Created October 18, 2020 02:51
cop_muzzleflash.lua
AddCSLuaFile()
function EFFECT:Init(data)
local ent = data:GetEntity()
local att = data:GetAttachment()
local origin = self:GetTracerShootPos2(data:GetOrigin(), ent, att) - data:GetNormal() * 20
local emitter = ParticleEmitter(origin)
local particle = emitter:Add("weapons/stalker_cop/muzzleflash_x", origin)
@GermanAizek
GermanAizek / cop_muzzleflash_plasma.lua
Created October 18, 2020 02:53
cop_muzzleflash_plasma.lua
AddCSLuaFile()
function EFFECT:Init(data)
local ent = data:GetEntity()
local att = data:GetAttachment()
local origin = self:GetTracerShootPos2(data:GetOrigin(), ent, att) - data:GetNormal() * 20
local emitter = ParticleEmitter(origin)
local rollDelta = (math.random() - math.random()) * 2
@GermanAizek
GermanAizek / cop_muzzleflash_sil.lua
Created October 18, 2020 03:05
cop_muzzleflash_sil.lua
AddCSLuaFile()
function EFFECT:Init(data)
local ent = data:GetEntity()
local att = data:GetAttachment()
local origin = self:GetTracerShootPos2(data:GetOrigin(), ent, att) - data:GetNormal() * 16
local emitter = ParticleEmitter(origin)
local particle = emitter:Add("particle/particle_smokegrenade", origin)
@GermanAizek
GermanAizek / sh_plugin.lua
Created October 18, 2020 03:33
nutscript plugin Area
local PLUGIN = PLUGIN
PLUGIN.name = "Area"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "Allows you to set area."
PLUGIN.areaTable = PLUGIN.areaTable or {}
nut.area = nut.area or {}
ALWAYS_RAISED["nut_areahelper"] = true
nut.config.add("areaFontSize", 26, "The size of the font of Area Display.",
function(oldValue, newValue)
@GermanAizek
GermanAizek / spawner_init.lua
Created October 18, 2020 03:36
plugin spawn for nutscript stalker rp
function CleanAnomalies()
local anomtable = {
"electra_anomaly",
"electra_anomaly_type2",
"kometa_kisel",
"kometa_electra",
"gazirovka_anomaly",
"jarka",
"tramplin_anomaly",
"kisel_anomaly",