Skip to content

Instantly share code, notes, and snippets.

Filipe Laíns FFY00

Block or report user

Report or block FFY00

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@FFY00
FFY00 / openapi.yml
Created Aug 6, 2019
Sample OpenAPI specification that uses anyOf in the request parameters
View openapi.yml
openapi: 3.0.0
servers:
- url: 'http://localhost:8080'
info:
version: 0.0.1
title: ratbag-emu
license:
name: MIT
url: 'https://raw.githubusercontent.com/libratbag/ratbag-emu/master/LICENSE'
View PKGBUILD.discord-canary.sh
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
pkgname=discord-canary
_pkgname=DiscordCanary
pkgver=0.0.82
pkgrel=4
pkgdesc="All-in-one voice and text chat for gamers that's free and secure. (canary build)"
arch=('x86_64')
url='https://discordapp.com'
license=('custom')
@FFY00
FFY00 / Makefile
Last active Jun 12, 2019
My resolution of the S.O. 2nd Practical Test
View Makefile
CFLAGS :=$(CFLAGS) -Wall -Wextra -std=c99 -pedantic -ggdb
LDFLAGS :=$(LDFLAGS) #-lm -pthread
PROGRAM =is_ASCII
SRCDIR =source
INCDIR =include
OUTDIR =out
SRCS :=$(wildcard $(SRCDIR)/*.c)
@FFY00
FFY00 / grafico-densidade.sh
Last active Jun 1, 2019
Pauta de Tecnologias de Internet
View grafico-densidade.sh
#!/bin/sh
pdftotext -layout "$@" - | sed -e '/^[0-9][0-9][0-9][0-9][0-9][0-9]/!d' -e 's|,|\.|g' -e '/FALTOU/d'| awk -F '[[:space:]][[:space:]]+' '{print $4}' | R -e 'd <- density(scan(file("stdin"))); plot(d, main="Notas de SI"); polygon(d, col="red")'
@FFY00
FFY00 / tracker-list.txt
Last active May 19, 2019
Torrent Trackers
View tracker-list.txt
http://104.28.1.30:8080/announce
http://104.28.16.69/announce
http://107.150.14.110:6969/announce
http://109.121.134.121:1337/announce
http://114.55.113.60:6969/announce
@FFY00
FFY00 / compile.sh
Last active Jun 4, 2019
Call Trace (GCC)
View compile.sh
#!/bin/bash
gcc -finstrument-functions -g -c main.c -o main.o
gcc -c trace.c -o trace.o
gcc -no-pie trace.o main.o -o main
@FFY00
FFY00 / solaar-migration.py
Last active May 2, 2019
Solaar Migration
View solaar-migration.py
#!/usr/bin/env python
# Requires https://github.com/PyGithub/PyGithub/pull/1107
from github import Github
from github.GithubException import UnknownObjectException
g = Github("TOKEN_HERE")
print("Logged...")
repo_from = g.get_repo('pwr/Solaar')
repo_to = g.get_repo('pwr-Solaar/Solaar')
@FFY00
FFY00 / grafico-densidade.sh
Last active May 23, 2019
Pauta Sistemas Operativos - 1ª Prova Prática
View grafico-densidade.sh
#!/bin/bash
pdftotext -layout "$@" - | sed -e '/^ [0-9][0-9][0-9][0-9][0-9][0-9]/!d' -e 's|,|\.|g'| awk -F '[[:space:]][[:space:]]+' '{print $6}' | R -e 'd <- density(scan(file("stdin"))); plot(d, main="Notas de SO"); polygon(d, col="red")'
@FFY00
FFY00 / palindromes.c
Last active Apr 28, 2019
Google Kickstarter 2019 - Ex.1 Palindromes
View palindromes.c
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* let's assume lines have a maximum of 200 characters */
#define BUF_SIZE 200
/* use binary AND to find if number is odd,
if LSB is 1 (2^0 = 1 is set) then number is odd */
#define odd(n) (n & 1)
@FFY00
FFY00 / hibernation-lid.sh
Last active Mar 25, 2019
Disable wake up from hibernation on lid open
View hibernation-lid.sh
#!/bin/bash
# Script name: /lib/systemd/system-sleep/hibernation-lid.sh
# Purpose: Disable wakeup events when hibernating
if [ "$2" = "hibernate" ]; then
# Hibernating. Disabling/Re-enabling lid wakeup events.
echo LID > /proc/acpi/wakeup
fi
You can’t perform that action at this time.