Skip to content

Instantly share code, notes, and snippets.

View gcavalcante8808's full-sized avatar

Gabriel Abdalla Cavalcante gcavalcante8808

View GitHub Profile
@gcavalcante8808
gcavalcante8808 / gogs_service.log
Created April 7, 2017 13:44
Docker Gogs Error Log
gogs_gogs.2.ll10mxtekxk0@raleduc-services | [Macaron] PANIC: session(start): mkdir data: permission denied
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /usr/local/go/src/runtime/panic.go:489 (0x43348f)
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /tmp/go/src/github.com/gogits/gogs/vendor/github.com/go-macaron/session/session.go:156 (0x8f937e)
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /tmp/go/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:79 (0x8a0651)
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /tmp/go/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0x8828d2)
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /tmp/go/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0x8826cb)
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /tmp/go/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x8a08b2)
gogs_gogs.2.ll10mxtekxk0@raleduc-services | /tmp/go/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.
@gcavalcante8808
gcavalcante8808 / example.yml
Created December 10, 2017 21:41
Docker plugin install example
---
- name: Verify Weave Plugin
shell: docker plugin ls
register: docker_plugin_out
- name: Install Weave Plugin
shell: docker plugin install store/weaveworks/net-plugin:latest_release --grant-all-permissions
when: docker_plugin_out.stdout.find("weaveworks") == -1
@gcavalcante8808
gcavalcante8808 / .xmodmap
Last active July 2, 2019 23:20
Perfect Meta on linux
clear Control
clear mod4
clear mod1
remove Control = Control_L Control_R
keycode 133 = Meta_L Super_R
@gcavalcante8808
gcavalcante8808 / config_hadware.txt
Created August 21, 2019 02:18
config_hadware.txt
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
CPU Family: 0x6
@gcavalcante8808
gcavalcante8808 / proton.log
Created August 21, 2019 02:23
Age Of Empires DE Proton Logs
This file has been truncated, but you can view the full file.
======================
Proton: 1561645030 proton-4.2-9
SteamGameId: 1017900
Command: ['/media/data/SteamLibrary/steamapps/common/AoEDE/AoEDE_s.exe']
======================
ERROR: ld.so: object '/home/arthas/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/arthas/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/arthas/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/arthas/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
9335.006:0008:0009:trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\KERNEL32.dll" at 0x7b420000: builtin
@gcavalcante8808
gcavalcante8808 / Makefile
Created September 14, 2019 03:13
Using docker-compose as shell
SHELL = /usr/local/bin/docker-compose
.SHELLFLAGS = run --rm app sh -c
@gcavalcante8808
gcavalcante8808 / disable_super.md
Created September 14, 2019 16:00
Disable open menu with super on ubuntu mate 1804

gsettings set org.mate.mate-menu hot-key '' gsettings set com.solus-project.brisk-menu hot-key ''

@gcavalcante8808
gcavalcante8808 / Dockerfile
Created March 5, 2020 09:11
K3s with NFS Tools support
FROM rancher/k3s:v1.0.0 as base
# https://github.com/rancher/k3s/issues/390
# Because of the above issue, we want to add
# some software into our container, and alpine
# is easier to work with than scratch.
FROM alpine:3.10
# Do the same stuff in the k3s-scratch image's
# final stage.
@gcavalcante8808
gcavalcante8808 / kubectl.md
Created March 19, 2020 12:52 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@gcavalcante8808
gcavalcante8808 / docker-compose.yaml
Created September 23, 2020 02:01
Depends on based on healthchecks.
version: '2.4'
volumes:
db-data:
services:
db:
image: postgres:11-alpine
environment: