Skip to content

Instantly share code, notes, and snippets.

View gbrls's full-sized avatar
πŸ΄β€β˜ οΈ
da lama ao caos

Gabriel Schneider gbrls

πŸ΄β€β˜ οΈ
da lama ao caos
View GitHub Profile
@gbrls
gbrls / init.lua
Created February 6, 2022 23:12
my messy neovim config
-- Install packer
local execute = vim.api.nvim_command
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
execute('!git clone https://github.com/wbthomason/packer.nvim '.. install_path)
end
-- vim.api.nvim_exec([[
@gbrls
gbrls / init.lua
Created February 25, 2022 23:51
latest init lua 25 feb 2022
-- Install packer
local execute = vim.api.nvim_command
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
execute('!git clone https://github.com/wbthomason/packer.nvim '.. install_path)
end
-- vim.api.nvim_exec([[
@gbrls
gbrls / scaffold.sh
Created July 14, 2023 14:11
scaffold for bash scripts
#!/usr/bin/env bash
log() {
printf "(~) $1\n" 1>&2
}
if [[ -z "$1" ]]; then
log "Usage $0 ..."
exit 1
fi
@gbrls
gbrls / hello.txt
Created December 15, 2023 21:54
esolang test
This language process each line as an unit.
╔══╗ ╔══╗ This line will push 2 and 2 to the stack.
β•šβ•β•β• β•šβ•β•β•
╔══╗ ╔══╗ This line will push again.
β•‘Β«0--0Β» β•‘ This will take 4 elements out of the stack, multiply them and put them back.
β•šβ•β•β• β•šβ•β•β•
╔══╗ ╔══╗ This will push 2 and 2...
β•šβ•β•β• β•šβ•β•β•
Β«00Β» This will take two elements out of the stack, and multiply them.
Β«()Β» ╔══╗ This line will take two elements out of the stack, multiply them, push the result and then push 2 to the stack
@gbrls
gbrls / license.py
Created August 4, 2024 17:10
angr-ctf
def first_check(project):
check0_start = base + 0x1211
check0_end = base + 0x12f5
initial_state = project.factory.entry_state(
addr = check0_start,
add_options = { angr.options.SYMBOL_FILL_UNCONSTRAINED_MEMORY,
angr.options.SYMBOL_FILL_UNCONSTRAINED_REGISTERS })
simulation = project.factory.simgr(initial_state)
@gbrls
gbrls / init.lua
Created October 3, 2024 21:11
neovim oct 2024
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.opt`
-- NOTE: You can change these options as you wish!
-- For more options, you can see `:help option-list`
@gbrls
gbrls / layers-02.rs
Created January 3, 2025 04:36
genuary-2025
//! Shows how to render to a texture. Useful for mirrors, UI, or exporting images.
use std::f32::consts::PI;
use bevy::{
prelude::*,
render::{
render_asset::RenderAssetUsages,
render_resource::{Extent3d, TextureDimension, TextureFormat, TextureUsages},
view::RenderLayers,