Run following command to enable credential caching:
$ git config credential.helper store
$ git push https://github.com/repo.git
Username for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>
local echoes = {} | |
local echo_thickness = 10 | |
local color_mask = Color(0,0,0,0) | |
local function drawStencilSphere( pos, ref, compare_func, radius, color, detail ) | |
render.SetStencilReferenceValue( ref ) | |
render.SetStencilCompareFunction( compare_func ) | |
render.DrawSphere(pos, radius, detail, detail, color) | |
end |
--[[********************************************************** | |
Конфигурационная зона | |
**************************************************************]] | |
local CanEnterCmd = {"governor", "admin", "superadmin", "minister"} -- Таблица, содержащая названия групп, которые могут вводить команду | |
local WarnTime = 10 --60 * 5 -- Время, через которое будет проводиться напоминание игрокам о рестарте | |
--[[********************************************************** | |
Оповещание "вводителя" команды | |
**************************************************************]] | |
local function report(activator, num, time, message) |
local VKBOT = VK.New("") | |
local function log(s) | |
file.Append("vk_img_downloader.txt",os.date("%H:%M") .. " > " .. s .. "\n") | |
print(s) | |
end | |
VK_IMG_QUEUE = VK_IMG_QUEUE or {} | |
local queue_in_process |
-- Для получения таблицы, типа {5,3,6,1,4,2,7} (1,7) | |
local function getArrayWithUniqueRandomNumbers(min,max) | |
local array = {} | |
local tmp = {} -- для расброса | |
for i = min,max do | |
table.insert(tmp,i) | |
end | |
repeat |
#/bin/bash | |
SERV_DIR=$HOME'/gm/path_to/garrysmod' | |
mkdir 'tmp' | |
cd 'tmp' | |
git clone 'https://github.com/Noiwex/luadev.git' luadev | |
git clone 'https://github.com/Metastruct/EPOE.git' epoe | |
git clone 'https://github.com/FPtje/FProfiler.git' fprofiler |
docker run --name=transmission \ | |
-v $PWD/config:/config \ | |
-v $PWD/downloads:/downloads \ | |
-v $PWD/watch:/watch \ | |
-e TZ=Europe/London \ | |
-p 9091:9091 -p 51413:51413 \ | |
-p 51413:51413/udp \ | |
linuxserver/transmission |
Run following command to enable credential caching:
$ git config credential.helper store
$ git push https://github.com/repo.git
Username for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>
local pat_mcomment_lua = "(%-%-%[(=*)%[.-%]%2%])" | |
local pat_mcomment_cpp = "(/%*.-%*/)" | |
local function stripMultiline(content) | |
return content | |
:gsub(pat_mcomment_lua, "") | |
:gsub(pat_mcomment_cpp, "") | |
end | |
-- https://img.qweqwe.ovh/1556969630528.png | |
-- #TODO shitcoded heavy function |
-- Copyright (c) 2016 John Schember <john@nachtimwald.com> | |
-- | |
-- Permission is hereby granted, free of charge, to any person obtaining | |
-- a copy of this software and associated documentation files (the "Software"), | |
-- to deal in the Software without restriction, including without limitation | |
-- the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
-- and/or sell copies of the Software, and to permit persons to whom the | |
-- Software is furnished to do so, subject to the following conditions: | |
-- | |
-- The above copyright notice and this permission notice shall be included in |
local APIURL = "https://api.monobank.ua" | |
/* | |
Ошибки: | |
400 = Period must be no more than 31 days | |
400 = Missing required field 'from' | |
403 = Unknown 'X-Token' (левый токен) | |
429 = Too many requests | |
*/ |