/etc/rc.conf.local
apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |
{ | |
"AWSEBDockerrunVersion": "1", | |
"Image": { | |
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
"Update": "true" | |
}, | |
"Ports": [ | |
{ | |
"ContainerPort": "443" | |
} |
function getFileMd5 ( file ) { | |
var dfd = jQuery.Deferred(); | |
/** | |
* reference: | |
* https://github.com/satazor/SparkMD5 | |
*/ | |
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice, | |
chunkSize = 2097152, // Read in chunks of 2MB | |
chunks = Math.ceil(file.size / chunkSize), | |
currentChunk = 0, |
import javafx.application.*; | |
import javafx.geometry.Pos; | |
import javafx.scene.*; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.*; | |
import javafx.scene.paint.Color; | |
import javafx.stage.*; | |
import javax.imageio.ImageIO; | |
import java.io.IOException; |
import base64, copy, sys | |
import requests | |
import json | |
from urlparse import urlparse | |
sip_domain = "company.com" | |
username = "[email protected]" | |
password = "somepassword" | |
def extractAuthURL(str): |
import requests | |
import json | |
from urlparse import urlparse | |
sip_domain = "SIP_DOMAIN.COM" | |
username = "USERNAME@SIP_DOMAIN.COM" | |
password = "YOUR_LYNC_PASSWORD" | |
def extractAuthURL(str): | |
start = str.find('MsRtcOAuth'); |
{ | |
"status": "success", | |
"search_nag": {}, | |
"code": 0, | |
"bookmark": "b28xMDB8MDQ0NWZiOTBjNzNiODlkOTQ1ZTk3ZjY0ZTBhYjU0YjM0ZDYyNDg3NjU3ZWQ3OGJmZjI4ZTliZGRmODBlMzJlNQ==", | |
"debug_data": { | |
"query_data": {} | |
}, | |
"message": "ok", | |
"data": [ |