See https://github.com/sbt/sbt/wiki/sbt-1.x-plugin-migration for the list with sbt 1.x migration status.
| plugin | star |
|---|---|
| playframework/playframework | 9597 |
| scala-js/scala-js | 3053 |
| sbt/sbt-assembly | 1092 |
| mpeltonen/sbt-idea | 1085 |
See https://github.com/sbt/sbt/wiki/sbt-1.x-plugin-migration for the list with sbt 1.x migration status.
| plugin | star |
|---|---|
| playframework/playframework | 9597 |
| scala-js/scala-js | 3053 |
| sbt/sbt-assembly | 1092 |
| mpeltonen/sbt-idea | 1085 |
| # A virtualenv running Python3.6 on Amazon Linux/EC2 (approximately) simulates the Python 3.6 Docker container used by Lambda | |
| # and can be used for developing/testing Python 3.6 Lambda functions | |
| # This script installs Python 3.6 on an EC2 instance running Amazon Linux and creates a virtualenv running this version of Python | |
| # This is required because Amazon Linux does not come with Python 3.6 pre-installed | |
| # and several packages available in Amazon Linux are not available in the Lambda Python 3.6 runtime | |
| # The script has been tested successfully on a t2.micro EC2 instance (Root device type: ebs; Virtualization type: hvm) | |
| # running Amazon Linux AMI 2017.03.0 (HVM), SSD Volume Type - ami-c58c1dd3 | |
| # and was developed with the help of AWS Support |
| import torch | |
| import torch.nn as nn | |
| from torch.nn import Parameter | |
| from torch.autograd import Variable, Function | |
| from collections import defaultdict | |
| import graphviz | |
| """ | |
| This is a rather distorted implementation of graph visualization in PyTorch. |
| from graphviz import Digraph | |
| from torch.autograd import Variable | |
| import torch | |
| def make_dot(var, params=None): | |
| if params is not None: | |
| assert isinstance(params.values()[0], Variable) | |
| param_map = {id(v): k for k, v in params.items()} |
| ## convert HTML POST data or HTTP GET query string to JSON | |
| ## get the raw post data from the AWS built-in variable and give it a nicer name | |
| #if ($context.httpMethod == "POST") | |
| #set($rawAPIData = $input.path('$')) | |
| #elseif ($context.httpMethod == "GET") | |
| #set($rawAPIData = $input.params().querystring) | |
| #set($rawAPIData = $rawAPIData.toString()) | |
| #set($rawAPIDataLength = $rawAPIData.length() - 1) | |
| #set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength)) |
| package com.chetan.poc.hbase | |
| /** | |
| * Created by chetan on 24/1/17. | |
| */ | |
| import org.apache.spark._ | |
| import org.apache.hadoop.hbase.{CellUtil, HBaseConfiguration, TableName} | |
| import org.apache.hadoop.hbase.mapreduce.TableInputFormat | |
| import org.apache.hadoop.hbase.util.Bytes | |
| import org.apache.hadoop.hbase.client._ |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
| #stop all containers: | |
| docker kill $(docker ps -q) | |
| #remove all containers | |
| docker rm $(docker ps -a -q) | |
| #remove all docker images | |
| docker rmi $(docker images -q) |
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
wget http://www-eu.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
./configure
make
sudo make install
thrift --help In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.