Skip to content

Instantly share code, notes, and snippets.

View comigor's full-sized avatar
:shipit:
Shippin'

Igor Borges comigor

:shipit:
Shippin'
View GitHub Profile
@comigor
comigor / parser.md
Created March 30, 2022 16:39
Cypher RPG System PDF Abilities Parser

Cypher RPG System PDF Abilities Parser

Although Cypher seems to be a nice RPG system, their shitty PDF layouting makes me sick when creating characters, specially when choosing their abilities. I was anxious going back and forth, needing to remember the page I was reading before. This is insane. Also, having the abilities parsed, it's way easier to create beautiful and automated character sheets on Google Docs and whatnot.

To run it, first install Xpdf command line tools and add to your $PATH.

Also, make sure you have the same official digital version (buy "Cypher System Rulebook, Revised Edition" here) of the PDF I do (or alter the variables and margin parameters).

$ md5sum Cypher_System_-_Revised_Edition.pdf
@thiagokokada
thiagokokada / LEIAME.md
Last active May 14, 2024 20:57
[Vivo Fibra] Usando RTF3507VW-N1 em modo bridge

[Vivo Fibra] Usando RTF3507VW-N1 em modo bridge

Por que usar o RTF3507VW-N1 em modo bridge?

O roteador Askey RTF3507VW-N1 fornecido pela Vivo tem vários problemas:

  • Existe um cache interno de DNS (usando o dnsmasq?) bugado: ao fazer a mesma requisição DNS duas vezes seguidas, a primeira resposta vem correta, porém na seguinte temos:
@janeczku
janeczku / 00-cloud-config.yml
Last active May 24, 2024 04:06
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@Aghassi
Aghassi / docker-compose.yml
Last active April 1, 2024 21:03
LinuxServer Docker Compose: Plex, Sonarr, Radarr, NZBGet, Let's Encrypt, Time Machine
version: '2'
services:
plex:
image: linuxserver/plex
container_name: plex
volumes:
- /path/to/plex/config:/config
- /path/to/plex/Movies:/data/movies
- /path/to/plex/Shows:/data/tvshows
- /path/to/plex/transcode:/data/transcode
@laduke
laduke / zerotier-rpi-bridge.md
Last active January 26, 2024 13:01
Various Network Configuration Output

Motivation

Use a Raspberry Pi as a bridge into my home LAN. The pi is plugged into a switch, which is plugged into an airport express, which is plugged into a cable modem; Nothing fancy.

This isn't a tutorial. Just some example output from a working setup.

steps

off the top of my head, here's the order I would do it in:

  • make sure plain old device to device zerotier is working with my LAN/Router/Firewall/ISP
@roblabla
roblabla / HABILITIES.md
Last active March 14, 2024 03:24
We believe in your habilities.

Muh Switch Keys

So you want to decrypt switch content ? Well, the good news is that all the tools required to do that are written up! The great news is, since this is crypto we're talking about, you'll have to find the keys. Yourself. Like it's easter.

So here you can find a template of the $HOME/.switch/prod.keys file that hactool uses to decrypt content. It contains all the SHA256 and location of the keys and seeds, so you can find them yourselves.

Note that all the seeds (the keys that end with _source) are used along with the master_key_## to derive an actual key. If you have somehow obtained the key without the seed, you can rename xxx_source to xxx_## (where ## is the master key number) and put your key there.

How the heck do I obtain dem keys ?

@comigor
comigor / circle-install-android.sdk.sh
Last active November 21, 2022 16:41
Install Android SDK on a CircleCI OSX machine
#!/bin/bash
# from https://gist.github.com/Igor1201/5036401727a9c178193b1e0688e1eb3c
set -eo pipefail
export ANDROID_HOME="/usr/local/share/android-sdk"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
# set variables
ANDROID_SDK_URL="https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip"
ANDROID_SDK_SHA="4a81754a760fce88cba74d69c364b05b31c53d57b26f9f82355c61d5fe4b9df9"
@ldez
ldez / gmail-github-filters.md
Last active June 9, 2024 05:23
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@craigbeck
craigbeck / introspection-query.graphql
Created April 6, 2016 20:20
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
@jgamblin
jgamblin / crashsafari.html
Created January 26, 2016 00:07
crashsafari
<!DOCTYPE html>
<html>
<body>
<h1>Crash Safari</h1>
<script>
var total = "";
for( var i = 0; i < 100000; i++ ) {
total = total + i.toString();
history.pushState(0,0, total );
}