Skip to content

Instantly share code, notes, and snippets.

View Arxero's full-sized avatar

Stanislav Ganev Arxero

View GitHub Profile
In the cold and bitter month of February, a new chapter was written in the annals of Awesome Cars history.
For it was then that a mighty plugin, known as Soccerjam, was unleashed upon the battlefield.
With lightning speed and precision, the players took to the pitch, their fingers dancing upon their keyboards with a frenzied intensity.
The air crackled with the electricity of their movements, as they battled fiercely for control of the ball.
But this was no ordinary game of soccer. No, this was a battle for supremacy, a contest of wills that would leave only the strongest standing. And as the players clashed and clashed again, it became clear that there could be only one victor.
In the end, it was the fearless warriors of Awesome Cars who emerged triumphant, their skill and cunning unmatched by any who dared stand in their way. And as they stood atop the podium, their victory secured, they knew that they had added another glorious chapter to the history of their beloved server.
@Arxero
Arxero / hazardous_farts.sma
Created October 9, 2021 22:05
Amx plugin Hazardous Farts farts converted to Amx Modx (hazardous_farts.amxx) by Huehue (https://amxx-bg.info/)
#include <amxmodx>
#include <engine>
#include <reapi>
#include <fakemeta>
new Float:g_fLastHF[MAX_PLAYERS + 1]
new g_iFartCount[MAX_PLAYERS + 1]
new g_sprGasPuffHF
new const g_szFartSounds[][] =
@Arxero
Arxero / gags.php
Created October 3, 2020 20:34
awesome cars gags logger
//plugin to use it with: https://www.amxx-bg.info/viewtopic.php?t=2744
//source script: https://forum.kgb-hosting.com/showthread.php?t=84992
//our server and forum: https://awesomecs.syntrwave.com/index.php
//instructions: you need to add your ftp login info of you cs server and then put the file in the root directory of you phpbb forum
//then just load your-website/{how ever you named this file}.php
<!doctype html>
<head>
<title>Gaglist</title>
<style type="text/css">
body {
@Arxero
Arxero / mysql or maria db charset.sql
Created July 30, 2020 17:38
FIX for Error Code: 1366. Incorrect string value: '\xF0\x9F\x98\x98' for column
Info > https://stackoverflow.com/questions/8906813/how-to-change-the-default-charset-of-a-mysql-table
SELECT * FROM `gw-local-2`.posts;
SET character_set_system = utf8mb4;
UPDATE `gw-local-2`.posts SET content = '😘 asd' where id='9552a88e-cd97-4130-8daa-d0bb48977ebc';
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
/* The actual fix */
ALTER TABLE `gw-local-2`.posts
<!doctype html>
<head>
<title>Banlist</title>
<style type="text/css">
body {
background-color: #111111;
width: 100%;
margin: 0px auto;
}
@Arxero
Arxero / chat_logger_v2.1a_php_script.php
Last active October 3, 2020 20:26
Chat Logger v2.1a PHP Script | Awesome Cars + Fun Maps
<!doctype html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<title>Chat</title>
<style type="text/css">
body {
@Arxero
Arxero / typescript.json
Created May 13, 2019 10:22
Maverick's TypeScript Snippets
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
@Arxero
Arxero / javascript.json
Created April 22, 2019 19:36
Maverick's JavaScript snippets
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
function solution(input) {
input = input.toString().split('').map(x => +x)
let evenNumbers = input.filter((x) => x % 2 == 0)
let oddNumbers = input.filter((x) => x % 2 != 0)
let evenSum = evenNumbers.reduce((a, b) => a + b)
let oddSum = oddNumbers.reduce((a, b) => a + b)
console.log(`Odd sum = ${oddSum}, Even sum = ${evenSum}`)
}
function solution(input) {
let games = input[0].split(' ')
for (let i = 1; i < input.length; i++) {
let inputLine = input[i].split(' ')
let command = inputLine[0]
let game = inputLine[1]
let expansion = ''
if (command == 'Expansion') {