- GPG command line tools - https://www.gnupg.org/download/
- Git (Windows only) - https://gitforwindows.org/
- Open Terminal. On windows: Open Git Bash terminal.
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "waiting for the following arguments: username + max-page-number" | |
exit 1 | |
else | |
name=$1 | |
fi | |
if [ -z "$2" ]; then |
Install ffmpeg.
$ sudo apt-get install ffmpeg
Run command on terminal or create a rec.sh
ledate=$(date +"%Y%m%d-%H%M%S")
ffmpeg -f x11grab -s 1366x768 -r 25 -i :0.0 -acodec pcm_s16le -f alsa -ac 2 -i pulse ~/desktop_$ledate.mkv
If run rec.sh
...
# -*- coding: utf-8 -*- | |
import asyncio | |
import re | |
import asyncio_redis | |
import tornado.concurrent | |
import tornado.httpclient | |
import tornado.web | |
import tornado.platform.asyncio |
# -*- coding: utf-8 -*- | |
import urllib.request | |
import re | |
resp = urllib.request.urlopen('http://dolarhoje.com/').read() | |
resp = resp.decode('utf-8') | |
dolar = re.search( | |
r'<input type="text" id="nacional" value="(?P<dolar>[^"]+)"/>', resp | |
) |
import asyncio | |
import json | |
import aiohttp | |
SCHOOL_URL_FMT = 'http://educacao.dadosabertosbr.com/api/escola/{}' | |
SEARCH_SCHOOL_URL = ( | |
'http://educacao.dadosabertosbr.com/api/escolas/buscaavancada?' | |
'situacaoFuncionamento=1&energiaInexistente=on&aguaInexistente=on&' |
This article is now published on my website: When are circular imports fatal?
{ | |
// enable comp-lint, this will effectively disable the live linter | |
"comp_lint_enabled": true, | |
// list of commands to run | |
"comp_lint_commands": [ | |
// run errcheck to catch ignored error return values | |
{ | |
"cmd": ["errcheck"] | |
}, |
AWS_ACCESS_KEY_ID = "YOUR_KEY_ID" | |
AWS_SECRET_ACCESS_KEY = "YOUR_ACCESS_KEY" | |
AWS_STORAGE_BUCKET_NAME = "BUCKET-NAME" | |
AWS_QUERYSTRING_AUTH = False | |
AWS_S3_SECURE_URLS = True | |
from boto.s3.connection import OrdinaryCallingFormat, S3Connection | |
AWS_S3_CALLING_FORMAT = OrdinaryCallingFormat() | |
S3Connection.DefaultHost = "s3-eu-west-1.amazonaws.com" # Must match your specific region |