Skip to content

Instantly share code, notes, and snippets.

View ixaxaar's full-sized avatar
🏔️

ixaxaar ixaxaar

🏔️
View GitHub Profile
curl -v https://dl.bintray.com/sbt/sbt-plugin-releases/org.apache.commons/commons-parent/32/jars/commons-parent.jar
* Trying 108.168.243.150...
* Connected to dl.bintray.com (108.168.243.150) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 704 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: Error in the pull function.
* Closing connection 0
curl: (35) gnutls_handshake() failed: Error in the pull function.
@ixaxaar
ixaxaar / inception_v3.py
Created July 5, 2016 10:38 — forked from neggert/inception_v3.py
Inception-v3 implementation in Keras
from keras.models import Model
from keras.layers import (
Input,
Dense,
Flatten,
merge,
Lambda
)
from keras.layers.convolutional import (
Convolution2D,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ixaxaar
ixaxaar / pmap
Created February 24, 2016 08:09
pmap output
11482: java -jar -Xmx10G -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=50 -Dkamon.auto-start=true -javaagent:/home/ubuntu/.ivy2/cache/org.aspectj/aspectjweaver/jars/aspectjweaver-1.8.2.jar /home/ubuntu/cerebro.jar 0.0.0.0 9998
0000000000400000 4K r-x-- java
0000000000600000 4K rw--- java
0000000001577000 860K rw--- [ anon ]
0000000540000000 7823360K rw--- [ anon ]
000000071d800000 2662400K ----- [ anon ]
00000007c0000000 10240K rw--- [ anon ]
00000007c0a00000 1038336K ----- [ anon ]
00007f06f9d86000 148040K r--s- _1zg.fdt
00007f0724bad000 14104K r--s- _1zg_Lucene50_0.tim
@ixaxaar
ixaxaar / event_export.py
Created February 23, 2016 14:18 — forked from drmarshall/event_export.py
Example Mixpanel raw event export script
#! /usr/bin/env python
#
# Mixpanel, Inc. -- http://mixpanel.com/
#
# Python API client library to consume mixpanel.com analytics data.
import hashlib
import urllib
import time
try:
@ixaxaar
ixaxaar / CorsSupport.scala
Last active September 18, 2015 13:16 — forked from joseraya/CorsSupport.scala
CORS directive for Spray
package com.agilogy.spray.cors
import spray.http.{HttpMethods, HttpMethod, HttpResponse, AllOrigins}
import spray.http.HttpHeaders._
import spray.http.HttpMethods._
import spray.routing._
// see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
trait CORSSupport {
this: HttpService =>
@ixaxaar
ixaxaar / live_plot.py
Last active August 29, 2015 14:19 — forked from swenzel/live_plot.py
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2015 Swen Wenzel <[email protected]>
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
/*
This example uses Scala. Please see the MLlib documentation for a Java example.
Try running this code in the Spark shell. It may produce different topics each time (since LDA includes some randomization), but it should give topics similar to those listed above.
This example is paired with a blog post on LDA in Spark: http://databricks.com/blog
Spark: http://spark.apache.org/
*/
import scala.collection.mutable
@ixaxaar
ixaxaar / cassandra.sh
Created October 6, 2014 12:08
Simple bash script to install cassandra cluster
#!/usr/bin/env bash
# A script to install cassandra
# Add the seed nodes here
SEEDS[0]='10.1.1.1'
SEEDS[1]='10.1.1.2'
SEEDS[2]='10.1.1.3'