Skip to content

Instantly share code, notes, and snippets.

View mtulio's full-sized avatar

Marco Braga mtulio

View GitHub Profile
@jcpowermac
jcpowermac / compile.patch
Last active January 6, 2023 00:19
golang, delve, rr, openshift-installer
diff --git a/hack/build.sh b/hack/build.sh
index c5b9156ed3..0c157442bf 100755
--- a/hack/build.sh
+++ b/hack/build.sh
@@ -52,7 +52,7 @@ export CGO_ENABLED=0
case "${MODE}" in
release)
- LDFLAGS="${LDFLAGS} -s -w"
+ #LDFLAGS="${LDFLAGS}"
@flaviut
flaviut / Setting up Emporia Vue 2 with ESPHome.md
Last active July 10, 2025 23:01
Setting up Emporia Vue 2 with ESPHome
### Ansible setup
# We don't want all the pip installs and various dependencies to conflict with
# normal yum packages, this solves the issue by creating an ansible virtualenv
# and tells ansible to use it
###
- hosts: all
become: true
tasks:
- name: "Create deployment folder"
file: path=/opt/deploy state=directory mode=0755
@halberom
halberom / output
Last active May 5, 2022 07:38
ansible - example of setting a complex var with set_fact
PLAY [foo] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [set_fact ] *************************************************************
ok: [localhost]
TASK: [debug ] ****************************************************************
ok: [localhost] => {
@pkuczynski
pkuczynski / LICENSE
Last active October 9, 2025 17:55
Read YAML file from Bash script
MIT License
Copyright (c) 2014 Piotr Kuczynski
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWAR
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active August 25, 2025 12:52 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.