Skip to content

Instantly share code, notes, and snippets.

View liluo's full-sized avatar
:octocat:
Hey, there ~

liluo liluo

:octocat:
Hey, there ~
View GitHub Profile
@liluo
liluo / goroutines.swift
Created July 5, 2019 08:54 — forked from chriseidhof/goroutines.swift
goroutines.swift
import Foundation
protocol Channel: IteratorProtocol {
func send(_ value: Element?)
}
/// A blocking channel for sending values.
///
/// `send` and `receive` must run in separate separate execution contexts, otherwise you get a deadlock.
final class BlockingChannel<A>: Channel {

Keybase proof

I hereby claim:

  • I am liluo on github.
  • I am liluo (https://keybase.io/liluo) on keybase.
  • I have a public key ASD4tzuHo4fZ3OJyRF63A0f2RA21Gogwuzsml8tVPQ1-sAo

To claim this, I am signing this object:

#!/bin/bash
source /home/project/myenv/bin/activate
cd /home/project/server
PID=$(ps aux | grep 'uvicorn myapp:app' | grep -v grep | awk {'print $2'} | xargs)
if [ "$PID" != "" ]
then
kill -9 $PID
sleep 2
echo "" > nohup.out
echo "Restarting FastAPI server"
#!/bin/bash
source /home/project/myenv/bin/activate
cd /home/project/server
PID=$(ps aux | grep 'uvicorn myapp:app' | grep -v grep | awk {'print $2'} | xargs)
if [ "$PID" != "" ]
then
kill -9 $PID
PID=$(ps aux | grep '/home/project/myenv/bin/python -c from multiprocessing' | grep -v grep | awk {'print $2'} | xargs)
if [ "$PID" != "" ]
then

Fearless Words 隐私政策

最后更新日期:2025年3月10日

引言

欢迎使用 Fearless Words("我们"、"我们的"或"本插件")。本隐私政策旨在向您说明我们如何收集、使用、存储和保护您在使用我们的浏览器插件时提供的信息。

我们高度重视您的隐私。Fearless Words 的设计初衷是帮助非英语母语者克服阅读英文网页的恐惧,同时尊重您的隐私权。