Skip to content

Instantly share code, notes, and snippets.

View thiagobraga's full-sized avatar

Thiago Braga thiagobraga

View GitHub Profile
@thiagobraga
thiagobraga / readme.md
Last active January 6, 2021 20:12
[Git] Como ignorar arquivos localmente sem incluir no .gitignore

Ignorar alterações em arquivos com update-index

git update-index --assume-unchanged package.json
git update-index --assume-unchanged resources/assets/sass/old_css/helper.css
git update-index --assume-unchanged resources/views/errors/500.blade.php
git update-index --assume-unchanged resources/views/layouts/admin/head.blade.php
git update-index --assume-unchanged resources/views/layouts/admin/master.blade.php
git update-index --assume-unchanged resources/views/layouts/student/head.blade.php
git update-index --assume-unchanged resources/views/layouts/student/master.blade.php
@thiagobraga
thiagobraga / js.blade.php
Created November 24, 2020 21:38
Laravel BrowserSync
@if (env('APP_ENV') === 'local')
<script async src="http://localhost:3000/browser-sync/browser-sync-client.js"></script>
@endif
@thiagobraga
thiagobraga / install-dbeaver.sh
Last active November 7, 2020 03:25
Install DBeaver #Ubuntu
sudo add-apt-repository ppa:serge-rider/dbeaver-ce -y
sudo apt-get update
sudo apt-get install dbeaver-ce -y
@thiagobraga
thiagobraga / settings.json
Last active November 4, 2020 17:28
Sublime Text settings #Sublime
{
"font_face": "Fira Code Regular",
"font_size": 9,
"line_padding_top": 8,
"line_padding_bottom": 8,
"color_scheme": "Packages/Nord/Nord.sublime-color-scheme",
"ignored_packages":
[
"Vintage"
],
@thiagobraga
thiagobraga / xdebug.ini
Created October 31, 2020 20:54
Xdebug config
xdebug.idekey=docker
xdebug.remote_connect_back=0
xdebug.remote_host=10.0.1.2
xdebug.remote_port=9001
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.cli_color=1
xdebug.profiler_enable=0
@thiagobraga
thiagobraga / setxkbmap-freezes-gnome.md
Last active October 24, 2020 13:12
setxkbmap freezes Gnome at first key press on Ubuntu 20.04 #Linux

setxkbmap freezes Gnome at first key press

Just before Gnome shell is completely started, Ubuntu freezes completely, nothing is clickable. Only mouse moves. It is possible to note that clock freezes to, the seconds stopped. When it returns, I can see this entries on /var/log/syslog:

Oct 24 10:04:03 thiago-ubuntu gnome-shell[2183]: Window manager warning: Overwriting existing binding of keysym ffb6 with keysym ffb6 (keycode 55).
Oct 24 10:04:03 thiago-ubuntu gnome-shell[2183]: Window manager warning: Overwriting existing binding of keysym ffb7 with keysym ffb7 (keycode 4f).
Oct 24 10:04:03 thiago-ubuntu gnome-shell[2183]: Window manager warning: Overwriting existing binding of keysym ffb1 with keysym ffb1 (keycode 57).
Oct 24 10:04:03 thiago-ubuntu gnome-shell[2183]: Window manager warning: Overwriting existing binding of keysym ffb2 with keysym ffb2 (keycode 58).
Oct 24 10:04:03 thiago-ubuntu gnome-shell[2183]: Window manager warning: Overwriting existing binding of keysym ffb1 with keysym ffb1 (
@thiagobraga
thiagobraga / organize-path-environment-variable.md
Last active October 24, 2020 13:13
Manage PATH environment variable in a more organized way #Linux

Organize PATH environment variable

The idea is to use an array, PATHS for example, to store the folders needed to be in PATH, and use the method join(), taken from this post, to merge correctly all paths.

#!/bin/bash

# Define PATH environment variable in a more organized way.
# ------------------------------------------------------------------------------
PATHS=(
@thiagobraga
thiagobraga / install-redis-cli-ubuntu.md
Last active October 24, 2020 13:16
Snippet for install redis-cli on Ubuntu
@thiagobraga
thiagobraga / .hyper.js
Created October 18, 2020 13:36
HyperJS backup settings
module.exports = {
config: {
fontFamily: 'Fira Code',
fontSize: 12,
fontWeight: 'normal',
fontWeightBold: 'bold',
backgroundColor: '#000',
borderColor: '#333',
foregroundColor: '#fff',
selectionColor: 'rgba(255,255,255,0.075)',
@thiagobraga
thiagobraga / windows-terminal.json
Created October 18, 2020 05:51
Windows Terminal backup config
{
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"initialCols": 90,
"initialRows": 25,
"requestedTheme": "system",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": true,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?\u2502",