I am selling my MacBook Pro, because I've got another one from my employer.
- Model: MacBook Pro 13-inch late 2013
- Processor: 2,6 GHz Intel Core i5
- Memory: 8GB
- Graphics: Intel Iris 1536 MB
I am selling my MacBook Pro, because I've got another one from my employer.
function beech() { | |
len=`echo "$1" | wc -m` | |
if [ "$len" -gt "140" ] | |
then | |
echo "Tweet length is $len, exceeds max. 140 characters" | |
return | |
fi | |
echo -n 'Sending Tweet... ' | |
# TODO correct parameter for extended regexes => BSD: `sed -E`; GNU: `sed -r` | |
/usr/bin/curl -Ss -u $TWITTER_BEECH_USER:$TWITTER_BEECH_PASS -d status="$1" http://twitter.com/statuses/update.xml | grep 'error' | sed 's/<[^>]+>//g' |
» brew install klavaro | |
==> Downloading http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz | |
######################################################################## 100.0% | |
==> Patching | |
######################################################################## 100.0% | |
patching file gettext-runtime/gnulib-lib/setenv.c | |
patching file gettext-tools/gnulib-lib/execute.c | |
patching file gettext-tools/gnulib-lib/pipe.c | |
patching file gettext-tools/gnulib-lib/setenv.c | |
patching file gettext-tools/gnulib-lib/unsetenv.c |
==> Build Environment | |
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin | |
CFLAGS: -O4 -march=core2 -mmmx -msse4.1 -w -pipe | |
MAKEFLAGS: -j2 | |
CC: /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 | |
CXX: /Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2 | |
==> Downloading http://downloads.sourceforge.net/project/klavaro/klavaro-1.4.0.tar.bz2 | |
File already downloaded and cached to /Users/toine/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/toine/Library/Caches/Homebrew/klavaro-1.4.0.tar.bz2 | |
==> ./configure --prefix=/usr/local/Cellar/klavaro/1.4.0 --disable-debug --disable-dependency-tracking |
diff --git a/src/Makefile.in b/src/Makefile.in | |
index 3489d6f..6e982a8 100644 | |
--- a/src/Makefile.in | |
+++ b/src/Makefile.in | |
@@ -60,7 +60,7 @@ am__mv = mv -f | |
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
CCLD = $(CC) | |
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
+LINK = $(CCLD) $(subst -export-dynamic,--export-dynamic, $(AM_CFLAGS)) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
# | |
# A little function to add html markup around emacs commands found in text. | |
# | |
def markup_emacs(text) | |
# defuns are put between () # TODO nested defuns | |
text.gsub!(/(\([^\)]+\))/, '<code>\1</code>') | |
# keyboard strokes | |
# -> M-x some-defun | |
# -> and other combo's | |
key = '(?:<[^&]+>|\w\b|[^\s\w])' |
#!/bin/sh | |
err="not enough RAM to write swap back, nothing done" | |
mem=`free|grep Mem:|awk '{print $4}'` | |
swap=`free|grep Swap:|awk '{print $3}'` | |
test $mem -lt $swap && echo -e $err && exit 1 | |
swapoff -a && swapon -a && | |
exit 0 |
;; negativ-faces | |
;; give all faces their negative color. | |
;; | |
;; Works great on the default theme: | |
;; * Just remove all `(load-theme xzy)' from your .emacs.d | |
;; * Restart emacs | |
;; * Run `(negativ-negative-all-faces)' | |
;; * To undo, run `(negativ-negative-all-faces)' again | |
;; | |
;; based on http://www.emacswiki.org/emacs/AngryFruitSalad |
C/C++
void* a = NULL; // not sure about all compiler
C++11
void* a = nullptr;