Skip to content

Instantly share code, notes, and snippets.

@neriberto
neriberto / rtx3600_gpu.md
Last active March 19, 2022 18:56
pytorch, tensorflow installations to work with RTX 3600

Using conda to install pytorch in a new environment

Nvidia driver installed:

  • Driver: 511.79
  • Cuda: 11.5
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch-nightly
@neriberto
neriberto / rasp.py
Created July 25, 2021 22:40
raspberry code to read from gpio
import RPi.GPIO as GPIO
count = 0
last_button = 'nothing'
def button_up_callback(channel):
global last_button
global count
if last_button == 'up':
return
@neriberto
neriberto / Study - Logistic Regression.ipynb
Last active June 4, 2021 01:01
Study - Logistic Regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neriberto
neriberto / vt_upload.py
Last active May 4, 2021 12:42
simple VT Upload
import os
import sys
import time
import requests
VT_API_KEY = "API_KEY_GOES_HERE"
VT_URL = "https://www.virustotal.com/api/v3/files"
@neriberto
neriberto / test_apscheduler.py
Last active November 27, 2020 20:42
testing apscheduler
import logging
import os
import time
import pytz
from datetime import datetime
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.jobstores.memory import MemoryJobStore
from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor
@neriberto
neriberto / all_hashes.txt
Last active June 12, 2018 20:29
Fake Adobe Reader - Samples and Yara rule
9d76abe0d6e2b32c5ca4b68fb263b9e915d341bea96c8d02a1c372ec60a11b5b
9ab7b12d3fb79f41bfaaf234073722884070445e00178b14a58cbf6611a821e3
3ec46840e0dbbe8b7f79b870344ca20c7653511d98151921ae9aa6e3d1f43fc8
398f0cfa814b31dd8d1483f0d60a2c9bf97ad20b992f14012abb2d4db6f46ca2
d011105bae9fb7a98c128c19389dd988aa83fa0558b8ca519a554b7bd6ee7747
10a49a952aadb510e6da0b87e7267c32bc38cbbbe571027836db75d5acabd8a4
11c87dde6d5900e47d93124624f2b20afcd9b5df4045c865ec582c3c536eec18
1a8e986ae10b6399a9ef7b08edf51c307e054ca43173e87a7c7e9b0c1b4ead65
2af473d18877c93a7acd9185bf38b50da526d56624b3a724894614ae1c9bd99a
fac03a0efd71af5e14f25c0d256e9fbfe80b46ef1b6e75a182afe49ec0b4c723
@neriberto
neriberto / bobp-python.md
Created April 26, 2017 23:48 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@neriberto
neriberto / MongoDB.md
Last active September 21, 2015 22:56
MongoDB Tips

Apagar um database:

use mydb; 
db.dropDatabase();

Pegar o último registro:

@neriberto
neriberto / longpatth.py
Created June 5, 2014 13:49
Descobre o maior caminho no sistema operacional
import os
sizepath = 0;
longpath = None;
def calc(path):
global longpath
global sizepath
length = len(path)
if length > sizepath: