From f15ea21e1c88444cafb612685e8f7841bef28adc Mon Sep 17 00:00:00 2001 From: aborn Date: Sun, 26 Jan 2014 09:45:36 +0800 Subject: [PATCH] add kit --- README.md | 3 ++- elisp/file-ops.el | 26 ++++++++++++++++++++++++++ kit/README.md | 14 ++++++++++++++ kit/sw-install.sh | 20 ++++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 elisp/file-ops.el create mode 100644 kit/README.md create mode 100755 kit/sw-install.sh diff --git a/README.md b/README.md index 420842a..d67be2d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Aborn Jiang (aborn.jiang@gmail.com) ## VERSION * 2014-01-21 v0.1 (add rsync configure files) * 2014-01-22 v0.2 (add .rc and elisp files) -* 2014-01-24 v0.3 (add nginx configure fiels) +* 2014-01-24 v0.3 (add nginx configure files) +* 2014-01-26 v0.4 (add kit subrepo files) diff --git a/elisp/file-ops.el b/elisp/file-ops.el new file mode 100644 index 0000000..1ed718c --- /dev/null +++ b/elisp/file-ops.el @@ -0,0 +1,26 @@ +#!/usr/bin/emacs --script +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; NAME +;; file-ops.el an example to visit file +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(message "this is a file test prog") +(setq filename "./test.conf") + +(message "The attribute of file %s is %s" filename (file-attributes filename)) + +(load "~/code/configure/elisp/file-utils.el") +;;(message "gooo:%s" (buffer-string (find-file filename))) +(setq file-content (obtain-file-content filename)) + +(setq lists '("a" "b" "c")) +(if (listp file-content) +(message "listooooooooooooooo") +(message "not a list tttttttt")) +(print-elements-of-list lists) +(print "end of this print") +(send-string-to-terminal "fffffffffffffff") + +;;(print-elements-of-list (cdr file-content)) +;;(message "file contents:\n%s" file-content) +;;(message "size=%d" (length file-content)) diff --git a/kit/README.md b/kit/README.md new file mode 100644 index 0000000..b0c9857 --- /dev/null +++ b/kit/README.md @@ -0,0 +1,14 @@ +README.md kit +========== + +## INTRODUCTION +This kit subrepo contains lots of scripts for install softwares and +configure a new machine when you install linux OS in a new machine. + +## FILES + +## AUTHOR +Aborn Jiang (aborn.jiang@gmail.com) + +## VERSION +2014-01-26 diff --git a/kit/sw-install.sh b/kit/sw-install.sh new file mode 100755 index 0000000..61faf25 --- /dev/null +++ b/kit/sw-install.sh @@ -0,0 +1,20 @@ +#!/bin/bash +#################################################################### +## NAME +## sw-install.sh +## install softwares in a new machine +## NOTE +## you should configure /etc/apt/source.list first +#################################################################### + +sudo apt-get install -y \ +git vim emacs fcitx scrot cmake g++ gcc chromium-browser \ +zsh lftp gnome gnome-shell evince w3m kmplayer xclip \ +python + +# sudo apt-get install -y texlive-full +# sudo apt-get install -y clisp +# sudo apt-get install -y lispbox + + +