- Xcode
- Charles
- 1 Passwords
- Alfred
- iTerm2
- SourceTree
- VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mkdir test-node; cd test-node; touch app.js; npm init -y | |
// 安装:npm install --save express nodemon body-parser | |
// 执行:nodemon app | |
var express = require('express'); | |
var app = express(); | |
app.get('/api', (req, res, next) => { | |
res.send(req.query); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Directory info. | |
local current_dir='${PWD/#$HOME/~} ' | |
# ret status | |
local ret_status="(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
# VCS | |
YS_VCS_PROMPT_PREFIX="%{$fg_bold[white]%}[%{$reset_color%}%{$fg_bold[cyan]%}" | |
YS_VCS_PROMPT_SUFFIX="%{$reset_color%} " | |
YS_VCS_PROMPT_DIRTY=" %{$fg[red]%}✗" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run `gem install plist` first | |
require 'plist' | |
file_path = ARGV[0] | |
map = {} # 用于过滤 | |
File.open(file_path, "r").each do |line| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# | |
# This script parses a crashdump file and attempts to resolve addresses into function names. | |
# | |
# It finds symbol-rich binaries by: | |
# a) searching in Spotlight to find .dSYM files by UUID, then finding the executable from there. | |
# That finds the symbols for binaries that a developer has built with "DWARF with dSYM File". | |
# b) searching in various SDK directories. | |
# | |
# Copyright (c) 2008-2015 Apple Inc. All Rights Reserved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
#coding:utf-8 | |
import re | |
import os | |
path = raw_input("folder path: ") | |
fileType = ['.m', '.h'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-*- coding: utf-8 -*- | |
#encoding=utf-8 | |
import urllib2 | |
import re | |
from bs4 import BeautifulSoup | |
import sys | |
reload(sys) |