Skip to content

Instantly share code, notes, and snippets.

View becauro's full-sized avatar
😎

Michel Pereira becauro

😎
View GitHub Profile
@becauro
becauro / AdbCommands
Created April 2, 2024 12:02 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@becauro
becauro / gist:fe257e465a20a94a571bc1e67c0f811b
Last active January 30, 2024 15:38
Aguns básicos conceitos de POO embutidos em um código Python
class Animal:
cor = ""
grupo = ""
_favFood = ""
__age = 0
def __init__ (self, cor, grupo='"sem grupo"'):
self.cor = cor
self.grupo = grupo
@becauro
becauro / aslr.py
Created November 23, 2023 09:04 — forked from cmattoon/aslr.py
Enable/Disable ASLR on Linux
#!/usr/bin/env python
"""
mv aslr.py /usr/bin/aslr && chmod +x /usr/bin/aslr
Be careful!
"""
import os, sys
FLAG_ENABLE = 2
FLAG_DISABLE = 0
@becauro
becauro / unhide.py
Created August 18, 2023 04:33 — forked from keyboardcrunch/unhide.py
Excel workbook unhider.
#!/usr/bin/python3
"""
./oledump.py -p plugin_biff --pluginoptions "-o bound -a" sample.xls
1: 4096 '\x05DocumentSummaryInformation'
2: 236 '\x05SummaryInformation'
3: 104629 'Workbook'
Plugin: BIFF plugin
0085 14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible
' 00000000: CA D9 00 00 00 00 06 00 \xca\xd9......'
@becauro
becauro / unhide.py
Created August 18, 2023 04:24 — forked from bontchev/unhide.py
A script for unhiding hidden Excel sheets
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
try:
import olefile
@becauro
becauro / Add Favorites to LocalStorage
Last active August 19, 2021 19:18
How to set a Favorite content to LocalStorage. In this case, the content come from recipeDetail Props
addToLocalStorage() {
const { id, type, recipeDetail: { strArea, strCategory,
strAlcoholic, strDrink, strMeal, strMealThumb, strDrinkThumb } } = this.props;
const favoriteRecipes = JSON.parse(getItem('favoriteRecipes')) || [];
const newFavoriteRecipe = [
...favoriteRecipes,
{
id,
type: type.replace('s', ''),
@becauro
becauro / checklist-react-redux.md
Created July 9, 2021 15:30 — forked from fsrocha-dev/checklist-react-redux.md
Checklist do React Redux

Antes de iniciar

  • pensar sobre o que haverá no estado global;
  • pensar sobre quais actions iremos precisar na aplicação;

Instalação

  • npx create-react-app my-app-redux;
  • npm install --save redux react-redux;
  • npm install. (Caso necessário)

Criar dentro do diretório src:

@becauro
becauro / README-Template.md
Created March 17, 2020 06:52 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites