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
'http://www.thewindowsclub.com/make-windows-8-speak-out-the-time-every-hour | |
Dim speaks, speech | |
speaks = "it's " & hour(time) & " hours and " & minute(time) & " minutes" | |
Set speech = CreateObject("sapi.spvoice") | |
speech.Speak speaks |
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
using System.Linq; | |
using System.Security.Principal; | |
public static class PrincipalExtensions | |
{ | |
public static bool IsInAllRoles (this IPrincipal principal, params string[] roles) | |
{ | |
return roles.All (r1 => r1.Split (',').All (r2 => principal.IsInRole (r2.Trim()))); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>DOODS url:</p> | |
<input type="text" value="http://127.0.0.1:8080/detect" id="doodsUrlInput" /> | |
<p>Select an image:</p> | |
<input type="file" onchange="proccessImage(event)" /> |
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
#!/bin/bash | |
# stop the current app | |
cd last-watch-ai | |
sudo docker-compose down | |
cd .. | |
# move old install | |
mv last-watch-ai last-watch-ai-old |
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
server { | |
server_name ispy.domain.com; | |
listen 443 ssl http2; | |
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always; | |
ssl_certificate /etc/nginx/certs/fullchain.pem; | |
ssl_certificate_key /etc/nginx/certs/privkey.pem; | |
include /etc/nginx/certs/options-ssl-nginx.conf; | |
ssl_dhparam /etc/nginx/certs/ssl-dhparams.pem; |