Skip to content

Instantly share code, notes, and snippets.

View tonussi's full-sized avatar

Lucas Tonussi tonussi

View GitHub Profile
@tonussi
tonussi / tutorial-tensorflow-geforce1050.md
Last active August 27, 2021 17:12
How to Install Tensorflow 1.4.1 using Geforce 1050 GTX and Enabling Anaconda/Minicoda for Py27 or Py34+

NVIDIA CUDA Enabled GPUS says that its not available to work with CUDA interface unto Geforce 1050 for laptops. Although, maybe they don't update the website so frequently as things get upgrades in terms of video cards and all.

Here it are the steps to get everything working.

In case you are installing tersorflow, with UEFI Secure Boot already enabled in your computer, because of Msoft Windows stuff.

Install Ubuntu 16.04 LTS. Configuring Dual Boot if necessary. In the instalation, when the step for installing updates and third-party software comes, don't check those boxes, continue without them.

@tonussi
tonussi / JUnitAulaUm.java
Last active August 14, 2017 04:01
Exercício 1 - JodaTime Tarefa - INE5448-08208 (20172) - Tópicos Especiais em Aplicações Tecnológicas I
package test;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Locale;
import java.util.TimeZone;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
@tonussi
tonussi / icecores.md
Created January 6, 2017 20:56
ice-cores

Apparently many are not failure with the world war 2 plans found in Greenland.. If the ice formed over these planes by as much as 260 feet in just 46 years then it is clear that an ice sheet 2 mil. thick could accumulate in just 1869 years not 100,000 years. One year per ice layer in the core samples is clearly BS. Do the math.. 260 Y/ 46 ft = 5.652 ft per year...2 mi. of ice 5280 * 2 = 10560 ft / 5.652 ft per year = 1868.36 years.

After all if uniformitarianism 's is true then the amount of ice accumulation in the last 100,000 years should be the same as it has been over the last 46 years right? That would be 260 feet / 46 years * 100,000 years would be 565,217.3913 feet / 5280 feet per mile = 107.05 miles of ice... So according to ice core theory and uniformitarianism the ice caps should be over 107 miles thick. But that is not what we see. Not even close...Therefore the assumptions that one layer = one year must be wrong and using ice layer dating is pointless.


@tonussi
tonussi / load_hdf.py
Created December 17, 2016 19:16 — forked from robinkraft/load_hdf.py
Load hdf file with GDAL and Python, get NDVI
from osgeo import gdal
import os
layer_dict = {"reli":"reliability", "qual":"Quality", "ndvi":"NDVI", "evi":"EVI"}
def print_data(layer, data):
print data
print "data:", layer
print "type:", data.dtype
print "mean:", data.mean()
@tonussi
tonussi / NDVI.py
Created December 17, 2016 19:16 — forked from arnaldorusso/NDVI.py
NDVI.py
# script to merge several individual Tiffs (bands) into one multiband GeoTiff
# and potentially do calculations like NDVI, albedo, etc...
# from: http://archive.publiclaboratory.org/peru/2011-01-18-lima-peru-morflex/misc/NDVI.py
# import the GDAL and numpy libraries
from osgeo import gdal
from numpy import *
# ***************************************************************
# ok lets load in the first 4 bands of Landsat imagery into their own numpy arrays
@tonussi
tonussi / rasgando-veus-abertura.md
Last active December 14, 2016 21:36
Ministério Água e Sangue - Rasgando véus - Abertura

O nome "Rasgando véus" é uma ideia que vem de Mateus 27 onde Jesus fora crucificado e o véu do templo de Jerusalém se rasgou ao meio. Dentre as várias interpretações, uma delas pode ser que Jesus Cristo abriu o caminho para o fiel chegar até a Palavra de Deus. Outra interpretação pode ser que Jesus Cristo estabeleceu o caminho para chegar até Deus. Existem outras visualizações para esse acontecimento. Mas a proposta desse canal é rasgar véus e propagar a palavra de Deus adiante, promover a informatização gratuita sobre Jesus Cristo. Traduzir debates e palestrar, mostrar interpretações bíblicas legítimas e sãs, o máximo possível isentas de pacotes doutrinários e pressuposições destrutivas (se é que isso é possível, mas o importante é tentar). E tudo isso é feito por amor ao evangelho de Jesus Cristo, o evangelho de Deus.

Para entender da onde vem o nome Água e Sangue, vamos ver alguns versículos da Bíblia sobre a crucificação de Jesus. Ele morre em João 19:30 "E, quando Jesus tomou o vinagre, disse: Está cons

@tonussi
tonussi / archaeopteryx.md
Last active December 12, 2016 12:22
birds design: archaeopteryx

https://www.youtube.com/watch?v=0gdwchFjb-s

The huge gap at 29:28 showing 120 to 150 mya (wow, just about 30 mya), shows a tremendous gap of assumptions to me. To think that between that much time is needed complex bird like features like in the Archaeopteryx:

"Archaeopteryx skeletons had pneumatized vertebrae and pelvis. This indicates the presence of both a cervical and abdominal air sac, i.e., at least two of the five sacs present in modern birds. This in turn indicates that the unique avian lung design was already present in what most evolutionists claim is the earliest bird." (P. Christiansen and N. Bonde, Axial and Appendicular Pneumaticity in Archaeopteryx, Proceedings of the Royal Society of London, Series B. 267:2501–2505, 2000.)

To simple assume that this is the time needed..., for myself I prefer to believe that God created everything already with an immense diversity and what we have today is less diversity. Its decreasing in diversity and with an increasingly factor of animal extinction.

@tonussi
tonussi / removehistory
Created September 15, 2016 16:08
remove git history
I find that the --tree-filter option used in other answers can be very slow, especially on larger repositories with lots of commits.
Here is the method I use to completely remove a directory from the git history using the --index-filter option, which runs much quicker:
# Make a fresh clone of the repository
git clone ...
# Create tracking branches of all branches
for remote in `git branch -r | grep -v /HEAD`; do git checkout --track $remote ; done
@tonussi
tonussi / generator.php
Created September 9, 2016 20:20 — forked from tawfekov/generator.php
Doctrine2 Generate Entities form Existing Database
<?php
include '../vendor/autoload.php';
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
$classLoader->register();
// config
$config = new \Doctrine\ORM\Configuration();
@tonussi
tonussi / cputime.cpp
Created May 23, 2016 06:15
cputime.cpp
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* to be able to use alarm */
#include <unistd.h>
/* to be able to use basic signal handling (i.e: sigaction) */