This file contains hidden or 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 ecsruntask import ECSRunTask # import wherever your task lives | |
from prefect import task, Flow | |
ecs = ECSRunTask( | |
task_definition="stockdata", | |
cluster="ecsDemo", | |
network_configuration={ | |
"awsvpcConfiguration": { | |
"subnets": ["subnet-xxx", "subnet-xxx", "subnet-xxx"], |
This file contains hidden or 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
##!/usr/bin/env python3 | |
import os | |
import sys | |
from pexpect.pxssh import pxssh as PXSSH | |
import getpass | |
class Debug_PXSSH(PXSSH): | |
def sendline(self, input='') -> int: |
This file contains hidden or 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
# coding: utf-8 | |
from selenium import webdriver | |
edge_options = { | |
"executable_path": "/Users/takahiro/selenium-webdrivers/edge-83/msedgedriver", | |
# ofcourse change path to driver you downloaded. | |
"capabilities": { | |
"platformName": 'mac os x', # I get this from Chrome driver's capabilities | |
# "os" : "OS X", # also ok. | |
} |
This file contains hidden or 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
# AppVeyor.yml for Zipped files to XCopy Deploy. | |
# - Require VS2013 ($env:MSBUILD_EXE) | |
# - Require 7Zip ($env:szip) | |
# - "C:\opt\nuget3.4\appveyor_nugetconfig\nuget.config" | |
# - C:\opt\nuget3.4\nget.exe | |
# version: 1.0.{build} | |
# 必要に応じてAssemblyInfoパッチなども行う。このymlを共通で使うならここでバージョンしない方が良いと思う。 | |
configuration: Release |
This file contains hidden or 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
# empty the stash | |
$ git stash clear | |
# objects can also be reached through the reflog. | |
# while branches record the history of some project, reflogs record the history of these branches. | |
# if you amend, reset etc. commits are removed from the branch history | |
# but git keeps them around in case you realize that you made a mistake. | |
# reflogs are a convenient way to find out what destructive (and other) operations were performed | |
# on a branch (or HEAD), making it easier to undo a destructive operation. |
This file contains hidden or 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 System.Linq; | |
using System.Reactive.Linq; | |
namespace RxAndThenWhenFizzBuzz { | |
class Program { | |
static void Main(string[] args) { | |
var numberObserver = Observable.Range(1, 30); | |
var fizzObserver = numberObserver.Select(i => i % 3 == 0 ? "Fizz" : ""); | |
var buzzObserver = numberObserver.Select(i => i % 5 == 0 ? "Buzz" : ""); |
This file contains hidden or 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 Start-DNSClientLog { | |
$DnsOpLog = Get-WinEvent -ListLog Microsoft-Windows-DNS-Client/Operational | |
$DnsOpLog.IsEnabled = $true | |
$DnsOpLog.SaveChanges() | |
} | |
function Get-DNSClientQueries { | |
foreach($event in (get-winevent Microsoft-Windows-DNS-Client/Operational | % { [xml]$_.ToXml() })) { | |
$Query = ($event.Event.EventData.Data | Where-Object { $_.Name -eq "QueryName" }).'#text' |
This file contains hidden or 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
// | |
// Dapperを利用するにはパッケージマネージャコンソールで | |
// Install-Package Dapper | |
// と入力して、予めライブラリをプロジェクトに参照設定しておきます。 | |
// | |
namespace DapperSample | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
原著者: | Adrian Holovaty |
---|---|
原文: | Why I left Heroku, and notes on my new AWS setup |
金曜日、私は Heroku から Amazon Web Services(AWS) を直接使うように Soundslice を移行しました。私はこの変更ができてとても、そうとても嬉しくて、私がどうやったかということと、もし皆さんが同じような立場だったら何故それを検討すべきかということについて広く伝えたいと思います。
NewerOlder