This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE template SYSTEM "template.dtd"> | |
<template> | |
<title>Sudo Policy</title> | |
<regexp>^cn=.*,ou=sudoers,dc=.*</regexp> | |
<icon>images/door.png</icon> | |
<description>Sudo Policy</description> | |
<askcontainer>1</askcontainer> | |
<rdn>cn</rdn> | |
<visible>1</visible> |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE template SYSTEM "template.dtd"> | |
<template> | |
<title>Sudo Policy</title> | |
<regexp>^ou=sudoers,dc=.*</regexp> | |
<icon>images/door.png</icon> | |
<description>New Sudo Policy</description> | |
<askcontainer>1</askcontainer> | |
<rdn>cn</rdn> | |
<visible>1</visible> |
This file contains 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
import cv2 | |
cap = cv2.VideoCapture(0) | |
if not cap.isOpened(): | |
print("Cannot open camera") | |
exit() | |
#cv2.namedWindow("live", cv2.WINDOW_AUTOSIZE); # 命名一個視窗,可不寫 | |
while(True): | |
# 擷取影像 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import re | |
class malicious: | |
def __init__(self,*args): | |
self.month = args[0] | |
self.day = args[1] | |
self.time = args[2] | |
self.types = args[3] | |
self.user = args[4] | |
self.ip = args[5] |
This file contains 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
import RPi.GPIO as GPIO | |
import time | |
servoPIN = 2 | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(servoPIN, GPIO.OUT) | |
pwm = GPIO.PWM(servoPIN, 50) # GPIO 17 for PWM with 50Hz | |
pwm.start(0) # Initialization |
This file contains 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
import urllib.request | |
import cv2 | |
import numpy as np | |
import time | |
import requests | |
URL = "http://192.168.1.101:8080/shot.jpg" | |
while True: | |
img_arr = np.array( |