original: https://gist.github.com/sghael/6cba5c75a36ed271fa959c35e516e516
-
Check for Active Connections:
- Use
nmcli
to list active connections and identify the correct connection name:nmcli connection show
- Use
import asyncio | |
import json | |
import aioimaplib | |
import sys | |
async def wait_for_new_message(host, user, password): | |
while True: | |
imap_client = aioimaplib.IMAP4_SSL(host=host) | |
await imap_client.wait_hello_from_server() |
#include <cstdio> | |
#include <cstdlib> | |
#include <csignal> | |
#include <sys/wait.h> | |
typedef struct { | |
int pid; | |
FILE* stdin; | |
FILE* stdout; | |
FILE* stderr; |
original: https://gist.github.com/sghael/6cba5c75a36ed271fa959c35e516e516
Check for Active Connections:
nmcli
to list active connections and identify the correct connection name:
nmcli connection show
#!./venv/bin/python | |
import sys | |
import os | |
import http.server | |
import subprocess | |
# import json | |
import socket | |
disk_path_list = ["/dev/sdb", "/dev/sdc"] |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Copy to Clipboard</title> | |
</head> | |
<body> | |
<script> | |
window.addEventListener('load', (event) => { |
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\F15576E8-98B7-4186-B944-EAFA664402D9 /v Attributes /t REG_DWORD /d 2 /f
open powerplan and set "Disable Networking connectivity in Standby" disabled.
open device manager. disable "Wake on Pattern Match".
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>JS Minify</title> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle.min.js"></script> | |
</head> | |
<body> | |
<script> |
(function() { | |
let browserName; | |
if(navigator.userAgentData) { | |
var brandSpecific = navigator.userAgentData.brands.find(function(brand) {return brand.brand == "Google Chrome" || brand.brand == "Microsoft Edge";}) | |
if(brandSpecific) { | |
browserName = brandSpecific.brand + " " + brandSpecific.version; | |
} else { | |
browserName = navigator.userAgentData.brands.map(function (brand, index, array) { return brand.brand + " " + brand.version; }).join(", ") | |
} | |
} else { |
(function () { | |
const elem = document.createElement("a"); | |
elem.href = location.href; | |
elem.innerText = document.title; | |
document.body.appendChild(elem); | |
try { | |
const range = document.createRange(); | |
range.selectNodeContents(elem) | |
const selection = window.getSelection(); | |
selection.removeAllRanges(); |
apt-get install gfortran-mingw-w64-x86-64-win32 gcc-mingw-w64-x86-64-win32 | |
CCPREFIX=x86_64-w64-mingw32- | |
make -j$(nproc) TARGET=HASWELL NUM_THREADS=256 HOSTCC="gcc" AR=${CCPREFIX}ar CC=${CCPREFIX}gcc RANLIB=${CCPREFIX}ranlib F_COMPILER=${CCPREFIX}gfortran FC=${CCPREFIX}gfortran |