taskkill /pid {pid} /f
netstat -ano | findstr :8090
sudo scutil --set HostName name-you-want |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"/> | |
<meta content="telephone=no" name="format-detection"> | |
<title>cube</title> | |
<style> |
div{ | |
overflow : hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-line-clamp: 3; /*3行高*/ | |
-webkit-box-orient: vertical; | |
} |
import os.path | |
import contextlib | |
import hashlib | |
from flask import Flask | |
from flask.helpers import safe_join | |
# Injects an "h" parameter on the URLs of static files that contains a hash of | |
# the file. This allows the use of aggressive cache settings on static files, | |
# while ensuring that content changes are reflected immediately due to the | |
# changed URLs. Hashes are cached in-memory and only checked for updates when |
brew upgrade | |
brew install redis | |
brew services start reids | |
redis-cli ping // will output 'PONG' |
yum install redis | |
systemctl start reids | |
redis-cli ping |
class AutoBindMethod { | |
constructor () { | |
Object.getOwnPropertyNames(this.constructor.prototype).forEach(m => { | |
this[m] = this[m].bind(this) | |
}) | |
} | |
} | |
class Demo extends AutoBindMethod { | |
constructor () { |
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
git diff --name-only HEAD^ | xargs tar -zcvf update.zip |