Skip to content

Instantly share code, notes, and snippets.

Natalia Chikina BoldinovaNatalya

Block or report user

Report or block BoldinovaNatalya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f12c1c85888c1dca752fedbfd6fb786c
package com.bam.device
import java.util.concurrent.TimeUnit
import akka.actor._
import com.bam.commons.{Common, DeviceStatsCommon}
import com.bam.data.DeviceMacAddress
import com.bam.data.tag.SensorSerial
import com.bam.device.bloh.BlohConfig
import com.bam.device.bloh.client.netty.NettyAsyncUplink.UplinkMessages
import com.bam.device.bloh.client.netty.{NettyAsyncDownlink, NettyAsyncUplink}
View gist:7b78e469dabe4d6936b9f92e16bee29e
CREATE TABLE IF NOT EXISTS streamingInventoryEvents(
locationType text,
locationId int,
cacheTime timestamp,
itemNumber text,
tag text,
time timestamp,
scanType int,
pieceTag text,
repId int,
View gist:fb0d0779f79a7083fbc7484405e85d7f
CREATE TABLE IF NOT EXISTS streamingInventoryEvents(
locationType text,
locationId int,
cacheTime timestamp,
tag text,
time timestamp,
scanType int,
pieceTag text,
repId int,
ip text,
View gist:1b347e8856045abe024a1082b3cea3da
- name: Configure iptables for Master
user: root
hosts: "{{spark_master_group_name}}"
sudo: yes
vars_files:
- ../vars/network-vars.yml
- ../vars/spark-vars.yml
tasks:
- name: Add rule to firewall for all ports
iptables: chain=INPUT in_interface=eth1 source={{hostvars[item][ip_interface]['ipv4']['address']}} jump=ACCEPT
View gist:9291393
int _atoi(const _TCHAR *str)
{
int num = 0;
size_t i = 0;
while(str[i] == ' ' || str[i] == '\r' || str[i] == '\n' || str[i] == '\t')
{
i++;
}
int minus = str[i]=='-' ? -1 : 1;
if(str[i]=='-' || str[i]=='+')
You can’t perform that action at this time.