Skip to content

Instantly share code, notes, and snippets.

View goyalankit's full-sized avatar
🏠
Working from home

Ankit Goyal goyalankit

🏠
Working from home
View GitHub Profile
@goyalankit
goyalankit / minions_both_up.json
Last active October 10, 2016 04:31
Kubernetes Data
{
"action": "get",
"node": {
"key": "/registry/minions",
"dir": true,
"nodes": [{
"key": "/registry/minions/172.17.8.102",
"value": "{\"kind\":\"Node\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"172.17.8.102\",\"selfLink\":\"/api/v1/nodes/172.17.8.102\",\"uid\":\"a062c77a-8e97-11e6-84ff-08002794c432\",\"creationTimestamp\":\"2016-10-10T03:14:16Z\",\"labels\":{\"beta.kubernetes.io/arch\":\"amd64\",\"beta.kubernetes.io/os\":\"linux\",\"kubernetes.io/hostname\":\"172.17.8.102\"},\"annotations\":{\"volumes.kubernetes.io/controller-managed-attach-detach\":\"true\"}},\"spec\":{\"externalID\":\"172.17.8.102\"},\"status\":{\"capacity\":{\"alpha.kubernetes.io/nvidia-gpu\":\"0\",\"cpu\":\"1\",\"memory\":\"2053160Ki\",\"pods\":\"110\"},\"allocatable\":{\"alpha.kubernetes.io/nvidia-gpu\":\"0\",\"cpu\":\"1\",\"memory\":\"2053160Ki\",\"pods\":\"110\"},\"conditions\":[{\"type\":\"OutOfDisk\",\"status\":\"False\",\"lastHeartbeatTime\":\"2016-10-10T03:47:28Z\",\"lastTransitionTime\":\"2016-10-10T03:14:16Z\",
dockerswarm
----
highly available, fault tolerant. replacing kubernates?
docker service
--------
- labels to target hosts. using constraints.
macpo: ../../../../src/frontend/OpenFortranParser_SAGE_Connection/FortranParserActionROSE.C:6392: void c_action_common_block_object_list(int): Assertion `(*(FortranParserState::getCurrentExpressionStack())).size() == (size_t) count' failed.
/work/02681/ankitg/installs/perfexpert_install/bin/macpo.sh: line 131: 27212 Aborted /work/02681/ankitg/installs/perfexpert_install/bin/macpo -rose:openmp:ast_only -I/work/02681/ankitg/installs/perfexpert_install/include -g -O0 -I/work/02681/ankitg/installs/perfexpert_install/include -g -L/work/01174/ashay/apps/binutils/lib --macpo:disable-sampling --macpo:instrument=SHALOW --macpo:dynamic_inst swim.f -L/work/02681/ankitg/installs/perfexpert_install/lib -L/work/02681/ankitg/installs/libelf/lib -Wl,-rpath=/work/02681/ankitg/installs/libelf/lib -lmrt -lstdc++ -ldl -rdynamic -lelf -lbfd -liberty -lz -lset -lhwloc -L/work/02681/ankitg/installs/perfexpert_install/lib -L/work/02681/ankitg/installs/libelf/lib -Wl,-rpath=/work/02681/ankitg/installs/libelf/lib -lmrt
Loop in function ljForce.omp_fn.1 in ljForce.c:191 (96.79% of the total runtime)
===============================================================================
ratio to total instrns % 0..........25..........50..........75..........100
- floating point 68.0 **********************************
- data accesses 29.9 ***************
* GFLOPS (% max) 12.5 ******
- packed 0.0
- scalar 12.5 ******
-------------------------------------------------------------------------------
performance assessment LCPI good.......okay........fair........poor........bad
require 'rubygems'
require 'mongo'
require 'pry'
require 'json'
bus_h = File.read("yelp_academic_dataset_business.json").split("\n").map { |line| JSON.parse(line)}
# hardcording result to save time
top_10_categories_with_numbers = [["Restaurants", 21892], ["Shopping", 8919], ["Food", 7862], ["Beauty & Spas", 4738], ["Bars", 3628], ["Health & Medical", 3213], ["Automotive", 2965], ["Home Services", 2853], ["Fashion", 2566]]
ID ":null,"
bootloadAttachmentsImmediately ":false}],2],["
m_0_1k ",["
ComposerXMediaPostTab ","
m_0_1m "],["
u_0_r ",{"
__m ":"
m_0_1m "}],1],["
m_0_1w ",["
#include <stdio.h>
#define BIT_MASK(a, b) (size_t)(((size_t) -1 >> ((sizeof(size_t)*8) \
- (b))) & ~((1U << (a)) - 1))
unsigned address_to_set(size_t address) {
return ((address & BIT_MASK(6, 12)) >> 6);
}
typedef struct item_t {
#include <stdio.h>
#define X_1 5
#define Y_1 5
#define X_2 5
#define Y_2 5
#define Z_1 5
#define Z_2 5
#include "track_ellipse.h"
void ellipsetrack(avi_t *video,double *xc0,double *yc0,int Nc,int R,int Np,int Nf)
{
/*
% ELLIPSETRACK tracks cells in the movie specified by 'video', at
% locations 'xc0'/'yc0' with radii R using an ellipse with Np discrete
% points, starting at frame number one and stopping at frame number 'Nf'.
%
% INPUTS: