Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
Discover gists
_slugify_strip_re = re.compile(r'[^\w\s-]') | |
_slugify_hyphenate_re = re.compile(r'[-\s]+') | |
def slugify(value): | |
""" | |
Normalizes string, converts to lowercase, removes non-alpha characters, | |
and converts spaces to hyphens. | |
From Django's "django/template/defaultfilters.py". | |
""" | |
import unicodedata |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
I assume that you have a running debian wheezy host with libvirt and qemu/kvm
installed. You need two guest VMs for this. The first guest will get the IP
192.168.100.2 and the second will get 192.168.100.100. All following commands
must be run with sudo
or under root.
We create a new network named internal with libvirt and use it with the IP
# SGR color constants | |
# rene-d 2018 | |
class Colors: | |
""" ANSI color codes """ | |
BLACK = "\033[0;30m" | |
RED = "\033[0;31m" | |
GREEN = "\033[0;32m" | |
BROWN = "\033[0;33m" | |
BLUE = "\033[0;34m" |
#!/bin/sh | |
# Explore: | |
# https://github.com/howardabrams/hamacs/blob/main/README-Linux.org | |
# https://batsov.com/articles/2021/12/19/building-emacs-from-source-with-pgtk/ | |
# https://practical.li/blog/build-emacs-from-source-on-debian-linux/ | |
# https://github.com/konstare/emacs-gcc-pgtk/blob/master/Dockerfile | |
# First determine your gcc version with gcc --version, | |
# then modify libgccjit-12-dev below to the major version number you have! |
- Create a new user with administrator permissions
- Sign out of the current user and sign in as the newly created user
- Navigate to
C:\Users
in File Explorer - Click into the account you want move AppData from
- There could be a popup telling you that you need to allow yourself to access that user's data, do so
- Cut the AppData folder
- If invisible, go to View and check Hidden Items
- Paste in the desired location
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
# This isn't supposed to run as a bash script, i named it with ".sh" for syntax highlighting. | |
# https://developer.nvidia.com/nsight-systems | |
# https://docs.nvidia.com/nsight-systems/profiling/index.html | |
# My preferred nsys (command line executable used to create profiles) commands | |
# | |
# In your script, write | |
# torch.cuda.nvtx.range_push("region name") | |
# ... |