Skip to content

Instantly share code, notes, and snippets.

View Voltra's full-sized avatar
🎯
Focusing

Voltra

🎯
Focusing
View GitHub Profile
@Voltra
Voltra / Install-Git-Flow.ps1
Last active January 28, 2026 10:01
Git Flow installation for Git for Windows
###<summary>
### Install script for GIT FLOW
###</summary>
###<remarks>
### Installs GIT FLOW into user binary directory of Windows GIT x64 installation
###</remarks>
###<revisionHistory>
### <revision version="2026.01.28" date="2026-01-28" author="Voltra, github.com/Voltra">Custom tweaks</revision>
### <revision version="2025.11.07" date="2025-11-07" author="Holger Boskugel, github.com/SphereSoftNET">Initial version</revision>
###</revisionHistory>
@Voltra
Voltra / robots.txt
Created October 28, 2025 22:17
Basic Robots.txt (with anti AI stuff)
# As a condition of accessing this website, you agree to abide by the following
# content signals:
# (a) If a content-signal = yes, you may collect content for the corresponding
# use.
# (b) If a content-signal = no, you may not collect content for the
# corresponding use.
# (c) If the website operator does not include a content signal for a
# corresponding use, the website operator neither grants nor restricts
# permission via content signal with respect to the corresponding use.
@Voltra
Voltra / .gitattributes
Created September 28, 2025 15:46
Git Attributes
* text=auto eol=lf
*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
@Voltra
Voltra / composerDevMajorBump.sh
Created July 30, 2024 20:26
Update composer dependencies to their latest version
#!/bin/bash
@Voltra
Voltra / .bash_aliases
Created June 27, 2024 16:51
Bash aliases
#!/bin/bash
## Git
alias git-add="git add ."
alias git-commit="git commit -a -m"
alias git-push="git push origin master"
alias git-pull="git pull origin master"
alias git-s="git status"
alias git-d="git diff"
@Voltra
Voltra / FilamentFabricatorController.php
Last active March 1, 2025 15:26
filament-fabricator with spatie/laravel-translatable
<?php
namespace App\Http\Controllers\Web;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Str;
use Spatie\RouteAttributes\Attributes\Fallback;
use Spatie\RouteAttributes\Attributes\Get;
use Spatie\RouteAttributes\Attributes\Where;
@Voltra
Voltra / owning.hpp
Created August 18, 2023 21:15
Opaque owning pointer
#include <memory>
template <class T, class Deleter = std::default_delete<T>>
class owning_ptr {
private:
T* ptr;
Deleter deleter;
explicit owning_ptr(T* rawPtr, Deleter d = {}) : ptr{rawPtr}, deleter{d} {}
@Voltra
Voltra / ffmpeg.sh
Last active November 19, 2025 18:20
ffmpeg
# Fixing weird encoding issues from foreign files
ffmpeg -hwaccel auto -i ./video.mp4 -acodec copy -vcodec copy ./video.fixed.mp4
# Remove audio
ffmpeg -hwaccel auto -i ./render.mp4 -an -vcodec copy ./render.opti.mp4
# Good enough compression, exact same audio
ffmpeg -hwaccel auto -i ./render.mp4 -acodec copy -vcodec libx264 -crf 20 ./render.opti.mp4
# Transcode to NVENC (HEVC flavor). Good enough compression, exact same audio
@Voltra
Voltra / init.lua
Created February 5, 2023 15:08
nvim config
-- Install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
local is_bootstrap = false
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
is_bootstrap = true
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }
vim.cmd [[packadd packer.nvim]]
end
require('packer').startup(function(use)
@Voltra
Voltra / untrustworthy_devs_and_projects.md
Last active November 19, 2022 15:07
Non trustworthy OSS developers/projects

Non trustworthy OSS developers/projects

Developers/projects that have proven, by past actions in their repositories, to be untrustworthy

Other similar initiatives

Projects