Skip to content

Instantly share code, notes, and snippets.

View dassio's full-sized avatar

xiangbin li dassio

View GitHub Profile
@dassio
dassio / class_macros.rb
Last active August 6, 2016 09:07
Ruby : methods to change a class
#using extend to modify a class
#extend will add an class method we will use this class method to create instance method with 'define_method' dynamiclly
require 'test/unit'
module CheckedAttributes
def self.included(klass)
klass.extend ClassMethods # here we created an class method
end
module ClassMethods
@dassio
dassio / Onos cell setup on ubuntu 16 AWS
Created December 7, 2018 17:56
Onos test cell setup with AWS for ubuntu 16
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template VPC_Single_Instance_In_Subnet: Sample template showing how to create a VPC and add an EC2 instance with an Elastic IP address and a security group. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"InstanceType" : {
"Description" : "Onos Instance",
"Type" : "String",
@dassio
dassio / Onos cell setup on ubuntu 18 AWS
Created December 7, 2018 17:57
setup onos cell with ubuntu 18 on aws
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template VPC_Single_Instance_In_Subnet: Sample template showing how to create a VPC and add an EC2 instance with an Elastic IP address and a security group. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"InstanceType" : {
"Description" : "Onos Instance",
"Type" : "String",
@dassio
dassio / uplink_batch.md
Last active March 21, 2023 10:37
storj uplink batch download upload
@dassio
dassio / ycm_rg0vpfcp.log
Last active September 10, 2020 21:32
vim issue log
2020-09-10 22:22:35,660 - DEBUG - GET b'http://127.0.0.1:55333/ready' (None)
{'content-type': 'application/json', 'x-ycm-hmac': b'kTrCYP//XIehVfwvLxDucyiitECIPGNFs2W0qXJMP1g='}
2020-09-10 22:22:35,713 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=55333): Max retries exceeded with url: /ready (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1f90fe7820>: Failed to establish a new connection: [Errno 111] Connection refused'))
2020-09-10 22:22:35,813 - DEBUG - GET b'http://127.0.0.1:55333/ready' (None)
{'content-type': 'application/json', 'x-ycm-hmac': b'kTrCYP//XIehVfwvLxDucyiitECIPGNFs2W0qXJMP1g='}
2020-09-10 22:22:35,817 - DEBUG - RX: <Response [200]>
true
2020-09-10 22:22:35,818 - DEBUG - GET b'http://127.0.0.1:55333/signature_help_available' ({'subserver': 'java'})
{'content-type': 'application/json', 'x-ycm-hmac': b'XuMeFt6aTItyEn2qXw8js+fHN5iIcMhh9OSHWUgdxME='}
2020-09-10 22:22:35,820 - DEBUG - POST b'http://127.0.0.1:55333/event_notification'