启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
tmux at [-t 会话名]
(defun open-with-vscode () | |
"Open current file with vscode." | |
(interactive) | |
(let ((line (number-to-string (line-number-at-pos))) | |
(column (number-to-string (current-column)))) | |
(apply 'call-process "code" nil nil nil (list (concat buffer-file-name ":" line ":" column) "--goto")))) | |
(global-set-key (kbd "C-c j v") 'open-with-vscode) |
#!/usr/bin/env python | |
# Usage: python cors_http_server.py <port> | |
try: | |
# try to use Python 3 | |
from http.server import HTTPServer, SimpleHTTPRequestHandler, test as test_orig | |
import sys | |
def test (*args): | |
test_orig(*args, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000) |
echo -ne "-1\r" | |
sleep 1 | |
echo -ne "--2\r" | |
sleep 1 | |
echo -ne "---3\r" |
# show all latest commits in each branch | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
sudo launchctl unload /Library/LaunchDaemons/com.symantec.symdaemon.plist | |
sudo launchctl unload /Library/LaunchDaemons/com.symantec.sharedsettings.plist | |
launchctl unload /Library/LaunchAgents/com.symantec.uiagent.application.plist |
[ | |
{ | |
"content": [ | |
{ | |
"content": [ | |
"奥迪Q5L", | |
"奥迪A3", | |
"奥迪A4L", | |
"奥迪A6L", | |
"奥迪A6L新能源", |
//fix the problem ,webpack + sourceMap backgound-image do not load | |
//replace the action in addStyles.js updateLink function | |
css = css.replace(/url\((?!data\:)/g,"url("+document.location.origin+"/") |
#! /usr/bin/env python | |
# coding: utf-8 | |
''' | |
auto switch keyboard between different applications | |
if you want to change the app list, modify the var 'ignore_list' | |
''' | |
from AppKit import NSWorkspace, NSWorkspaceDidActivateApplicationNotification, NSWorkspaceApplicationKey |