Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
# Discussion on Medium: https://medium.com/@russell.s.pierce/setting-up-aws-glue-with-terraform-8f601cf36366 | |
resource "aws_iam_role" "glue" { | |
name = "AWSGlueServiceRoleDefault" | |
assume_role_policy = <<EOF | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", |
""" | |
Problem: | |
How to Convert PDF to Image with Python Script ? | |
Installation: | |
I use ubuntu OS 14.04 | |
We use wrapper for ImageMagick [http://www.imagemagick.org/script/index.php] to Convert The PDF file | |
in Python do: | |
$ sudo apt-get install libmagickwand-dev |
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
package com.gabesechan.android.reusable.receivers; | |
import java.util.Date; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.telephony.TelephonyManager; | |
public abstract class PhonecallReceiver extends BroadcastReceiver { |
//Based on gulpfile.js from Google Web Starter Kit. | |
//https://github.com/google/web-starter-kit | |
'use strict'; | |
// Include Gulp & Tools We'll Use | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var del = require('del'); | |
var runSequence = require('run-sequence'); | |
var browserSync = require('browser-sync'); |
Enabling communication with API if server has Self-Signed Certificate |
/* Usage: | |
<input type="text" id="address" name="address" placeholder="Start Typing An Address" ng-model="address" details="placeDetails" googleplace /> | |
Fiddle: http://jsfiddle.net/wholypantalones/5qtt1f8g/ | |
*/ | |
//controller | |
$scope.$watch('placeDetails', function() { | |
angular.forEach($scope.placeDetails.address_components,function(val,key) { | |
if(val.types[0] == "locality") { | |
$scope.city = val.short_name; | |
} |
cd ~ | |
##If you want to install OpenJDK | |
#sudo apt-get update | |
#sudo apt-get install openjdk-8-jre-headless -y | |
###Or if you want to install Oracle JDK, which seems to have slightly better performance | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.