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
FROM mcr.microsoft.com/azure-cli:latest | |
COPY azure-update-ddns.sh /usr/local/bin | |
RUN chmod 755 /usr/local/bin/azure-update-ddns.sh | |
CMD ["/usr/local/bin/azure-update-ddns.sh"] |
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
# This GIST can be used to rename a table in AWS Glue and keep the | |
# partitioning scheme intact. | |
import boto3 | |
region = "eu-west-1" | |
database_name = "rdk-test" | |
table_name = "yt_uncompressed" | |
new_table_name = "nyc_taxiset" | |
client = boto3.client("glue", region_name=region) |
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> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
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
# This script can be used to generate a ca-cert.crt file that can be used by | |
# Unix-based utilities like curl, git, ... | |
# | |
# It allows you to synchronize the root certificates (CA) based on the | |
# certificates installed in your Windows certification stores. You can also | |
# get a list from Mozilla, but I think it's convenient to have the same CA | |
# certificates in all tools. | |
# | |
# Some examples on how to use this script: | |
# |
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; | |
using StructureMap; | |
namespace ConsoleApplication5 | |
{ | |
static class Program | |
{ | |
public interface ISayHello | |
{ | |
void SayHello(); |
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
# This Powershell script can be used on a server to redirect HTTP/HTTPS | |
# traffic to different sources. Make sure your DNS routes the requests | |
# for the source URLs to this server. It automatically forwards the URL | |
# to the destination server without altering the rest of the URL. | |
# | |
# You can use multiple mappings. Of course the 'source' should be | |
# unique, but the destination can occur multiple times. | |
# | |
# Make sure PowerShell is allowed to run this script. You might need to | |
# change PowerShell's policy by running the following command as admin: |
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
(function($){ | |
var hasTouch = /android|iphone|ipad/i.test(navigator.userAgent.toLowerCase()), | |
eventName = hasTouch ? 'touchend' : 'click'; | |
/** | |
* Bind an event handler to the "double tap" JavaScript event. | |
* @param {function} doubleTapHandler | |
* @param {number} [delay=300] | |
*/ |