Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Shipping something

Tiago Bastos bastos

:shipit:
Shipping something
View GitHub Profile
@bastos
bastos / uses.md
Created February 2, 2023 20:24
Uses
View uses.md
@bastos
bastos / ufw_plex.md
Created April 18, 2022 15:20 — forked from nmaggioni/ufw_plex.md
Plex Media Server UFW rule
View ufw_plex.md

/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 NatualScrollingInWindows.ps1
# 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 }
View private.el
(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
View init.el
;; 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
View 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
View sublime
{
"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
View 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:

View .bash_profire
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo " @" ${ref#refs/heads/}
}
function count_git_changes {
out=$(git status --porcelain 2> /dev/null) || return
git status --porcelain | grep -E "^\ M|\?\?|^ D" | wc -l | awk '{ print " *" $1 " "}'
}
View gist:2962006
RS Stock No. Qty Description Unit Price Goods Value
756-8308 1 Raspberry Pi Type B Single Board Computer £21.60 £21.60
726-3053 1 Micro USB Euro power supply for Raspberry Pi £4.89 £4.89
2000114151 1 HDMI cable for Raspberry Pi £3.39 £3.39
Running Total £29.88
Standard Delivery (Despatch expected within 5 week(s)) £4.95
Order total