Skip to content

Instantly share code, notes, and snippets.

View bastos's full-sized avatar
:shipit:
Shipping something

Tiago Bastos bastos

:shipit:
Shipping something
View GitHub Profile
# vim:ft=kitty
## name: Tokyo Night
## license: MIT
## author: Folke Lemaitre
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_night.conf
background #1a1b26
foreground #c0caf5
@bastos
bastos / branch
Created February 8, 2023 01:13
Bash script to select a branch and checkout using charmbracelet/gum
#!/bin/sh
if ! [ -d .git ]; then
echo "This directory does not have a Git repository"
exit 1
fi
repository=$(git branch | awk '{print $NF}' | sort -r | gum filter --limit=1)
if [ -z "$repository" ]; then
@bastos
bastos / uses.md
Created February 2, 2023 20:24
Uses
@bastos
bastos / ufw_plex.md
Created April 18, 2022 15:20 — forked from nmaggioni/ufw_plex.md
Plex Media Server UFW rule

/etc/ufw/applications.d/plexmediaserver

[plexmediaserver]
title=Plex Media Server (Standard)
description=The Plex Media Server
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp

[plexmediaserver-dlna]
title=Plex Media Server (DLNA)
description=The Plex Media Server (additional DLNA capability only)
@bastos
bastos / NatualScrollingInWindows.ps1
Created May 5, 2021 13:38 — forked from 101v/NatualScrollingInWindows.ps1
Powershell script to enable natural scrolling in Windows
# View registry settings
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
# Change registry settings
# Reverse mouse wheel scroll FlipFlopWheel = 1
# Normal mouse wheel scroll FlipFlopWheel = 0
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
# Restore default scroll direction
# Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 1 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 0 }
(use-package dockerfile-mode)
(set-frame-font "Monaco 18") ; Use Monaco
(setq create-lockfiles nil) ; Stop creating .# files
;; (global-auto-revert-mode t)
(global-set-key (kbd "s-l") 'goto-line) ;; Cmd-l go-to line
(global-set-key (kbd "s-t") 'counsel-projectile-find-file) ;; Cmd-l go-to line
(global-superword-mode 1)
@bastos
bastos / init.el
Last active November 1, 2017 02:52
;; Package initialization
(package-initialize)
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
;; Package
(require 'all-the-icons)
(require 'evil)
@bastos
bastos / keybase.md
Created November 29, 2016 21:24
keybase.md

Keybase proof

I hereby claim:

  • I am bastos on github.
  • I am bastos (https://keybase.io/bastos) on keybase.
  • I have a public key whose fingerprint is C14E F6D6 72BC B712 6279 6224 4957 64FC E39F 29EA

To claim this, I am signing this object:

@bastos
bastos / sublime
Created August 5, 2014 19:00
Sublime Config
{
"color_scheme": "Packages/User/base16-eighties.dark (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"*.pid",
"*.pyc",
".rvmrc",
".rbenv-gemsets",
@bastos
bastos / cm42_dict.md
Last active December 18, 2015 18:29 — forked from edgurgel/cm42_dict.md
  • Brennar:

    • v.t.d. o ato de derrubar, derramar, algo ou alguma coisa sem a intenção do praticante da ação. Isso serve pra qualquer coisa água, almoço (ex. Brennou yourself <- sempre ocorre), café (mais costumeiramente).
  • Joiçar:

    • v.t.i. O ato de ficar até tarde no escritório; ou
    • v.t.i. Ficar mechendo no celular o tempo todo, principalmente em eventos sociais; ou
    • v.t.i. Não tomar café e/ou almoçar; ou
    • v.t.d. Brigar com Mateus porque ele sempre Mateusa (vide Mateusar) com o que eu falo ¬¬
  • Halanzar: