Skip to content

Instantly share code, notes, and snippets.

View rafasousa's full-sized avatar
:octocat:
☕️+💻 = ❤️

Rafael Sousa rafasousa

:octocat:
☕️+💻 = ❤️
  • São Paulo - Brazil
View GitHub Profile
@giggio
giggio / links.md
Last active April 20, 2022 21:03
Links palestra "Usando um ambiente Linux completo no Windows com WSL e VSCode"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@Burry
Burry / Organizr iOS Plex Redirect.js
Last active January 19, 2026 09:01
Intercepts all links to Plex in Organizr and redirects to the Plex app on an iOS device
// Intercepts all links to Plex in Organizr and redirects to the Plex app on an
// iOS device. Plex for Android apparently does not support such URL schemes, and I
// can't find any alternative Android solution, so this script is iOS-only.
// Add to Organizr Settings > Customize > Appearance > Custom JavaScript.
////////////////////////////////////////////////////////////////////////////////////
// Credit to https://forums.plex.tv/t/deep-links/205583 for finding Plex deep links
// Use Bowser to check if we're on iOS
var plexiOSCheck = bowser.osname === 'iOS';
@rahman541
rahman541 / ES6-Setup.md
Last active May 22, 2023 04:04
ES6 Setup with nodemon

ES6 Setup

npm init -y
npm i --save-dev nodemon
npm add babel-preset-env babel-cli

Create a .babelrc config in your project root. Insert the following

{
 "presets": ["env"]
@BernCarney
BernCarney / FreeNAS11 Media Stack.md
Last active August 1, 2025 09:29
FreeNAS 11 - Jails setup for Plex, NGINX, PlexPy, Sonarr, Radarr, Jackett, Ombi, and Nzbget

FreeNAS 11 setup for Plex, PlexPy, Sonarr, Radarr, Jackett, NZBGet, Organizr, NGinx, and Ombi

I am currently working on updating this guide after updating my media server. I have added notes on things I no longer use but may update those sections in the future for users who still use them. As of now, I have everything working with the exception of Ombi and the plugins I no longer use.

@alexellis
alexellis / k8s-pi.md
Last active March 1, 2026 16:50
K8s on Raspbian
@andrewn
andrewn / instructions.md
Last active June 1, 2024 12:41
Testing SSL (LetsEncrypt certificate and loopback domain)

Testing SSL (LetsEncrypt certificate and loopback domain)

General approach

This sets up a publically-available domain that loops back to localhost IP address 127.0.0.1. For example, this address could be localhost.example.com if we controlled the example.com domain. This relies on having a public domain name whose DNS records you can control. We can then generate LetsEncrypt certificates for this domain.

Our HTTP server runs on localhost:80 (default HTTP port). This lets us visit http://localhost.example.com in a web browser and see the server running on localhost:80.

We then run an HTTPS proxy server on localhost:443 (default HTTPS port) that uses the LetsEncrypt certificates we generated for localhost.example.com. Visiting https://localhost.example.com hits the proxy, which returns the correct certificates meaning the browser displays the "Secure" message. The proxy then passes the request through to the HTTP server.

@so0k
so0k / kubectl.md
Last active February 19, 2026 16:57
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
@s1lvester
s1lvester / rancheros_on_freenas.md
Last active March 23, 2021 08:36
Installing RancherOS on FreeNAS using iohyve

RancherOS on FreeNAS

Date: 2016-10-04 Version: 1.2
Author: s1lvester@bockhacker.me

This is my short documentation on how to install RancherOS on FreeNAS.

Versions used:
- RancherOS v.0.6.1
  • FreeNAS 9.10-stable