Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

NAKAMURA, Tomohiro tomoh1r

I may be slow to respond.
View GitHub Profile
lukassup /
Last active Mar 29, 2022
Python zipapp

Python zipapp web apps

What's a zipapp?

This concept is very much like .jar or .war archives in Java.

NOTE: The built .pyz zipapp can run on both Python 2 & 3 but you can only build .pyz zipapps with Python 3.5 or later.

Initial setup

AntonMiles / dockerfile
Created Jul 15, 2017
Creating A .NET Windows Docker Container With Internal IIS SSL (From PFX File) and HTTPS Support
View dockerfile
# The following won't work as-is, I use '<>' to denote variables you need to replace, including a name so you can keep them straight!
# A list of all of them, for searching follows.
# app_directory
# app_name
# ssl_password
# ssl_name
#base machine is meant to contain IIS as well as asp/.net requirements
FROM microsoft/aspnet
#Expose port 443 to allow incoming traffic over the default HTTPS port
dhalperi /
Created Mar 30, 2017
BigQuery example: load an external archive into date-partitioned tables
* Copyright (C) 2016 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* Unless required by applicable law or agreed to in writing, software
MisaKondo /
Last active May 3, 2022

この記事はGoogle Cloud Platform(1) Advent Calendar 2016の3日目となります!

Google Cloud Platform(以下、GCP)のサービスも一部はTokyoにようやくRegionが来たことだし、そろそろ利用してみたいと思った人も多いのではないでしょうか。 今回は、Google Compute Engine(以下、GCE)をTerraformを利用して構成管理をしてみます。


GCP Terraform
gcp terraform
mapk0y /
Last active May 24, 2022
docker build 時に特定のディレクトリのコピーだけ除外したい



├── index.html
├── bar
│   └── hoge
└── foo
limingjie / 256
Last active Aug 26, 2022
256 colors in putty, tmux/screen and vim
View 256

#256 colors in putty, tmux/screen and vim There is a detailed answer on stackoverflow. If you are looking for a short one, here it is.

  • putty

    Set Connection -> Data -> Terminal-type string to xterm-256color

  • tmux

Add this line to ~/.tmux.conf





mizchi / Increments, Inc.

@ React Meetup #1

# -*- coding: utf-8 -*-
from datetime import datetime
import contextlib
import unittest
def mock_datetime_now(module_path, return_value):
適当なモジュールの を mock し、適当な日付を返すようにする。
katzchang /
Last active Sep 15, 2016


  • トイレットペーパーホルダーが二つあるトイレでは、紙が少ないほうを先に使いましょう
iberianpig / .ideavimrc
Created Mar 30, 2015
View .ideavimrc
set nowrapscan
set ignorecase
set smartcase