Linux:timezoneを変更する
現在の設定をバックアップ(任意)
cp /etc/localtime /etc/localtime.bak
timezoneを変更
JST
cp …
cp /etc/localtime /etc/localtime.bak
cp …
from tempfile import TemporaryFile
with TemporaryFile(mode='w') as f:
f.write(...) …
class Foo:
def __bar(self, arg):
# do something
f = Foo()
f._Foo__bar(... …
git clone を実行すると以下のエラーが発生する
git clone https://github.com/user/Project.git/
認証局の証明書がインストールされて …
from django.views import View
from django.views.decorators.csrf import …
Class-based generic view に対してPOSTリクエストを行うと以下のエラーが発生し、
HTTPステータスは403が返却される
[2018-12-06 …
以下のコマンドでRabbitMQ起動してもエラーで起動出来なかった
systemctl start rabbitmq-server
systemctl staus …
apt-get install -y wget gcc make
wget …