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
#!/usr/bin/env bash | |
sudo apt update && sudo apt upgrade -y | |
# dependencies | |
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev liblzma-dev \ | |
git wget curl dconf-cli gcc uget apt-transport-https |
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
function code() { cd /Users/alexandre/Code/$@ ;} | |
function gi() { curl -L -s https://www.gitignore.io/api/$@ ;} | |
# Virtualbox helpers | |
function startvm() { VBoxManage startvm $@ --type headless ;} | |
function stopvm() { VBoxManage controlvm $@ poweroff ;} | |
########################################################### | |
# Pre configuration |
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 | |
namespace Kairos\GoogleAnalyticsClientBundle\Consumer; | |
use Guzzle\Http\Client as HttpClient; | |
use Kairos\GoogleAnalyticsClientBundle\AuthClient\AuthClientInterface; | |
use Kairos\GoogleAnalyticsClientBundle\Exception\GoogleAnalyticsException; | |
use Guzzle\Batch\Batch; | |
use Guzzle\Batch\BatchRequestTransfer; |
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
[log] | |
decorate = short | |
[color] | |
ui = auto | |
[pager] | |
status = true | |
show-branch = true | |
[rebase] | |
autosquash = true |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
public static String sha1(String s, String keyString) throws | |
UnsupportedEncodingException, NoSuchAlgorithmException, | |
InvalidKeyException { | |
Mac mac = Mac.getInstance("HmacSHA1"); | |
SecretKeySpec secret = new SecretKeySpec(keyString.getBytes("UTF-8"), mac.getAlgorithm()); | |
mac.init(secret); | |
byte[] digest = mac.doFinal(s.getBytes()); | |
String retVal = Base64.encodeBase64String(digest); |