- 博客(116)
- 资源 (8)
- 收藏
- 关注
原创 Go语言进阶
摘自Go语言高级编程数组var f = […]int{} // 定义一个长度为0的数组长度为0的数组在内存中并不占用空间。空数组虽然很少直接使用,但是可以用于强调某种特有类型的操作时避免分配额外的内存空间,比如用于管道的同步操作:c1 := make(chan [0]int)go func() { fmt.Println("c1") c1 <- [0]int{}}...
2023-08-08 09:43:16
662
1
原创 RK3399 firefly SW download
change URL from //www. to //en. in the links in this post to switch from CN to EN (?)my respect to How To get your brand new RK3399 to actually boot linuxdownload linksmanualbootloaderWindows. install DriverAssitant_v4.5.rarboot Androidadb reboot b
2022-01-06 15:07:53
1220
原创 Debian installation
IndexInstallationX WindowLanguage and localeSoftware SourcesgccPythonInstallationDownload iso from Debian.Write USB from iso. Boot enabled.Alongside Windows or not.Free space on HD for new partitions.Boot with USB and install. During partition con
2021-05-08 22:26:48
208
转载 cVim for Chrome
KeybindingsMovementj, sscroll downk, wscroll uphscroll leftlscroll rightdscroll half-page downu, escroll half-page upggscroll to the top of the pageGscroll to t...
2019-09-06 15:33:42
265
转载 can't visit some network neighbors
on Windows 10, some neighbors can be reached while others can’thttps://community.spiceworks.com/topic/1162811-windows-10-can-t-access-network-shares?page=3Within the latest “Windows 10 Fall Creato
2018-02-06 17:28:31
226
原创 tmux and zshell
zshell^a: go to beginning of the command line^e: go to end of the command line^_: undo^u: clear command linea-l: lslike bash shells^k: clear till the enda-b: move back a worda-f: move forward
2017-06-02 16:58:07
478
原创 set proxy for command line and build neovim without root priv
export https_proxy=’http://username:password@ip:port/’ or http_proxy. use %40 for @ in usernamedownload neovim source. when running make …, it needed CMake. download CMake and move them to ~/bin. bu
2017-06-01 13:28:08
594
原创 Android startActivityForResult
Android ActivityManagerService(AMS)的Activity管理 android Application Component研究之Activity(一)Activity: startActivityForResult Instrumentation: execStartActivity ActivityManagerService: startActivity A
2016-11-23 18:51:39
397
原创 Android runtime permissions
Android 6.0 运行时权限frameworks/base/core/java/android/app/Activity.java requestPermissions() invokes onRequestPermissionsResult() immediately if permissions already asking for, or invokes buildRequestPer
2016-11-21 16:28:31
379
转载 处理文件与EOF
$ while read line; do> process $line> done < /path/to/file参考:bash的read命令如何读取换行符^D is EOF
2016-10-09 10:45:48
421
原创 c罕见语法
##在宏定义中,取参数字符串,如以X(Z)调用#define X(Y) ##Y时扩展为Z&&取得对应标签,如&&a表示标签a(用a:定义)处
2016-03-11 15:56:46
444
原创 disk usage; split
按k/M/G单位显示各分区大小:df -h显示文件大小:du包括文件,而非仅是目录:-a或–allproduce a grand total: -cprint sizes in human readable format: -h, –human-readabledo not include size of subdirectories: -S, –separate-dirsdisplay
2016-03-04 15:50:23
415
原创 Ubuntu 创建、管理用户、组和git库、项目
修改主机名sudo -e /etc/hostname sudo -e /etc/hosts 将127.0.1.1对应的原主机名改为新的创建组sudo groupadd 组名修改组sudo groupmod -n 新组名 原组名删除组sudo groupdel 组名创建用户sudo useradd -m会自动生成主目录 -k 内容将被拷贝到生成的主目录的样本目录 -d 主目录 -g 用户组 –gro
2016-02-22 16:22:36
4642
转载 无法让FireFox允许SSLv3
in about:config, set security.tls.version.min from 1 to 0
2015-07-02 12:31:10
7008
原创 Asterisk SIP账号设置
/etc/asterisk/users.confhttp://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/index.html [6000] host=dynamic secret=1234 [6001] host=dynamic secret=1234/etc/asterisk/extensions.conf
2015-06-30 16:31:19
2449
原创 bzr concise
user reference取服务器版本:branch 更新:update。支持参数:-r 提交序号。将目标提交合入并切换到该提交序号。 提交:add + commit + push 合入/更新分支:pull。Turn this branch into a mirror of another branch。支持路径位置作为参数。将路径作为默认位置:–remember。指定提交序号:-r 序号。
2015-03-26 16:14:59
884
原创 linux命令行收发邮件
安装mailx的一个变种,以下,或bsd-mailx(没有这个好配置)apt-get install heirloom-mailx发送:在~/.mailrc中写:set smtp-use-starttlsset ssl-verify=ignoresetsmtp=smtp://10.10.1.80:25set smtp-auth=loginset smtp-auth-
2015-02-15 17:20:27
795
1
原创 git
WIP=work in progress 使用说明原文文件状态: untracked, unmodified(git commited), modified, staged/cached(git added)HEAD: the head of the current branch. Last commit snapshot, next parent。“提交~”表示其父提交,后面可再加数字...
2015-01-23 17:53:57
729
1
原创 Ubuntu下编译vim/gvim
ruby-dev libgtk2.0-dev ./configure --enable-rubyinterp=yes --enable-cscope --with-compiledby=Allen --with-x --enable-xim --enable-multibyte
2014-12-30 15:55:15
1431
原创 adb使用与权限
adb "no permission"Ubuntu adb devices : no permissions 解决方法lsusb to get sth. like Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub sudo -e /etc/udev/rules.d/70-android.rules add a...
2014-12-26 14:35:28
1703
1
转载 adb usages
adb wait-for-device adb shell setprop log.tag.SetupWizard VERBOSE adb shell screenrecord /sdcard/vid.mp4 to list packages: adb shell pm list packages to broadcastadb logcat PackageManager:* *:...
2014-02-11 16:07:18
1310
转载 java String.replaceAll()
java中String.replaceAll()的使用参数1:需要替换的内容,正则表达式参数2:替换为\需要转义
2014-02-11 15:45:06
726
原创 crontab
/etc/crontabmhdommondowusercommandminhourday of monthmonthday of weekusercommandsudo service cron restart
2014-02-11 15:34:06
949
转载 C/C++宏定义中带不定参数
转载自#define debug(format, ...) fprintf (stderr, format,__VA_ARGS__)能自定义参数表名#define debug(format, args...) fprintf (stderr, format,args)如果只有一个参数也行,##前面的逗号会被删除#define debug(format, ...)
2014-01-14 17:33:23
9378
易通信 EZ Comm 3.2
2010-10-12
易配对 EZ Match
2008-09-11
易命令 EZ Command
2008-09-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人