Skip to content

Instantly share code, notes, and snippets.

View thicolares's full-sized avatar
🌎

Thiago Colares thicolares

🌎
View GitHub Profile
@thicolares
thicolares / wget-fotolog-2018.md
Created December 27, 2018 23:07
Download an entire Fotolog profile as of 2018 using wget

Run:

$ wget -r -l5 -E -e robots=off --convert-links --no-parent https://fotolog.com/username/

-r Turn on recursive retrieving.

-l5 Specify recursion maximum depth level depth. 5 is more than necessary, but the --no-parent keeps it under control.

-E (or --adjust-extension) Add the correct extensions to HTML and CSS files.

@thicolares
thicolares / gist:05d608abf5ce269180817657de0a3a4a
Created July 12, 2018 23:17
Run Jupyter Notebook with Docker
docker container run --rm \
-p 8888:8888 \
--user root \
-e NB_GID=100 \
-v "$$PWD:/home/jovyan/work" \
-it --name jupyter jupyter/base-notebook \
@thicolares
thicolares / Dockerfile
Last active June 12, 2018 23:06
Build a docker image to run python script
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD . /code/
@thicolares
thicolares / gist:0b03fd8ec3cf9e25322088f149c13695
Created April 22, 2018 12:31 — forked from llbbl/gist:b08ed19281c06483242b
Howto Add PhpStorm to Ubuntu Unity Launcher

PhpStorm 7.0x

Create a file ~/.local/share/applications/jetbrains-phpstorm.desktop

With the following value:

@thicolares
thicolares / new-object.js
Last active January 7, 2018 14:38
object-literals.
let myObj = {
name: 'Thiago Colares',
city: 'Salvador'
}
@thicolares
thicolares / .htaccess
Last active November 23, 2015 13:16
Usando a HTML5 History Api no Angulajs (testado na versão 1.4.7)
Options +FollowSymLinks
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule (.*) index.html [L]
</ifModule>
<scene>
<group translateY="0.30" rotateY="-0.84">
<!-- body -->
<cube scaleX="1" scaleY="0.6" scaleZ="2" translateY="2" translateX="-0.43" translateZ="1"/>
<cube scaleX="1" scaleY="0.6" scaleZ="1" translateY="2.3" translateX="-0.43" translateZ="1.5" rotateX="0.2"/>
<cube scaleX="1" scaleY="0.6" scaleZ="1" translateY="2.3" translateX="-0.43" translateZ="0.5" rotateX="-0.2"/>
<cube scaleX="1" scaleY="0.6" scaleZ="1" translateY="2.4" translateX="-0.43" translateZ="1"/>
<cube scaleX="1" scaleY="0.4" scaleZ="0.7" translateY="2.0" translateX="-0.43" translateZ="2.4"/>
<!-- leg FL -->
<scene>
<group translateY="0" rotateY="-0.05">
<!-- ground -->
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="0" translateZ="0"/>
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="0.87" translateZ="1" rotateY="1.57"/>
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="0" translateZ="2"/>
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="-0.87" translateZ="1" rotateY="1.57"/>
<!-- tha roof -->
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="2" translateX="0" translateZ="0"/>
<scene>
<group translateY="0.30" rotateY="-0.56">
<!-- ground -->
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="0" translateZ="0"/>
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="0.87" translateZ="1" rotateY="1.57"/>
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="0" translateZ="2"/>
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="0" translateX="-0.87" translateZ="1" rotateY="1.57"/>
<!-- tha roof -->
<cube scaleX="2" scaleY="0.25" scaleZ="0.25" translateY="2" translateX="0" translateZ="0"/>