Skip to content

Instantly share code, notes, and snippets.

View farshidce's full-sized avatar

Farshid Ghods farshidce

  • LinkedIn
  • San Francisco
View GitHub Profile
using UnityEngine;
using System.Collections;
public class HexaGrid : MonoBehaviour
{
public Material mat;
private Vector3 startVertex;
private Vector3 mousePos;
void Start()
@farshidce
farshidce / input.json
Created November 11, 2016 20:28
inputjson
{
"files": ["s3://stemqa-sampledata/csv_import/meter_logs/sample_second.csv"],
"options": {"database": "meter_logs", "table":"monitor_data_minute"}
}
#!/usr/bin/env python
import sys
import os
for key in os.environ.keys():
print("%s %s" % (key, os.environ[key]))
import logging
from stem.messaging import messaging
@farshidce
farshidce / td
Created December 19, 2016 18:47
SHOVEL_NAME=$1
SRC_URI=$2
SRC_EXCH=$3
ROUTING_KEY=$4
DEST_URI=$5
DEST_EXCH=$6
ACK_MODE=on-confirm
SHOVEL_ARG="{\"src-uri\":\""${SRC_URI}"\", \"src-exchange\": \""${SRC_EXCH}"\", \"src-exchange-key\":\""${ROUTING_KEY}"\", \"dest-uri\":\""${DEST_URI}"\", \"dest-exchange\":\""${DEST_EXCH}"\", \"ack-mode\":\""${ACK_MODE}"\", \"reconnect-delay\": 0, \"prefetch-count\": 34460, \"delete-after\": \""never"\" }"
echo rabbitmqctl set_parameter shovel ${SHOVEL_NAME} """${SHOVEL_ARG}"""
import gevent.monkey
gevent.monkey.patch_all()
import bmemcached
import threading
from threading import Thread
import time
import uuid