Skip to content

Instantly share code, notes, and snippets.

View zenojunior's full-sized avatar

Zeno Junior zenojunior

View GitHub Profile
@zenojunior
zenojunior / zeno.cfg
Created November 18, 2023 22:26
CS2 Auto exec
clear
//hud
r_fullscreen_gamma "2.6" // brilho geral da tela
hud_scaling "1" // tamanho da HUD
hud_showtargetid "1" // indicação do ID do inimigo na tela
cl_color "0" // sua cor no lobby
cl_hud_color "4" // cor da HUD
cl_allow_animated_avatars "0" // desabilita avatares animados
cl_showloadout "1" // mostra sempre os equipamentos
@zenojunior
zenojunior / treino.cfg
Last active November 18, 2023 22:25
CS2 Training
sv_cheats 1
mp_restartgame 1
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_maxmoney 60000
mp_startmoney 60000
mp_buy_anywhere 1
mp_buytime 60000
sv_infinite_ammo 2
@zenojunior
zenojunior / find-ideal-mtu.ps1
Last active December 24, 2022 09:24
Script para encontrar o MDU ideal para conexão através do PowerShell
function FindIdealMtu() {
$target = 'google.com'
$min = 0
$max = 1500
while ($min -le $max) {
$mid = [Math]::Floor(($min + $max) / 2)
$packetSize = $mid - 28
if ($packetSize -lt 0) {
$packetSize = 0
@zenojunior
zenojunior / settings.json
Created August 24, 2020 21:30
Windows Terminal Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"theme": "dark",
"defaultProfile": "{90cbdc15-f4fe-49d2-a245-ec066b70845f}",
"copyOnSelect": false,
"copyFormatting": false,
"tabWidthMode": "titleLength",
"showTabsInTitlebar": false,
"profiles":
{
@zenojunior
zenojunior / keybindings.json
Last active January 17, 2023 03:03
VSCode Configs
[
{
"key": "shift+alt+right",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+left",
"command": "outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
@zenojunior
zenojunior / line-clampin.scss
Last active August 8, 2023 14:28
Truncating Multiple Line Text
@mixin line-clampin($maxLines) {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: $maxLines;
-webkit-box-orient: vertical;
}
@zenojunior
zenojunior / what-wsl-version.sh
Created February 27, 2020 13:00
What WSL version? 1 or 2?
[ $(grep -oE 'gcc version ([0-9]+)' /proc/version | awk '{print $3}') -gt 5 ] && \
echo "WSL2" || echo "WSL1"
@zenojunior
zenojunior / text-contrast.html
Created April 11, 2018 11:44
Alterar texto com contraste de cor em relação ao background
<div id="exemple" style="background-color:ffff00">
<p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.</p>
</div>