This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I -k "https://api.github.com/repos/:owner/:repo/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p' | |
### And that's all ! | |
# I saw many fighting with finding first commit SHA or similar fancy thing. | |
# Here we just rely on the GH API, asking commits at 1 per page and parsing the last page number in the header of the reply (whose body only holds the last commit !) | |
# So this is robust and bandwidth efficient. :) | |
# If one want the commit count of a specific SHA, just use : | |
curl -I -k "https://api.github.com/repos/:owner/:repo/commits?per_page=1&sha=:sha" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Main inspiration/initial credits: https://gist.github.com/graymouser/a33fbb75f94f08af7e36 | |
# Open the console and run this js: | |
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download)$/i; | |
var nodes = document.getElementsByTagName('a'); | |
var downloadCmd = ''; | |
for (i in nodes) { | |
var a = nodes[i]; | |
if (a && a.text && pattern.test(a.text.trim()) && a.attributes['href']) { | |
downloadCmd += a.attributes['href'].value + "\"\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function require_auth() { | |
$AUTH_USER = 'admin'; | |
$AUTH_PASS = 'admin'; | |
header('Cache-Control: no-cache, must-revalidate, max-age=0'); | |
$has_supplied_credentials = !(empty($_SERVER['PHP_AUTH_USER']) && empty($_SERVER['PHP_AUTH_PW'])); | |
$is_not_authenticated = ( | |
!$has_supplied_credentials || | |
$_SERVER['PHP_AUTH_USER'] != $AUTH_USER || | |
$_SERVER['PHP_AUTH_PW'] != $AUTH_PASS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Os segredos da mente milionária (João Augusto Rodrigues) | |
Ou você controla o seu dinheiro ou ele controlará você. - O hábito de administrar as finanças é mais importante do que a quantidade de dinheiro que você tem. - A sua motivação para enriquecer é crucial: se ela possui uma raiz negativa, como o medo, a raiva ou a necessidade de provar algo a si mesmo, o dinheiro nunca lhe trará felicidade. - O segredo do sucesso não é tentar evitar os problemas nem se livrar deles, mas crescer pessoalmente para se tornar maior do que qualquer adversidade. - Os gastos excessivos têm pouco a ver com o que você está comprando e tudo a ver com a falta de satisfação na sua vida. | |
A resposta, segundo o autor, está no modelo pessoal de dinheiro que todos nós trazemos gravado no subconsciente. | |
Acima de tudo, sentia medo. Temia fracassar, ou pior, ter sucesso e acabar perdendo tudo. Nesse caso, eu seria realmente um panaca. Pior, destruiria a única coisa que soprava a meu favor: a lenda de que eu tinha um grande potencial. E se |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
O grupo Personare, possui o maior portal de conteúdos e serviços de autoconhecimento | |
e bem-viver do Brasil, está comemorando 10 anos e buscando por profissionais de | |
desenvolvimento que queiram evoluir e encarar desafios! | |
Se você se enquadra no perfil abaixo, envie seu currículo para [email protected] | |
e venha fazer parte do time! | |
Skills desejados: | |
Imprescindível: Php, Javascript e MySQL. | |
Diferencial: Python, Refactor, TDD, Solid, Design Patterns e Scrum. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# Wacom Intuos3 6x8 pad | |
# _________________________________________________________________________ | |
# | | | |
# | ___ ___ ___ ___________________________________ ___ ___ ___ | | |
# | | | | | | | | | | | | | |
# | | | 1 | 4 | | 0 - Button 3 | | 6 | 8 | | | | |
# | | 0 |___| + | | 1 - Button 1 | | + |___| A | | | |
# | | | | | | | 2 - Button 2 | | | | | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eu tiraria a razão deles se as empresas de ônibus/barcas/metrô não tivessem recebido subsídio fiscal do governo para manter os preços estáveis e melhorar a qualidade do serviço do transporte. como isso só serviu para nos roubar 2x, eu sinceramente não tiro a razão do pessoal fazer o que tem feito. talvez seja uma saída. o que eu não acho que dá pra continuar é eu pagar 2x por um serviço medíocre, que pra começo de conversa não deveria nem ser privatizado. só pra constar: todo mundo fala que o metrô de paris é isso/aquilo, e não é privatizado. não é uma coisa que deve dar lucro, é uma coisa que deve ser direito do cidadão, direito de ir e vir. | |
raph, | |
http://www.jb.com.br/rio/noticias/2011/12/07/barcas-tarifa-aumenta-mesmo-com-subsidio-para-deputado-empresa-e-favorecida/ | |
isso sem falar no aumento dos ônibus nos últimos dias. | |
isso sem falar que a barca aumento pra cacete no fim do ano passado e o governo(eu e você) pagamos parte da passagem com mais um subsídio que a barca recebeu. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Roberto C. Morano | |
email = [email protected] | |
[include] | |
path = ~/.gitconfig.d/alias.txt | |
path = ~/.gitconfig.d/alias-for-cvs.txt | |
path = ~/.gitconfig.d/alias-for-gitk.txt | |
path = ~/.gitconfig.d/alias-for-rails.txt | |
path = ~/.gitconfig.d/alias-for-svn.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app->foo = function() { echo 'test'; die;}; | |
$app->foo(); // ERROR | |
$f = $app->foo; | |
$f(); // SUCCESS | |
NewerOlder