I hereby claim:
- I am qmager on github.
- I am qmger (https://keybase.io/qmger) on keybase.
- I have a public key ASDQr3R4Jb510l6GIAOUJigWNEG0Aday9VyVwOEaqP372Qo
To claim this, I am signing this object:
Set up the reverse proxy with a dummy hostname on the Synology GUI which points to the DIYhue Docker container | |
Find the reverse proxy file /etc/nginx/sites-enabled/reverse_proxy.conf | |
Add the local ip address to the server_name: The server_name declaration should be looking as following: | |
server_name dummy_hostname xxx.xxx.xxx.xxx; | |
Reload nginx with `sudo nginx -s reload` | |
#!/bin/bash | |
echo "Usage: ytcrop.sh VIDEO_LINK START_TIME DURATION [filename]" | |
LINKS=$(youtube-dl -g $1) | |
# Parse first link which is video | |
VIDEO_LINK=$(echo $LINKS | tr " " "\n" | head -n1 ) | |
# Parse second link which is audio | |
AUDIO_LINK=$(echo $LINKS | tr " " "\n" | tail -n1 ) | |
# echo Video link: $VIDEO_LINK | |
# echo Audio link: $AUDIO_LINK |
#!/bin/bash | |
# #1 should be the path of the private key. | |
ssh-keygen -y -f $1.pub > $1.pub | |
echo "Public key written to : $1.pub" |
// I had some issues with implementing the verification for the Slack Signature in the POST requests. Turns out I didn't remove the '-' in my Hash. This method works in my case. | |
// Copied from https://github.com/microsoft/botbuilder-dotnet/blob/master/libraries/Adapters/Microsoft.Bot.Builder.Adapters.Slack/SlackClientWrapper.cs#L673 | |
public bool VerifySignature(HttpListenerRequest request, string body) | |
{ | |
if (request == null || string.IsNullOrWhiteSpace(body)) | |
{ | |
return false; | |
} | |
var timestamp = request.Headers["X-Slack-Request-Timestamp"]; |
I hereby claim:
To claim this, I am signing this object: