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
""" | |
stable diffusion dreaming | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry | |
to stitch together the images, e.g.: | |
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4 |
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> | |
<title>1行が2段組のテーブルを縞々に表示する</title> | |
<style type="text/css"> | |
.table-striped-2span tbody tr:nth-of-type(4n+1), .table-striped-2span tbody tr:nth-of-type(4n+2) { | |
background-color: #c0c0c0; | |
} | |
</style> |
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
version: "3" | |
services: | |
vpn: | |
image: hwdsl2/ipsec-vpn-server | |
env_file: | |
- ./vpn.env | |
ports: | |
- "500:500/udp" | |
- "4500:4500/udp" |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import os | |
import shutil | |
import math | |
import psycopg2 | |
from flask import Flask, render_template, make_response | |
app = Flask(__name__) |
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
PostgreSQLでテーブルのデータファイル名を確認する方法。 | |
PostgreSQLでは、1テーブル/1インデックス毎に1ファイルが割り当てられる。 | |
ディスク容量にあまり余裕がない場合などに、大きなファイルを持つテーブルを、 | |
別ディスクに移動させたければ、 | |
ALTER TABLE 表名 SET TABLESPACE テーブルスペース名; | |
などとして別領域へ移動させたい場合がある。 | |
しかし、ファイル名には一意な数値が使用されているため、どのファイルがどのテーブルの | |
ものなのかパッと見では判別できない。 |