Skip to content

Instantly share code, notes, and snippets.

View gilbertoca's full-sized avatar

Gilberto Caetano de Andrade gilbertoca

View GitHub Profile
@gilbertoca
gilbertoca / gitblit_on_opensuse
Last active July 13, 2016 15:13
Manual install of the GitBlit project on openSUSE
#folder structure
#GITBLIT_PATH=/opt/gitblit/app/[VERSION]
#GITBLIT_BASE_FOLDER=/opt/gitblit/data
#GITBLIT_HTTP_PORT=0
#GITBLIT_HTTPS_PORT=8443
#GITBLIT_LOG=/opt/gitblit/app/[VERSION]/gitblit.log
#run as gitblit user
groupadd gitblit
useradd -g gitblit -d /opt/gitblit gitblit

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@eliotsykes
eliotsykes / git-aware-bash-prompt.md
Last active August 7, 2025 19:25
Git Aware Bash Prompt
@mbodo
mbodo / Linux - Systemd cheatsheet.md
Last active March 20, 2026 14:23
Systemd cheatsheet

Linux - Systemd cheatsheet

systemctl

Activates a service immediately:

systemctl start foo.service

Deactivates a service immediately:

@magnetikonline
magnetikonline / README.md
Last active March 13, 2026 00:36
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script which will:

  • Iterate all commits made within a Git repository.
@lichti
lichti / Warsaw-brwser.txt
Created June 26, 2017 13:28
warsaw-browser - Itau, CEF, BB e outros.
Imagem Docker para rodar um firefox com o warsaw configurado para acesso a bancos brasileiros.
É uma boa opção para acessar bancos através de GNU/Linux.
Have a nice day.
More Info:
https://hub.docker.com/r/lichti/warsaw-browser/
https://github.com/lichti/containers4docker/tree/master/warsaw-browser
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 31, 2026 18:26
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@KaMeHb-UA
KaMeHb-UA / .bashrc
Created March 18, 2018 16:13
Beautiful and useful .bashrc example for TRUECOLOR terminals
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
How to keep git log and less output on the screen
http://serebrov.github.io/html/2014-01-04-git-log-and-less-keep-output.html
Just for git commands:
git config --global --replace-all core.pager "less -iXFR"
For less globally (including git) - add to .bashrc / .zshrc / etc:
export LESS=-iXFR
The options we set for less are:
@dvsingh9
dvsingh9 / spring.boot.90mb.Dockerfile
Created May 3, 2020 17:35
Spring boot ultra slim (less than 90 mb) docker build script
# (1) use Alpine Linux for build stage
FROM alpine:3.11.3 as build
# (2) install build dependencies
RUN apk --no-cache add openjdk11
RUN apk --no-cache add maven
# build JDK with less modules
RUN /usr/lib/jvm/default-jvm/bin/jlink \
--compress=2 \
--module-path /usr/lib/jvm/default-jvm/jmods \