諸事情で自宅鯖ちゃんが死んだのでノリでさくら VPS 借りた — Gist
ひとまずは一番アクセスの多い Undersky を復活させつつ
Apache+Passenger から乗り換えるべく Nginx+Unicorn 環境を試行錯誤してみた
以下は Undersky における設定もとい作業ログ
設定はググって出てきたものを寄せ集めてコピペしてきただけである
諸事情で自宅鯖ちゃんが死んだのでノリでさくら VPS 借りた — Gist
ひとまずは一番アクセスの多い Undersky を復活させつつ
Apache+Passenger から乗り換えるべく Nginx+Unicorn 環境を試行錯誤してみた
以下は Undersky における設定もとい作業ログ
設定はググって出てきたものを寄せ集めてコピペしてきただけである
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys
and look for sec
, use the key ID for the next stepgit
to use GPG -- replace the key with the one from gpg --list-secret-keys
# An example of using SQLAlchemy / PSQL for PubSub with asyncio | |
# Rather than using `select.select` to watch for messages, we use | |
# `loop.add_reader`. | |
# Inspired by: https://gist.github.com/dtheodor/3862093af36a1aeb8104 | |
# | |
# One example of use is with aiopyramid. | |
# | |
# For an additional consideration, read about case folding here: | |
# http://stackoverflow.com/a/5173993/465164 |
# thanks Eli! https://github.com/seemethere | |
import os | |
import asyncio | |
import uvloop | |
from asyncpg import connect, create_pool | |
from sanic import Sanic | |
from sanic.response import json |
更新: | 2024-05-21 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
概要
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
<script> | |
import allTravelsGql from '../../GQL/travel/allTravels.gql' | |
import {pagination, getSkipFirst} from '../../../generated-cms/util/pagination' | |
import {getTravelQuery, setCategoryOnQuery} from '../../util/getTravelQuery' | |
const buildQuery = variables => { | |
return { | |
query: allTravelsGql, | |
variables, | |
manual: true, |
import https from 'https' | |
export default function({ $axios }) { | |
const agent = new https.Agent({ | |
rejectUnauthorized: false | |
}) | |
$axios.onRequest(config => { | |
if (process.env.dev) { | |
config.httpsAgent = agent | |
} |