Skip to content

Instantly share code, notes, and snippets.

View automata's full-sized avatar

Vilson Vieira automata

View GitHub Profile
@automata
automata / quick-tmux-guide.md
Last active December 17, 2025 14:01
Recipe to configure a sweet tmux

Quick and dirty tmux manual ;-)

Install tmux:

sudo apt install tmux

Copy the tmux.conf file bellow to your home:

cp tmux.conf ~/.tmux.conf
@automata
automata / rising.py
Created June 5, 2020 20:22
Code poem published to http://code-poems.com/ at 2012
# Three.py ~ Rising
from time import sleep
from random import random
mom = open(__file__).read()
while True:
child = open(str(random()) + '.py', 'w')
child.write(mom)
@automata
automata / README.md
Created February 3, 2019 21:48
SCRIPT-8
@automata
automata / README.md
Created February 3, 2019 21:35
SCRIPT-8
@automata
automata / INSTALL.md
Last active November 20, 2018 17:56
Install Tensorflow 1.12 (CUDA 9.0 + cuDNN) on Ubuntu 16.04 (NVIDIA GTX1060)

Install NVIDIA drivers (they were already installed, but it should be as simple as):

sudo apt-get install nvidia-384 nvidia-modprobe

Install CUDA:

Get URL from https://developer.nvidia.com/cuda-downloads
mkdir ~/nvidia-install ; cd ~/nvidia-install
wget -c https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run

chmod +x cuda_9.0.176_384.81_linux-run

@automata
automata / .gitlab-ci.yml
Created June 5, 2018 00:56
Heroku Docker Container Release from GitLab CI (without Heroku CLI)
image: docker:latest
# Remember to set required vars as secret vars on GitLab CI settings
variables:
DOCKER_DRIVER: overlay
CONTAINER_TEST_IMAGE: ${CI_REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}_test
CONTAINER_DEPLOY_IMAGE: ${HEROKU_REGISTRY}/${CI_PROJECT_NAME}/web
HEROKU_API_KEY: ${HEROKU_AUTH_TOKEN}
services:
@automata
automata / about.md
Created February 20, 2018 03:14
Using @mattdesl's Texel with Three.js (WebGL renderer)
npm install texel@1.0.15 --global
texel index.js --open
ffmpeg -framerate 24 -i tmp/%03d.png -y output.gif
ffmpeg -framerate 24 -i tmp/%03d.png -y -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4

output.gif

@automata
automata / run.sh
Created September 5, 2016 02:24
Screenshot HTML content
#!/bin/bash
# First install phantomjs: `npm install phantomjs`
./node_modules/.bin/phantomjs script.js
git clone https://github.com/imgflo/imgflo.git
cd imgflo
git submodule update --init
TRAVIS_OS_NAME=osx make travis-deps
npm install
rm install/lib/libs/libsqlite*.dylib
make run RELOCATE_DEPS=true NOAUTOLAUNCH=1 GRAPH=graphs/checker.json