sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
Sierra Wireless MC7710 Ports | |
It depends on enumeration scheme. For DIP mode with (default) USB composition #3 selected, /dev/ttyUSBn ports are expected to be mapped as follows: | |
n=0 - HIP (CnS); | |
n=1 - QCDM (diag); | |
n=2 - NMEA; | |
n=3 - AT command; | |
n=4 - modem. | |
Please note that there isn't necessarily a 1-1 relationship between the MCxxxx serial interface numbers and the Linux /dev/ttyUSBn devices. The latter number space is shared between all USB serial devices in the system, and there is no guarantee that the AT port always will be /dev/ttyUSB2 (or whatever). |
from scapy.all import DHCP_am | |
from scapy.base_classes import Net | |
dhcp_server = DHCP_am(iface='eth1', domain='example.com', | |
pool=Net('192.168.10.0/24'), | |
network='192.168.10.0/24', | |
gw='192.168.10.254', | |
renewal_time=600, lease_time=3600) | |
dhcp_server() |
diff --exclude .git -Naur the-algorithm/README.md the-algorithm-2/README.md | |
--- the-algorithm/README.md 2023-03-31 20:33:20 | |
+++ the-algorithm-2/README.md 2023-04-02 03:56:31 | |
@@ -10,7 +10,7 @@ | |
| Type | Component | Description | | |
|------------|------------|------------| | |
-| Feature | [simclusters-ann](simclusters-ann/README.md) | Community detection and sparse embeddings into those communities. | | |
+| Feature | [SimClusters](src/scala/com/twitter/simclusters_v2/README.md) | Community detection and sparse embeddings into those communities. | | |
| | [TwHIN](https://github.com/twitter/the-algorithm-ml/blob/main/projects/twhin/README.md) | Dense knowledge graph embeddings for Users and Tweets. | |
#define _XOPEN_SOURCE 700 | |
#include <signal.h> | |
#include <unistd.h> | |
int main() | |
{ | |
sigset_t set; | |
int status; | |
if (getpid() != 1) return 1; |
I am hoping to save a few hours for people like me who have a modem + router setup and switched to NOW TV ISP.
Extract Client ID and Vendor Class ID from DHCP handshake
Configuration for HG 612
import cv2 | |
import numpy as np | |
def deskew(im, max_skew=10): | |
height, width = im.shape | |
# Create a grayscale image and denoise it | |
im_gs = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) | |
im_gs = cv2.fastNlMeansDenoising(im_gs, h=3) |
/***************************************** | |
* Read QSee/Zmodo cameras * | |
* Forward stream to FIFO pipe * | |
* Author: Daniel Osborne * | |
* Based on IP Cam Viewer by Robert Chou * | |
* License: Public Domain * | |
*****************************************/ | |
/* Version history | |
* 0.41 - 2013-05-03 |
class AndroidXMLDecompress(): | |
endDocTag = 0x00100101 | |
startTag = 0x00100102 | |
endTag = 0x00100103 | |
def decompressXML(self, xml: bytearray) -> str: | |
finalXml = str() | |
numbStrings = self.LEW(xml, 4*4) |