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
$ make build PROJECT_ID="alooma-new-approach" PROJECT_NUMBER="181693460159" | |
Setup Webhook Variables for project: alooma-new-approach | |
Dead Letter Table: alooma-new-approach:webhook.errors | |
echo "Building Webhook Application for project: alooma-new-approach" | |
Building Webhook Application for project: alooma-new-approach | |
./build.sh | |
Apply Terraform Resources | |
Initializing the backend... |
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
{"foo":"bar"} |
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 | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install curl php-curl php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 | |
#Switch PHP version: | |
From php5.6 to php7.0 : |
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
var loadedFromTotal = event.loaded / event.total; | |
var percent = 100.0 * loadedFromTotal; | |
var chunk = (loadedFromTotal) * event.total; | |
var speed = ((chunk / 1024 / 1024) / time).toFixed(2); | |
var secs_left = parseInt((100 / percent) * time) - time; | |
var seconds_left = isFinite(secs_left) ? secs_left : 60*60*100; | |
///////////////////////////////////////////////////////////////////////////// | |
// time | |
//////////////////////////////////////////////////////////////////////////// |
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
// Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload | |
var fs = require('fs'); | |
var AWS = require('aws-sdk'); | |
AWS.config.loadFromPath('./aws-config.json'); | |
var s3 = new AWS.S3(); | |
// File | |
var fileName = '5.pdf'; | |
var filePath = './' + fileName; | |
var fileKey = fileName; |
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
def login_user_programatically | |
# User or whatever the name of the model is that you're trying to authenticate | |
@request.env['devise.mapping'] = Devise.mappings[:user] | |
@resource = FactoryGirl.create(:confirmed_user) | |
# The following two lines are where the magic happens. | |
@auth_headers = @resource.create_new_auth_token | |
@request.headers.merge!(@auth_headers) | |
end |
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
- check run commands as login shell in terminal profile preferences after you install rvm and open new tab | |
- `sudo apt-get install nodejs postgresql postgresql-contrib git npm phantomjs libpq-dev` | |
- `sudo npm install bower -g` | |
- `sudo ln -s which nodejs/usr/bin/node` | |
- add ubuntu superuser: | |
ubuntu@ubuntu-amd64:~/Sites/webapp$ sudo -i -u postgres | |
postgres@ubuntu-amd64:~$ createuser --interactive | |
Enter name of role to add: ubuntu |
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
<label class="switch"><input type="checkbox" checked><i></i></label> | |
<label class="switch red"><input type="checkbox"><i></i></label> | |
.switch input { | |
display: none; | |
} | |
.switch i { | |
display: inline-block; | |
cursor: pointer; | |
padding-right: 20px; |
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
require 'aws' | |
AWS.config(:access_key_id => 'XXXXX', :secret_access_key => 'XXXXX') | |
pipeline_id = 'XXXXXXX' | |
preset_id = 'XXXXXX' | |
s3 = AWS::S3.new | |
bin = s3.buckets['XXXXXX-in'] | |
bout = s3.buckets['XXXXXX-out'] |
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
<!--RNMD:DATA:{"eid": "10.210.3.18.6b3b78f8-ec11-4a99-8906-b7976aad75c2"} ;END--> | |
<VAST version="2.0"> | |
<Ad id="2383240"> | |
<InLine> | |
<AdSystem>Rhythm NewMedia</AdSystem> | |
<AdTitle>audi</AdTitle> | |
<Description>Rhythm NewMedia</Description> | |
<Impression id="Rhythm NewMedia"> | |
<![CDATA[http://awsstageepg.aws.rnmd.net/adAck?requestId=102103181443020449282687&id=2383240&user=10.210.3.18.6b3b78f8-ec11-4a99-8906-b7976aad75c2&appId=tmzus_android&completed=100&trackingType=noQuartile]]></Impression> | |
<Creatives> |
NewerOlder