Skip to content

Instantly share code, notes, and snippets.

View rbutera's full-sized avatar
🎯
Focusing

Rai Butera rbutera

🎯
Focusing
View GitHub Profile
@rbutera
rbutera / prac.cfg
Created July 19, 2024 18:10
counter-strike 2 practice config
sv_cheats 1;
bot_kick;
mp_limitteams 0;
mp_autoteambalance 0;
mp_maxmoney 60000;
mp_startmoney 60000;
mp_buytime 9999;
mp_buy_anywhere 1;
mp_freezetime 0;
mp_roundtime 60;
@rbutera
rbutera / autoexec.cfg
Created July 19, 2024 18:09
counter-strike 2 config 2024
bind mwheeldown "jomp"
bind mwheelup "jomp"
bind z +duck
bind a +sprint
bind e +forward
bind s +left
bind d +back
bind f +right
bind b +runthrow
bind q drop
@rbutera
rbutera / mario.js
Created January 11, 2024 16:58
mario.c for cs50 except in javascript
const input = 1;
function makeLine(blocks, maxBlocks) {
const numSpaces = maxBlocks - blocks;
let output = ``
const addSpace = () => { output = output + ' '}
const addPadding = () => {
@rbutera
rbutera / voicemeeter.xml
Created March 15, 2023 16:00
voicemeeter 2023
<?xml version="1.0" encoding="utf-8"?>
<VBAudioVoicemeeterSettings>
<VoiceMeeterDeviceConfiguration>
<OptionDev mme='512' wdm='512' ks='512' asio='0' srasio='0' msA1='0.00' msA2='0.00' msA3='0.00' msA4='0.00' msA5='0.00' />
<ExternalFXsend send1ch1='0' send1ch2='0' send2ch1='0' send2ch2='0' />
<ExternalFXreturn ret1ch1='0' ret1ch2='0' ret2ch1='0' ret2ch2='0' />
<InputDev index='1' type='1' name="Microphone (Arctis Nova Pro Wir" />
<InputDev index='2' type='4' name="Microphone (Yeti Nano)" />
<InputDev index='3' type='1' name="Microphone (Voicemod Virtual Au" />
<InputDev index='4' name="-" />
ai_expression_frametime "0"
anim_3wayblend "0"
bink_materials_enabled "0"
bink_preload_videopanel_movies "0"
building_cubemaps "1"
cl_SetupAllBones "0"
cl_aggregate_particles "0"
cl_allowAnimsToInterpolateBackward "0"
cl_always_ragdoll_radius "0"
cl_anim_detail_dist "0"
@rbutera
rbutera / init.lua
Created March 9, 2023 16:50
broken astronvim init.lua
local config = {
header = {
" ",
" ",
" ",
" ",
" β–ˆβ–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€β–ˆβ–ˆβ–ˆβ€ β–ˆβ–ˆβ–ˆ",
" β–ˆβ–ˆβ–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€β–ˆβ–ˆβ–ˆβ–ˆβ€ β–ˆβ–ˆβ–ˆβ–ˆ",
" β–ˆβ–ˆβ€β–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€β–ˆβ–ˆβ€β–ˆβ–ˆβ–ˆβ–ˆβ€β–ˆβ–ˆ",
" β–ˆβ–ˆβ€β€β–ˆβ–ˆβ€β–ˆβ–ˆβ€β€β–ˆβ–ˆβ€ β–ˆβ–ˆβ€β€β–ˆβ–ˆβ€β–ˆβ–ˆβ€β€β–ˆβ–ˆβ€β€β–ˆβ–ˆ",
@rbutera
rbutera / zshrc
Created September 27, 2022 16:13
zshrc with path for ec2 instances
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@rbutera
rbutera / extensions.md
Created September 26, 2022 08:15
vscode settings for diagnosis 2022

Installed Extensions

  • 2gua.rainbow-brackets
  • aaron-bond.better-comments
  • alefragnani.Bookmarks
  • alexandersage.angular1-code-snippets
  • andys8.jest-snippets
  • artdiniz.quitcontrol-vscode
  • Asuka.insertnumbers
  • auroral-ui.aurora-future
@rbutera
rbutera / zsh.sh
Created September 25, 2022 13:56
install zsh and oh-my-zsh for amazon linux
#!/bin/bash
# install zsh
sudo yum install zsh util-linux-user -y
# configure oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /home/ec2-user/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions /home/ec2-user/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/spaceship-prompt/spaceship-prompt.git /home/ec2-user/.oh-my-zsh/custom/themes/spaceship-prompt --depth=1
git clone https://github.com/jeffreytse/zsh-vi-mode /home/ec2-user/.oh-my-zsh/custom/plugins/zsh-vi-mode
@rbutera
rbutera / spaceshiprc.zsh
Created September 25, 2022 13:52
lexstep spaceship prompt settings
# Display time
SPACESHIP_TIME_SHOW=true
# Display username always
SPACESHIP_USER_SHOW=always
SPACESHIP_HOST_SHOW=always
SPACESHIP_HOST_SHOW_FULL=true
# Do not truncate path in repos
SPACESHIP_DIR_TRUNC_REPO=false