#OpenSSL Basics
##Certificate Types
- CA Certificate Authority
- CRL Certificate Revocation List
- CSR Certificate Signing Request
- DCA Deligate Certificate Authority
- DER Data Encryption Standard
- DES Data Encryption Standard
- DH Diffie-Hellmann
| # Monitoring on interface eth0 | |
| tcpdump -i eth0 -n port 67 and port 68 |
#OpenSSL Basics
##Certificate Types
| package com.willvuong.foodie.controller; | |
| import com.willvuong.foodie.dao.PlaceRepository; | |
| import com.willvuong.foodie.domain.Place; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.data.repository.CrudRepository; | |
| import org.springframework.stereotype.Controller; | |
| import org.springframework.web.bind.annotation.RequestMapping; | |
| Equality | |
| The equal? method is defined by Object to test whether two values refer to exactly the same | |
| object. For any two distinct objects, this method always returns false: | |
| a = "Ruby" # One reference to one String object | |
| b = c = "Ruby" # Two references to another String object | |
| a.equal?(b) # false: a and b are different objects | |
| b.equal?(c) # true: b and c refer to the same object | |
| By convention, subclasses never override the equal? method. The == operator is the most common |
| root@gretelomat:~# lsusb | |
| Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub | |
| Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
| Bus 001 Device 005: ID 0b05:17cb ASUSTek Computer, Inc. | |
| Bus 001 Device 004: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader | |
| root@gretelomat:~# echo 0b05 17cb > /sys/bus/usb/drivers/btusb/new_id | |
| root@gretelomat:~# hciconfig | |
| hci0: Type: BR/EDR Bus: USB | |
| BD Address: 00:02:72:C9:0E:AA ACL MTU: 1021:8 SCO MTU: 64:1 | |
| DOWN |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| /* Binary Search Tree Implementation in C */ | |
| /* Harish R */ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| struct TreeNode | |
| { | |
| int data; | |
| struct TreeNode* left; |