This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port = 5000 | |
soc = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
soc.bind(("10.2.2.132", port)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setting up insecure registry | |
# 10.2.4.201 is the private registry host | |
DOCKER_OPTS="$DOCKER_OPTS —insecure-registry=10.2.4.201" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query type> | |
#<attribute name> <attribute value> | |
@<receiver> | |
^<sender> | |
<digital signature> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHARE | |
#pubkey <public key signature> | |
#time <current timestmap> | |
@094776431112 | |
^094775432015 | |
<digital signature> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth.models import User | |
class Device(models.Model): | |
""" | |
Model class to keep google could messaging enable device details | |
Need to keep device registration id as well as active state. There's a | |
REST api to deal with these devices. API doing registering and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHARE | |
#pubkey <public key signature> | |
#time <current timestmap> | |
@senz | |
^094775432015 | |
<digital signature> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.score.myexp.db; | |
import android.provider.BaseColumns; | |
/** | |
* Define Database schemas here(Keep database table attributes) | |
* | |
* @author eranga herath([email protected]) | |
*/ | |
public class ExpenseDbContract { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.score.myexp.db; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import android.util.Log; | |
/** | |
* We do | |
* 1. Database creation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.score.myexp.db; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.util.Log; | |
import com.score.myexp.pojos.Expense; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
MAINTAINER Eranga Bandara([email protected]) | |
# Import MongoDB public GPG key AND create a MongoDB list file | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
RUN echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee /etc/apt/sources.list.d/mongodb.list | |
# Update apt-get sources AND install MongoDB | |
RUN apt-get update |
OlderNewer