Skip to content

Instantly share code, notes, and snippets.

View Calinou's full-sized avatar
🦊

Hugo Locurcio Calinou

🦊
View GitHub Profile
@Calinou
Calinou / autoexec.cfg
Last active November 3, 2021 22:01
My configuration file for Counter-Strike: Global Offensive
// Make the viewmodel take less space on the screen by moving it towards the bottom right corner.
viewmodel_fov 54
viewmodel_offset_x 2.5
viewmodel_offset_y -2
viewmodel_offset_z -2
// Decrease viewmodel bobbing to be less distracting.
cl_viewmodel_shift_left_amt 0.5
cl_viewmodel_shift_right_amt 0.25
cl_bob_lower_amt 5

I was able to activate it, if anyone needs, just follow these steps:

1: edit:

sudo vim /usr/local/etc/php-fpm.d/www.conf

2: add to the end of the file:

@Calinou
Calinou / script.sh
Last active October 30, 2020 17:18
Bash script boilerplate (safer programming practices + allow running from any location without using `cd` beforehand)
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@Calinou
Calinou / Caddyfile
Created October 3, 2020 19:54
Caddyfile for hosting PHP/October website locally (place in the app's root folder)
http://localhost:8000
encode gzip
php_fastcgi unix//var/run/php-fpm/www.sock
file_server
@Calinou
Calinou / no-agc.sh
Last active September 14, 2020 13:08
Disable/bypass PulseAudio automatic gain control
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
while sleep 0.1; do
# Use `pacmd list-sources` to get the input source name.
# 65535 is 100% volume.
pacmd set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo 40000
done
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active December 29, 2025 19:10
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@Calinou
Calinou / matterbridge.toml
Last active September 11, 2020 12:18
Godot Discord-IRC bridge configuration (Matterbridge)
[irc]
[irc.freenode]
Server="irc.freenode.net:6697"
Nick="GDDiscord"
NickServNick="GDDiscord"
NickServPassword="SECRET"
UseTLS=true
UseSASL=true
SkipTLSVerify=false
EditDisable=false
@rbeesley
rbeesley / ansi-color.cmd
Last active October 9, 2024 03:53
Inspired by Daniel Crisman's BASH script from http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html. This file echoes a bunch of color codes to the terminal to demonstrate how they will render. The `Data Segment` portion of the file defines the table layout and allows the user to configure whatever matrix of ANSI Escape Sequence control characte…
@ECHO OFF & :: ANSI-COLOR :: Authored by Ryan Beesley :: https://github.com/rbeesley
GOTO :DEFINE_MACROS
%=- Entry point after macro definitions -=%
:MAIN
SETLOCAL ENABLEDELAYEDEXPANSION
CALL :PARSE_ARGS %1 %2 %3 %4 %5 %6 %7 %8 %9
:: Error when parsing
IF ERRORLEVEL 1 %@exit% %ERRORLEVEL%
:: Parsing success
@Calinou
Calinou / sftgan.sh
Last active July 13, 2022 00:41
Shell script to prepare images and upscale them using SFTGAN
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
SFTGAN_DIR="/home/hugo/Documents/Git/xinntao/SFTGAN"
print_header() {
echo -e "\n\e[1m[*] $1\e[0m"
}
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active December 29, 2025 20:19
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https: