现整理收集C++世界里那些“牛人”的个人博客。凡三类:一是令人高山仰止的大牛,对C++语言本身产生过深远的影响的人;二是C++运用炉火纯青的高手,有原创性的技术干货;三是中文世界里的C++牛人。
- Bjarne Stroustrup的博客: Bjarne Stroustrup’s Homepage
| #!/usr/bin/env perl | |
| =head1 NAME generate_fixterms-mappings - create an xml output file suitable for | |
| loading into iTerm as a preset list conforming to the fixterms specification. | |
| =cut | |
| use strict; | |
| use warnings; |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| #!/bin/sh | |
| M2_REPO=${HOME}/.m2 | |
| OLDFILES=/tmp/deleted_artifacts.txt | |
| AGE=181 # more or less 6 months and it's a palindromic prime number, so it's cool | |
| echo "==== To be Deleted Jars ====" >> ${OLDFILES} | |
| find "${M2_REPO}" -name '*-SNAPSHOT*jar' -atime +${AGE} -exec dirname {} \; >> ${OLDFILES} | |
| echo "==== To be Deleted Wars/Ears ====" >> ${OLDFILES} |
| GDB commands by function - simple guide | |
| --------------------------------------- | |
| More important commands have a (*) by them. | |
| Startup | |
| % gdb -help print startup help, show switches | |
| *% gdb object normal debug | |
| *% gdb object core core debug (must specify core file) | |
| %% gdb object pid attach to running process | |
| % gdb use file command to load object |
现整理收集C++世界里那些“牛人”的个人博客。凡三类:一是令人高山仰止的大牛,对C++语言本身产生过深远的影响的人;二是C++运用炉火纯青的高手,有原创性的技术干货;三是中文世界里的C++牛人。
原文:Linux中国
你是否曾经对操作系统为何能够执行应用程序而感到疑惑?那么本文将为你揭开操作系统引导与启动的面纱。
-- David Both
本文导航
| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
| # Remove previous installations | |
| sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
| # Install dependencies | |
| sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev | |
| # Fix liblua paths | |
| sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
| sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so |
| # Remove previous installations | |
| sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
| # Install dependencies | |
| sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev | |
| # Fix liblua paths | |
| sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
| sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so |
This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):