Skip to content

Instantly share code, notes, and snippets.

View gabrielmoura's full-sized avatar

Gabriel Moura gabrielmoura

View GitHub Profile
@gabrielmoura
gabrielmoura / simple_webdav.go
Created May 19, 2024 01:08
A simple WebDav server
package main
import (
"log"
"net/http"
"strings"
"golang.org/x/net/webdav"
)

Keybase proof

I hereby claim:

  • I am gabrielmoura on github.
  • I am gabrielmoura (https://keybase.io/gabrielmoura) on keybase.
  • I have a public key whose fingerprint is 4659 D153 C67D D688 F6C0 9040 F912 98F4 1995 6378

To claim this, I am signing this object:

@gabrielmoura
gabrielmoura / Dockerfile
Created March 2, 2024 22:16
Keycloak Tailwind Theme
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
RUN mkdir -p /mnt/rootfs
RUN dnf install --installroot /mnt/rootfs curl --releasever 9 --setopt install_weak_deps=false --nodocs -y && \
dnf --installroot /mnt/rootfs clean all && \
rpm --root /mnt/rootfs -e --nodeps setup
#####################################################################
FROM quay.io/keycloak/keycloak:23.0 as builder
# Enable health and metrics support
ENV KC_HEALTH_ENABLED=true
@gabrielmoura
gabrielmoura / PKGBUILD
Created February 8, 2024 22:37
Warp Terminal - Arch Linux
# Maintainer: irmluity <45vw4yz8g@mozmail.com>
pkgname=warp-terminal
pkgver=0.2024.01.30.16.52.stable_01
pkgrel=1
pkgdesc="Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster"
arch=(x86_64)
url='https://warp.dev'
license=('LicenseRef-warp')
depends=('hicolor-icon-theme' 'zlib' 'glibc')
@gabrielmoura
gabrielmoura / deploy.sh
Created October 29, 2022 18:45 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
{
"features": [
{
"geometry": {
"coordinates": [
-80.704,
37.325739
],
"type": "Point"
},
@gabrielmoura
gabrielmoura / widevine-flash_armhf.sh
Created October 1, 2019 13:58 — forked from ruario/1-README.md
Fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive
#!/bin/sh -eu
# Make sure we have wget or curl
available () {
command -v "$1" >/dev/null 2>&1
}
if available wget; then
DL="wget -O-"
DL_SL="wget -qO-"
elif available curl; then
@gabrielmoura
gabrielmoura / tmux.md
Created June 27, 2019 20:25 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@gabrielmoura
gabrielmoura / Server Docker
Last active June 18, 2019 17:51
Servidor Docker para ambiente de desenvolvimento
# v3 syntax
version: '3'
services:
postgres:
image: postgres
container_name: app-postgres
environment:
POSTGRES_PASSWORD: "password"
ports:
@gabrielmoura
gabrielmoura / Nvidia GPU principal
Created October 23, 2018 15:45
Nvidia GPU principal
sudo pacman -Rns bumblebee --noconfirm
sudo nano /etc/X11/xorg.conf.d/20-display.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection