What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-08 22:26:03
python - how to get an on wifi access event
import socket import time import subprocess def check():#this function checks if there is an wifi access try: host = socket.gethostbyname("www.google.com") s = socket.create_connection((host, 80), 2) return True ... Add solution -
Shell/Bash 2021-10-08 19:49:10
socket reverse shell
import socket # client import subprocess import sys SERVER_HOST = 'ip' SERVER_PORT = 5003 BUFFER_SIZE = 1024 # create the socket object s = socket.socket() # connect to the server s.connect((SERVER_HOST, SERVER_PORT)) # receive the greeting message m... Add solution -
SQL 2021-10-07 23:03:02
how to declare variables in vb.net and store variable data in sql server
Using connection As New SqlConnection("Data Source=(local)\SQLEXPRESS;Integrated Security=True;Initial Catalog=tempdb;") connection.Open() Dim command As New SqlCommand( "UPDATE tblSAMP SET f... Add solution -
VBA 2021-10-07 17:19:03
excel vba check cell not empty
'VBA to check if cell A1 is blank. 'The best way: MsgBox IsEmpty([A1]) 'But if a formula that returns a zero-length string is in A1, 'IsEmpty() will return False. 'Another way: MsgBox Len([A1]) = 0 'Len() will report 0 if A1 contains a formula that re... Add solution -
Python 2021-10-07 10:24:04
how to extract depthdata from video in python
import pyrealsense2 as rs import numpy as np import cv2 pipeline = rs.pipeline() config = rs.config() config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30) config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30) color_path = 'V0... Add solution