Change location of hosts file
-
create your own ansible.cfg
[defaults] inventory = /path/to/hosts
Ping all hosts
SELECT user_name FROM v_catalog.users; | |
SELECT database_name FROM databases; | |
SELECT schema_name FROM v_catalog.schemata; | |
SELECT table_name FROM tables WHERE table_schema = 'my_schema'; |
library(plyr) | |
block.size = 128 * 1024 * 1024 | |
files.informations <- read.csv('workflow.csv', header=FALSE, stringsAsFactors=F) | |
files <- files.informations[c("V5", "V8")] | |
colnames(files) <- c("size", "filepath") | |
for(i in 1:nrow(files)) { | |
splitted.path <- strsplit(files[i,"filepath"], "/") |
#Prepare environment | |
sudo apt-get update | |
sudo apt-get install -y openjdk-7-jdk | |
sudo apt-get install -y jmeter | |
sudo apt-get install -y unzip | |
wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.2.0.zip | |
wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-Extras-1.2.0.zip | |
wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-ExtrasLibs-1.2.0.zip |
Change location of hosts file
create your own ansible.cfg
[defaults]
inventory = /path/to/hosts
Ping all hosts
I hereby claim:
To claim this, I am signing this object:
Note: This is a submission for a Reactive2015 lightning talk. If you'd like to see a lightning talk about this (or read a detailed blog post if you are not going for the conference), vote for it by starring this gist! Thanks a lot!
Performance is one of the reasons why React.js is so popular for building complex, highly interactive web applications. It became the go-to library for developers who don’t like to make compromises for technical reasons when building awesome user experiences. However even with React.js it still can be easy to hit it’s performance limits.
In this lightning talk Daniel will go beyond the basics of shouldComponentUpdate and immutable data structures and will discuss how to correctly instrument, measure and optimize performance in complex React apps. He will help you understand the overhead of different parts of the React component lifecycle, how some of it’
var countries_data = {"type":"FeatureCollection","features":[ | |
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[74.92,37.24],[74.57,37.03],[72.56,36.82],[71.24,36.13],[71.65,35.42],[71.08,34.06],[69.91,34.04],[70.33,33.33],[69.51,33.03],[69.33,31.94],[66.72,31.21],[66.26,29.85],[62.48,29.41],[60.87,29.86],[61.85,31.02],[60.84,31.5],[60.58,33.07],[60.94,33.52],[60.51,34.14],[61.28,35.61],[62.72,35.25],[63.12,35.86],[64.5,36.28],[64.8,37.12],[66.54,37.37],[67.78,37.19],[69.32,37.12],[70.97,38.47],[71.59,37.9],[71.68,36.68],[73.31,37.46],[74.92,37.24]]]]},"properties":{"name":"Afghanistan"},"id":"AF"}, | |
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[19.44,41.02],[19.37,41.85],[19.65,42.62],[20.07,42.56],[20.59,41.88],[20.82,40.91],[20.98,40.86],[20.01,39.69],[19.29,40.42],[19.44,41.02]]]]},"properties":{"name":"Albania"},"id":"AL"}, | |
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[2.96,36.8],[8.62,36.94],[8.18,36.52],[8.25,34.64],[7.49,33.89],[9.06,3 |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 1000)
// fibonacci(40) takes 2 seconds in Node.js 0.6.14 | |
// http://en.wikipedia.org/wiki/Fibonacci_number | |
function fibonacci(n) { | |
return n < 2 ? n : fibonacci(n-2) + fibonacci(n-1); | |
} |
: http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us | |
@ECHO off | |
set v_day= | |
set v_month= | |
set v_year= | |
SETLOCAL ENABLEEXTENSIONS | |
if "%date%A" LSS "A" (set toks=1-3) else (set toks=2-4) | |
::DEBUG echo toks=%toks% | |
for /f "tokens=2-4 delims=(-)" %%a in ('echo:^|date') do ( |