This file contains 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
top - 13:26:22 up 49 min, 2 users, load average: 1.49, 1.18, 0.87 | |
Tasks: 136 total, 1 running, 135 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 4.7%us, 84.4%sy, 10.6%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st | |
Mem: 1803792k total, 1674232k used, 129560k free, 14356k buffers | |
Swap: 0k total, 0k used, 0k free, 595548k cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
4299 imom0 20 0 898m 671m 613m S 92.8 38.1 6:39.06 VirtualBox | |
1254 root 20 0 171m 78m 17m S 1.7 4.5 1:52.98 Xorg | |
4366 imom0 20 0 113m 31m 19m S 1.7 1.8 0:08.70 pidgin |
This file contains 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
#!/bin/sh | |
lock=/tmp/mac_lock | |
wlan=wlan0 | |
essid=xjtu_lib | |
mac_base="C9:1A:B9:6B:6C:" | |
function req_addr() { | |
if [ -f "$lock" ] | |
then |
This file contains 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
就出这么几个 | |
1.虚拟内存原理。要答到页表,mmu,等等 | |
2.可执行程序入口(谁调用了main) | |
3.大小端 | |
4.对齐 | |
5.UNIX/Linux C的异常控制流/非本地跳转(信号longjmp/setjmp) | |
6.典型的进程地址空间布局 | |
请大家补充 |
This file contains 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
:+1: | |
just test emoji |
This file contains 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
#!/bin/bash | |
# https://gist.github.com/949831 | |
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
# command line OTA distribution references and examples | |
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |
This file contains 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
#!/bin/bash | |
count="1" | |
for i in *.png; do | |
mv "$i" "${count}".png; | |
count=`expr $count + 1`; | |
done |
This file contains 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
发信人: sujunwei (su_junwei), 信区: linux | |
标 题: 跪求一段bash命令脚本 | |
发信站: 兵马俑BBS (Wed May 23 11:02:29 2012), 本站(bbs.xjtu.edu.cn) | |
如题 | |
我想改一个文件夹里面里面的文件,文件名字知道,路径需要查找,然后将对应的文件名修 | |
改一个名字 | |
比如需要将当前文件夹或者子文件夹中的 file1、 file2、files3 ...改为_file1、 |
This file contains 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
wget https://addons.mozilla.org/firefox/downloads/latest/287139/addon-287139-latest.xpi | |
--2012-06-25 02:17:38-- https://addons.mozilla.org/firefox/downloads/latest/287139/addon-287139-latest.xpi | |
Resolving addons.mozilla.org... 2620:101:8008:5::2:2, 63.245.217.112 | |
Connecting to addons.mozilla.org|2620:101:8008:5::2:2|:443... connected. | |
HTTP request sent, awaiting response... 301 MOVED PERMANENTLY | |
Location: https://addons.mozilla.org/firefox/downloads/latest/instantfox/addon-instantfox-latest.xpi [following] | |
--2012-06-25 02:17:39-- https://addons.mozilla.org/firefox/downloads/latest/instantfox/addon-instantfox-latest.xpi | |
Reusing existing connection to addons.mozilla.org:443. | |
HTTP request sent, awaiting response... 302 FOUND | |
Location: https://addons.mozilla.org/firefox/downloads/file/148122/instantfox_quick_search-2.7.1-fx.xpi [following] |
This file contains 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
class MyClass(object): | |
"""Example of a doctest Ellipsis | |
>>> thing = MyClass() | |
>>> # Match <class '__main__.MyClass'> and <class '%(module).MyClass'> | |
>>> type(thing) # doctest:+ELLIPSIS | |
<class '....MyClass'> | |
""" | |
pass |
This file contains 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/env python | |
# -*- coding: UTF-8 -*- | |
"""Test docopt example. | |
Usage: | |
myopt.py run (update|watch) | |
myopt.py -h | --help | |
myopt.py --version |
OlderNewer