Skip to content

Instantly share code, notes, and snippets.

@ziyunli
ziyunli / transcript.txt
Created July 21, 2023 22:15
gZuG4Yng4bY
Hello Diablo community, welcome to another Diablo 4 Campfire Chat. My name is Adam Fletcher, I am the Associate Director of Community here for Diablo. I'm joined here by Joe Shelley, Game Director of Diablo 4, and Mr. Joe Paipora, the Associate Game Director for Diablo 4. We have a lot to talk about today. Obviously we have this Campfire Chat because we do want to talk about the patch that just released this past week, which is patch 1.1.0. We've seen a ton of feedback, we've heard a lot of feedback, and so we do want to go through a lot of the points of feedback that we've been hearing and at the same time the patch itself. The biggest thing to kick us off here, I think we want to obviously acknowledge everyone's feedback in regards to reducing player power. We know it is bad, we know it is not fun, and it's something that we ourselves know that it's not the greatest play experience for players out there. We do want to explain why we ended up doing it within the actual patch, and then of course we also want
@ziyunli
ziyunli / 20230131-home.txt
Last active October 4, 2023 06:45
OneTab
https://www.chronophoto.app/web.html | Chronophoto - The Photographical History Game
https://maxbittker.github.io/broider/ | broider
https://www.searchthedeck.com/ | Search The Deck
https://news.ycombinator.com/item?id=34531989 | Ask HN: What have you created that deserves a second chance on HN? | Hacker News
https://www.coursera.org/learn/modernrobotics-course1/supplement/htN7x/welcome-to-the-specialization | Welcome to the Specialization! | Coursera
http://hades.mech.northwestern.edu/index.php/Modern_Robotics | Modern Robotics - Northwestern Mechatronics Wiki
https://pypi.org/project/modern_robotics/ | modern_robotics · PyPI
https://beagleboard.org/blue | BeagleBoard.org - blue
https://odriverobotics.com/ | ODrive
https://datasette.io/examples | Datasette Examples
@ziyunli
ziyunli / dedup.py
Created July 5, 2022 01:28
OneTab Operations
with open('onetab.txt', encoding="utf-8") as f:
with open('dedup.txt', 'w', encoding="utf-8") as out:
links = {}
is_linebreak = False
for line in f:
line = line.strip()
if not line:
if not is_linebreak:
out.write('\n')
is_linebreak = True
@ziyunli
ziyunli / clean-git-branches.sh
Created November 21, 2019 16:07
Clean up invalid git branches
#!/bin/sh
# From https://stackoverflow.com/a/28319271
set -e
if [ $# -eq 0 ]; then
dir="."
else
dir="$1"
@ziyunli
ziyunli / index.md
Created October 25, 2019 17:18 — forked from bojand/index.md
gRPC and Load Balancing

Just documenting docs, articles, and discussion related to gRPC and load balancing.

https://github.com/grpc/grpc/blob/master/doc/load-balancing.md

Seems gRPC prefers thin client-side load balancing where a client gets a list of connected clients and a load balancing policy from a "load balancer" and then performs client-side load balancing based on the information. However, this could be useful for traditional load banaling approaches in clound deployments.

https://groups.google.com/forum/#!topic/grpc-io/8s7UHY_Q1po

gRPC "works" in AWS. That is, you can run gRPC services on EC2 nodes and have them connect to other nodes, and everything is fine. If you are using AWS for easy access to hardware then all is fine. What doesn't work is ELB (aka CLB), and ALBs. Neither of these support HTTP/2 (h2c) in a way that gRPC needs.

@ziyunli
ziyunli / rails_webpacker_bootstrap_expose_jquery.md
Created August 28, 2019 04:11 — forked from andyyou/rails_webpacker_bootstrap_expose_jquery.md
Rails 5.2 with webpacker, bootstrap, stimulus starter

Rails 5.2 with webpacker, bootstrap, stimulus starter

This gist will collects all issues we solved with Rails 5.2 and Webpacker

Create Project

# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
@ziyunli
ziyunli / pgcli
Created February 28, 2019 15:23
configs
# vi: ft=dosini
[main]
# Enables context sensitive auto-completion. If this is disabled the all
# possible completions will be listed.
smart_completion = True
# Display the completions in several columns. (More completions will be
# visible.)
wider_completion_menu = False

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

# custom PyCharm Community Edition VM options
# https://intellij-support.jetbrains.com/hc/en-us/articles/206544869?page=1#comment_200744859
-ea
-server
-Xms1g
-Xmx1g
-Xss16m
-XX:PermSize=256m
-XX:MaxPermSize=256m