This file contains 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 | |
$provider = new stdClass; | |
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */ | |
$provider->name = 'linkedin'; | |
$provider->title = 'LinkedIn'; | |
$provider->url = 'https://api.linkedin.com'; | |
$provider->consumer_advanced = array( | |
'signature method' => 'HMAC-SHA1', | |
'authentication realm' => '', | |
'request token endpoint' => '/uas/oauth/requestToken', |
This file contains 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
#!/bin/sh | |
############################ | |
# Author: Till Klampaeckel # | |
# License: New BSD License # | |
############################ | |
version=$1 | |
if [ "x$version" = "x" ]; then | |
echo "Usage: ./$0 5.0|5.1" |
This file contains 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
" Made by @henriquegogo | |
" Script moved to https://github.com/henriquegogo/dotfiles | |
" I'll maintain this one just for compatibility with old references and history | |
au VimEnter * !wget https://raw.githubusercontent.com/henriquegogo/dotfiles/master/.vimrc -O ~/.vimrc |
This file contains 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
/* | |
For more detailed instructions on how to use this script, sign up with your email here: | |
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans | |
DISCLOSURE: This javascript runs in your browser pretending to be you | |
looking through your page fans. Facebook should have no problem with this, | |
but who knows if they will think it is strange to see you looking through | |
all your fans so quickly (the script waits 3s before requesting each page). | |
I've had no problem running this so far for 1000s of page fans, but I |
This file contains 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
# Drush-Bash tricks 0.2 | |
# Copyright Nuvole 2010, Capi Etheriel 2012. | |
# License: GPL 3, see http://www.gnu.org/licenses/gpl.html | |
# For a quick start: copy this entire file to the end of the .bashrc | |
# file in your home directory and it will be enabled at your next | |
# login. See http://nuvole.org/node/26 for more details and options. | |
# Drupal and Drush aliases. | |
# To be added at the end of .bashrc. |
This file contains 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
startup_message off | |
vbell off | |
autodetach on | |
#escape / | |
defscrollback 5000 | |
#caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %c" | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}%{C}Screen: %{c}%{= kG}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{C} %d-%m %{W}%c %{g}]' |
This file contains 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
#!/bin/bash | |
if [ ! -d './downloaded_tweets' ]; then | |
mkdir downloaded_tweets | |
if [ ! -d './downloaded_tweets' ]; then | |
echo "Can't create output dir." > /dev/stderr | |
exit 1 | |
fi | |
fi | |
cd downloaded_tweets |
This file contains 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
#!/bin/bash | |
decode() { | |
to_decode='s:%([0-9A-Fa-f][0-9A-Fa-f]):\\x\1:g' | |
printf "%b" `echo $1 | sed 's:&:\n:g' | grep "^$2" | cut -f2 -d'=' | sed -r $to_decode` | |
} | |
data=`wget http://www.youtube.com/get_video_info?video_id=$1\&hl=pt_BR -q -O-` | |
url_encoded_fmt_stream_map=`decode $data 'url_encoded_fmt_stream_map' | cut -f1 -d','` | |
signature=`decode $url_encoded_fmt_stream_map 'sig'` | |
url=`decode $url_encoded_fmt_stream_map 'url'` | |
test $2 && name=$2 || name=`decode $data 'title' | sed 's:+: :g;s:/:-:g'` |
This file contains 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
alias focus="sudo sh -c \"echo '127.0.0.1 www.facebook.com twitter.com mail.google.com # aab6de513ab5de9359809f3cdb62d352' >> /etc/hosts\"" | |
alias unfocus='sudo sed -i "" "/aab6de513ab5de9359809f3cdb62d352/d" /etc/hosts' |
This file contains 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
#! /bin/bash | |
# Set overridable filename format | |
: ${DRUPAL_DUMP_FORMAT:="%at-%h"} | |
filename="$( git log -n 1 --format=${DRUPAL_DUMP_FORMAT} ).sql" # see git help log for more on git formats | |
# Set overridable path | |
: ${DRUPAL_DUMP_PATH:="."} # path, relative to drupal root | |
path="$( cd `drush dd` ; realpath $DRUPAL_DUMP_PATH 2>&1 )" |
OlderNewer