Skip to content

Instantly share code, notes, and snippets.

View bkmeneguello's full-sized avatar

Bruno Meneguello bkmeneguello

View GitHub Profile
@bkmeneguello
bkmeneguello / skelfs.c
Created June 28, 2013 12:58
FUSE implementation skelekton
/*
FUSE: Filesystem in Userspace
Copyright (C) 2013 Bruno Meneguello
This program can be distributed under the terms of the GNU GPL.
gcc -Wall skelfs.c `pkg-config fuse --cflags --libs` -o skelfs
*/
#define FUSE_USE_VERSION 26
@bkmeneguello
bkmeneguello / resume.json
Last active November 5, 2021 23:32
Resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Bruno Kühnen Meneguello",
"label": "Software Consultant",
"image": "https://media-exp1.licdn.com/dms/image/C4D03AQEv5PFaS9ty8g/profile-displayphoto-shrink_800_800/0/1516591295046?e=1641427200&v=beta&t=U8ARp0aqtn1UAQ1MLKlSHdOhy6VhYSAyuPjg6wUsxUY",
"email": "contact@meneguello.com",
"url": "http://github.com/bkmeneguello",
"summary": "Software development and programming languages are my world. I love to learn and use new technologies and techniques.\n\nIn the last years I've learned and used Go, Scala, Python, Groovy, C#, and C++, along with old acquaintances like Java, PHP, and Javascript.\n\nI actively contribute to some open-source projects like Jenkins (and its plugins) with code and bug tracking.\n\nIn my current job, I'm the leader in new technologies adoption and brought several changes to the team. This consolidates me as the focal point when new projects and de
@bkmeneguello
bkmeneguello / hideDotFiles.ps1
Created November 1, 2021 17:33
Hide files/directories which start with a doc char in Windows
ATTRIB +H /s /d C:\.*
@bkmeneguello
bkmeneguello / gwip.sh
Created August 25, 2021 12:00
Git WIP alias
alias gwip='git commit -a -m "work in progress - fixup"'
@bkmeneguello
bkmeneguello / pulse-headset-auto-switch.md
Created December 21, 2020 12:52
Change from A2DB to HSP/HPF on microphone request

/etc/pulse/default.pa

load-module module-bluetooth-policy auto_switch=2

@bkmeneguello
bkmeneguello / enable-git-ssh.ps1
Created December 5, 2020 15:12
Enable SSH auth on Git in Windows
# Enable SSH Agent service from an Admin Shell
Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent
# Allow Git to use system SSH agent instead ob embedded
# from https://snowdrift.tech/cli/ssh/git/tutorials/2019/01/31/using-ssh-agent-git-windows.html
[Environment]::SetEnvironmentVariable("GIT_SSH", "$((Get-Command ssh).Source)", [System.EnvironmentVariableTarget]::User)
@bkmeneguello
bkmeneguello / gist:c29da541d3183c26c792d628a46ad826
Created December 18, 2017 23:14
Raspberry Pi Docker "cgroups: memory cgroup not supported on this system"
echo -n " cgroup_memory=1 swapaccount=1" >> /boot/cmdline.txt
@bkmeneguello
bkmeneguello / readSelectedText.sh
Created September 2, 2020 12:48
Reads the selected text
xclip -out -selection primary | xclip -in -selection clipboard; xsel --clipboard | tr "\n" " " | espeak
@bkmeneguello
bkmeneguello / flush_disk_cache.sh
Created June 25, 2020 12:38
Flush disk and watch until done
#!/usr/bin/env sh
sync &
watch -d grep -e Dirty: -e Writeback: /proc/meminfo
#!/bin/bash
if (( EUID != 0 )); then
echo "You must be root to do this." 1>&2
exit 1
fi
K9S=$(command -v k9s || echo /usr/local/bin/k9s)
$K9S version
URL=$(curl https://api.github.com/repos/derailed/k9s/releases/latest | jq -r '.assets[].browser_download_url' | grep k9s_$(uname -s)_$(uname -m))
curl -sSL $URL | tar xzOf - k9s | tee $K9S > /dev/null