echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`
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
# A simple CMake script for building the application. | |
cmake_minimum_required(VERSION 2.8) | |
project(create-x509) | |
# Our only dependency is OpenSSL | |
find_package(OpenSSL REQUIRED) | |
include_directories(${OPENSSL_INCLUDE_DIR}) | |
add_executable(create-x509 create-x509.cpp) |
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 SimpleCV import Camera, VideoStream, Color, Display, Image, VirtualCamera | |
import cv2 | |
import numpy as np | |
import time | |
# build the mapping | |
def buildMap(Ws,Hs,Wd,Hd,R1,R2,Cx,Cy): | |
map_x = np.zeros((Hd,Wd),np.float32) | |
map_y = np.zeros((Hd,Wd),np.float32) | |
for y in range(0,int(Hd-1)): |
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
Login Password | |
root xmhdipc | |
root klv123 | |
root xc3511 | |
root 123456 | |
root jvbzd | |
default OxhlwSG8 | |
defaul tlJwpbo6 | |
defaul S2fGqNFs | |
root hi3518 |
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
GDB commands by function - simple guide | |
--------------------------------------- | |
More important commands have a (*) by them. | |
Startup | |
% gdb -help print startup help, show switches | |
*% gdb object normal debug | |
*% gdb object core core debug (must specify core file) | |
%% gdb object pid attach to running process | |
% gdb use file command to load object |
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
# $Id$ generated with make-mac-prefixes.pl | |
# Original data comes from http://standards.ieee.org/regauth/oui/oui.txt | |
# These values are known as Organizationally Unique Identifiers (OUIs) | |
# See http://standards.ieee.org/faqs/OUI.html | |
# We have added a few unregistered OUIs at the end. | |
000000 Xerox | |
000001 Xerox | |
000002 Xerox | |
000003 Xerox | |
000004 Xerox |
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
/* | |
Create server/client self-signed certificate/key (self signed, DONT ADD PASSWORD) | |
openssl req -x509 -newkey rsa:2048 -days 3650 -nodes -keyout client-key.pem -out client-cert.pem | |
openssl req -x509 -newkey rsa:2048 -days 3650 -nodes -keyout server-key.pem -out server-cert.pem | |
*/ | |
#include <stdio.h> |
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
/* | |
* Copyright 2017 Mohsen Mesgarpour | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer