Merge remote-tracking branch 'origin/master'

This commit is contained in:
Nico Schottelius 2020-05-11 12:22:19 +02:00
commit be8fb114f6
432 changed files with 3091 additions and 89 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/youngjin.han/dot-cdist/type/__my_computer/manifest~
/youngjin.han/cdist.org~

View File

@ -5,7 +5,7 @@ into the ungleich clearning circle.
## Repositories
* [Balazs](https://code.ungleich.ch/llnu/emacs-learning-group): git@code.ungleich.ch:llnu/emacs-learning-group.git
* [Balazs](https://code.ungleich.ch/llnu/ungleich-learning-circle-balazs): git@code.ungleich.ch:llnu/ungleich-learning-circle-balazs.git
* [Jin-Guk](https://code.ungleich.ch/kjg/ungleich-learning-circle): git@code.ungleich.ch:kjg/ungleich-learning-circle.git
* [Sami](https://code.ungleich.ch/samialazar/learning-cicle): git@code.ungleich.ch:samialazar/learning-cicle.git
* [Youngjin](https://code.ungleich.ch/youngjin.han/ungleich-learning-circle): git@code.ungleich.ch:youngjin.han/ungleich-learning-circle.git

View File

@ -0,0 +1,6 @@
_____ __ _____________ ______ ______
___ | / /___ ____ /__ /( )_______ ___________ ____ /________________ /_______ ___ _____________
__ |/ /_ / / /_ /__ /_|/__ ___/ _ ___/_ / / /_ __ \ _ \_ ___/_ __ \ __ `/_ | / / _ \_ __ \
_ /| / / /_/ /_ / _ / _(__ ) / /__ _ /_/ /_ /_/ / __/ / _ / / / /_/ /__ |/ // __/ / / /
/_/ |_/ \__,_/ /_/ /_/ /____/ \___/ _\__, / /_.___/\___//_/ /_/ /_/\__,_/ _____/ \___//_/ /_/
/____/

View File

@ -0,0 +1,21 @@
case "$__target_host" in
localhost)
# Indicate that the target host is configured with cdist
__file /etc/cdist-configured
# Copy a cool motd from the type's file directory
__motd --source "$__files/motd"
# __package emacs --state present
__timezone Europe/Zurich
__my_computer
# __my_nginx
__my_nginx_site woo.com
__my_nginx_site chee.se
;;
esac

View File

@ -0,0 +1,9 @@
WIP
This type creates a file with contents:
path: $__object_id
--colour: string
Test it with:
echo "__colorful_file /tmp/foo --colour red --colour blue" | cdist config -i - -c . -vv localhost

View File

@ -0,0 +1,13 @@
if [ -f "$__object/parameter/colour" ];
then
while read -r 1
do
__file "$__object_id" --source "$1" < /dev/null
echo "$1" >&2
done < "$__object/parameter/colour"
#fi
#<< EOF
#colour="$(cat "$__object/parameter/colour")"
#EOF
else echo "Colour parameter is not supplied" ; exit 1
fi

View File

@ -0,0 +1 @@
colour

View File

@ -0,0 +1,100 @@
(defun copy-all ()
"Copy entire buffer to clipboard"
(interactive)
(clipboard-kill-ring-save (point-min) (point-max)))
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
;; (setq x-select-enable-clipboard t)
;; Disable toolbar
(if window-system
(tool-bar-mode -1)
)
(require 'org)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
;; Disable the splash screen (to enable it agin, replace the t with 0)
(setq inhibit-splash-screen t)
;; Disabling things
;;-----------------------------------------------------------------------
(menu-bar-mode -1)
;; Setting key shortcut to open org-mode
(global-set-key (kbd "<f3>") (lambda() (interactive)(find-file "/mnt/cephfs/org-mode/todo")))
;; Disable auto indentation. Annoying when copying anything into emacs buffer
(when (fboundp 'electric-indent-mode) (electric-indent-mode -1))
;; Enabled repositories
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
(quote
("ca8e0d49ebb38646fefb0c0756c411db2fd1f75bd0ad6f9b1ac173ca88d74724" default)))
'(package-selected-packages (quote (editorconfig magit))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(setq package-selected-packages
'(magit))
;;(package-refresh-contents)
(package-install-selected-packages)
;; Key shortcut for magit-status
(global-set-key (kbd "C-x g") 'magit-status)
;; Editorconfig plugin
(editorconfig-mode 1)
;; Mail config : mu4e
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
(require 'mu4e)
(setq
mue4e-headers-skip-duplicates t
mu4e-view-show-images t
mu4e-view-show-addresses t
mu4e-compose-format-flowed nil
mu4e-date-format "%y/%m/%d"
mu4e-headers-date-format "%Y/%m/%d"
mu4e-change-filenames-when-moving t
mu4e-attachments-dir "~/Downloads"
mu4e-maildir "~/.mail/llnu" ;; top-level Maildir
;; note that these folders below must start with /
;; the paths are relative to maildir root
mu4e-refile-folder "/Archive"
mu4e-sent-folder "/Sent"
mu4e-drafts-folder "/Drafts"
mu4e-trash-folder "/Trash")
;; this setting allows to re-sync and re-index mail
;; by pressing U
(setq mu4e-get-mail-command "mbsync -a")
;;
(setq shr-color-visible-luminance-min 70)
(advice-add #'shr-colorize-region :around (defun shr-no-colourise-region (&rest ignore)))

View File

@ -0,0 +1,16 @@
#!/bin/sh -e
#This is a type for practice, used to learn cdist and configure a laptop.
for pkg in ndisc6 emacs zsh mosh nmap sipcalc;
do __package $pkg --state present;
done
if [ ! -f "$__type/parameter/graphical" ]; then
__package firefox --state present;
fi
__require="__package/emacs" __dot_file .emacs --user user --source "$__type/files/.emacs"

View File

@ -0,0 +1,8 @@
#!/bin/sh -e
#This is a type for practice, used to learn cdist and configure a laptop.
for pkg in ndisc6 emacs zsh mosh nmap sipcalc;
do __package $pkg --state present;
done

View File

@ -0,0 +1 @@
graphical

View File

@ -0,0 +1,7 @@
__package nginx --state present
#Should I export this variable somehow and use it in an other type?
#nginx_config_dir="/etc/nginx/"

View File

@ -0,0 +1,5 @@
__package nginx --state present
nginx_config_dir="/etc/nginx/"

View File

@ -0,0 +1,17 @@
# This is a default site configuration which will simply return 404, preventing
# chance access to any other virtualhost.
server {
listen 80 default_server;
listen [::]:80 default_server;
# Everything is a 404
# location / {
# return 404;
# }
# You may need this to prevent return 404 recursion.
# location = /404.html {
# internal;
# }
}

View File

@ -0,0 +1,17 @@
# This is a default site configuration which will simply return 404, preventing
# chance access to any other virtualhost.
server {
listen 80 default_server;
listen [::]:80 default_server;
# Everything is a 404
# location / {
# return 404;
# }
# You may need this to prevent return 404 recursion.
# location = /404.html {
# internal;
# }
}

View File

@ -0,0 +1,17 @@
domain="$__object_id"
nginx_config_dir="/etc/nginx/conf.d"
require="__package/nginx" __file $nginx_config_dir/$domain.conf --source - << EOF
server {
server_name $domain;
listen [::]:80 ;
location / {
autoindex on;
root /var/www/html/$domain;
}
}
EOF

View File

@ -0,0 +1 @@
require="__package/nginx" __file $nginx_config_dir/"$__object_id".conf

12
balazs/notes-05-01 Normal file
View File

@ -0,0 +1,12 @@
Cdist:
__package type doesnt mention the case for installing multiple packages, for loop?
TODO: add to wiki
Emacs:
Lines are not wrapped in emacs (org-mode only?) -> temp fix: M-x toggle-truncate-lines
TODO: Modify default conf for org / emacs

99
balazs/orgfiles/cdist.org Normal file
View File

@ -0,0 +1,99 @@
---
* Explain the difference between a singleton and non-singleton type:
A single type can only be used once per host.
(I don't see yet why this is important.)
** Reference
If a type is flagged as a singleton, it may be used only once per host. This is useful for types which can be used only once on a system. Singleton types do not take an object name as argument.
(https://www.cdi.st/manual/latest/cdist-type.html?highlight=singleton)
* Explain the difference between the different verbosity levels
Verbosity levels are used to change the amount of information that is output on stdout about the configuration run.
I can be used for debugging, monitoring and scripting.
** Reference
# verbosity
# Set verbosity level. Valid values are:
# ERROR, WARNING, INFO, VERBOSE, DEBUG, TRACE and OFF.
(https://www.cdi.st/manual/latest/cdist-configuration.html?highlight=verbosity)
* Logs (config run dumps per verbosity level)
** No -v
1lnu:/mnt/cephfs/infra/code.ungleich.ch/ungleich-learning-circle-balazs/balazs/dot-cdist$ cdist config -c . localhost
No output
** -v (INFO)
1lnu:/mnt/cephfs/infra/code.ungleich.ch/ungleich-learning-circle-balazs/balazs/dot-cdist$ cdist config -c . -v localhost
INFO: localhost: Starting configuration run
INFO: localhost: Finished successful run in 7.95 seconds
** -vv (VERBOSE)
1lnu:/mnt/cephfs/infra/code.ungleich.ch/ungleich-learning-circle-balazs/balazs/dot-cdist$ cdist config -c . -vv localhost
VERBOSE: cdist: version 6.5.4-32-g250161e4
INFO: localhost: Starting configuration run
VERBOSE: localhost: Running global explorers
VERBOSE: localhost: Running initial manifest /tmp/tmpec8j3nyk/421aa90e079fa326b6494f812ad13e79/data/conf/manifest/init
VERBOSE: localhost: Preparing object __my_computer/
...
VERBOSE: localhost: Running object __package/zsh
VERBOSE: localhost: Running object __package/sipcalc
VERBOSE: localhost: Running object __package/emacs
VERBOSE: localhost: Running object __package/tzdata
VERBOSE: localhost: Running object __package/nmap
VERBOSE: localhost: Preparing object __link/etc/localtime
VERBOSE: localhost: Running manifest and explorers for __link/etc/localtime
VERBOSE: localhost: Running type explorers for <CdistType __link>
VERBOSE: localhost: Running object __link/etc/localtime
VERBOSE: localhost: Running object __my_computer/
VERBOSE: localhost: Running object __timezone/Europe/Zurich
INFO: localhost: Finished successful run in 7.58 seconds
VERBOSE: config: Total processing time for 1 host(s): 7.591623544692993
Lesson 05-07
** Comment out *__my_nginx* from the initial manifest, keep the *__my_nginx_site*
- Explain the error that you get (in your cdist.org file)
The manifest __my_nginx wasn't run (or marked as completed) which haven't fulfilled the requirements for __my_nginx_site
*** LOG
ERROR: localhost: The requirements of the following objects could not be resolved:
__file/etc/nginx/conf.d/chee.se.conf requires:
__package/nginx
__file/etc/nginx/conf.d/chee.se.conf autorequires:
__file/etc/nginx/conf.d/woo.com.conf requires:
__package/nginx
__file/etc/nginx/conf.d/woo.com.conf autorequires:
__my_nginx_site/woo.com requires:
__my_nginx_site/woo.com autorequires:
__file/etc/nginx/conf.d/woo.com.conf
__my_nginx_site/chee.se requires:
__my_nginx_site/chee.se autorequires:
__file/etc/nginx/conf.d/chee.se.conf
VERBOSE: config: Total processing time for 1 host(s): 8.042433500289917
ERROR: cdist: Failed to configure the following hosts: localhost

View File

@ -0,0 +1,144 @@
*** Organisation #5: Emacs refresher
**** Lecture content
***** Objective: get confident with emacs commands
***** Find out and document how to do the following steps
Resources:
C-h b
A searchable list of commands and shortcuts, very helpful
https://www.gnu.org/software/emacs/manual/html_node/emacs/
https://www.emacswiki.org/emacs/
https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf
****** Search for something forward: C-s
I've been using it, it's great!
****** How to continue searching
C-s multiple times.
****** Search for something backward
C-r
****** Search for regular expressions instead of string (forward, backward)
urxvt scrollback-search is already bound for : C-M-s
there is no easy way to disable it atm
note: maybe i'll try the suckless terminal or xterm
C-M-r is working
note: need to learn regex
****** Go to the beginning of the line
C-a
****** Go to the end of the line
C-e
****** Delete a word in front (to the right of the cursor)
C-del
****** Delete a word in back (to the left of the cursor)
M-backspace
****** List all "occurences" of a word in a file
M-x grep or grep-find - Return
enter string and/or specify a file (default directory is set to the currently edited file) - Return
The result will show up in a new windows. C-x-o to switch windows
******* You can copy above instructions into an emacs buffer
******* And test it by showing all occurences of the word "Search"
****** Search (GREP) for a word in all files in a directory RECURSIVELY
M-x grep(-find) - Return
add "-r" to the executed grep command
****** Save the CURRENT buffer
C-x C-s
****** Save ALL open files
C-x s
****** Split the window/buffer vertically
C-x 2
****** Split the window/buffer horizontally
C-x 3
****** Switch between the different windows
C-x o
****** Close all buffers besides the active one
******* Don't kill it!
C-x 1
****** Close only the active buffer
There is no "Close buffer" per se (spent 10 minutes finding it)
The way is to Close the Window: C-x 0
List the buffers by: C-x C-b (you can switch to the buffers from this buffer (ret))
******* Don't kill it
C-x k
to kill it
****** Kill the active buffer
C-x k
****** Describe/Explain the difference between closing and killing
It's like tmux:
"Closing" just stops the rendering, and it will continue to run in the background.
Killing stops the process and frees up the memory.
****** Switch between buffers that are not shown
C-x b (tab to list buffers)
******* Document two very similar, but slightly different ways
Switch buffers quickly:
C-x <left>
C-x <right>
ido mode should speed up buffer switching (haven't tried)
***** Outcome
****** Document all above commands in your learning org sheet
****** Share your documentation at the end of the session (not before)

14
balazs/todo Normal file
View File

@ -0,0 +1,14 @@
Lesson 2 -*- mode: org -*-
* Organisation #2: Creating, managing and sharing with "magit"
* Install "magit" for emacs
* Bind C-x g to open magit-status in ~/.emacs
* Create a new directory ~/ungleich-learning-circle/ (with emacs)
* Use C-h b in dired mode to find out how to
* Create a sub directory ~/ungleich-learning-circle/YOURNAME/ (with emacs)
* Move your previously created learning.org file into ~/ungleich-learning-circle/YOURNAME/ (with emacs)
* Initialise it with git (with magit)
* Create the repo "ungleich-learning-circle" on code.ungleich.ch under your username
* Add your remote on code.ungleich.ch to your local git repo with magit
* Push your repo
* Add a new remote of a another participant

1003
kjg/cdist.org Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,6 @@
case "$__target_host" in
# Everybody has this
localhost)
__file /etc/cdist-configured
__timezone Asia/Seoul
__package emacs --state present
__my_computer
;;
esac

View File

@ -0,0 +1,251 @@
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(package-initialize)
(global-set-key (kbd "<f3>") (lambda () (interactive) (find-file (concat "~/ungleich-learning-circle/kjg/learning-"(system-name)"-"(format-time-string "%Y")".org"))))
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "<f8>") 'org-todo-list)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(epg-gpg-program "/usr/local/bin/gpg")
'(org-agenda-files
(quote
("~/ungleich-learning-circle/kjg/todo.org" "~/learning.org")))
;;'(org-directory (expand-file-name "~/ungleich-learning-circle/kjg/"))
'(package-selected-packages (quote (org org-gnome org-dp ## which-key magit)))
'(send-mail-function (quote sendmail-send-it)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(require 'epa-file)
(epa-file-enable)
(setq mu4e-mu-binary "/usr/local/bin/mu")
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu/mu4e")
(require 'mu4e)
(setq
mue4e-headers-skip-duplicates t
mu4e-view-show-images t
mu4e-view-show-addresses t
mu4e-compose-format-flowed nil
mu4e-date-format "%y/%m/%d"
mu4e-headers-date-format "%Y/%m/%d"
mu4e-change-filenames-when-moving t
mu4e-attachments-dir "~/Downloads"
mu4e-maildir "~/Maildir/ungleich" ;; top-level Maildir
;; note that these folders below must start with /
;; the paths are relative to maildir root
mu4e-refile-folder "/Archive"
mu4e-sent-folder "/Sent"
mu4e-drafts-folder "/Drafts"
mu4e-trash-folder "/Trash"
mu4e-reply-to-address "jinguk.kwon@ungleich.ch"
user-mail-address "jinguk.kwon@ungleich.ch"
user-full-name "kjg")
;; this setting allows to re-sync and re-index mail
;; by pressing U
(setq mu4e-get-mail-command "mbsync -a")
(setq mail-host-address "mail.ungleich.ch")
(setq send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
user-mail-address "jinguk.kwon@ungleich.ch"
smtpmail-starttls-credentials '(("smtp.ungleich.ch" 587 nil nil))
smtpmail-auth-credentials "~/.authinfo.gpg"
smtpmail-default-smtp-server "smtp.ungleich.ch"
smtpmail-smtp-server "smtp.ungleich.ch"
smtpmail-smtp-service 587
smtpmail-smtp-user "jinguk.kwon@ungleich.ch"
smtpmail-debug-info t
smtpmail-debug-verb t)
;;starttls-extra-arguments nil
;;starttls-gnutls-program (executable-find "gnutls-cli")
;;smtpmail-warn-about-unknown-extensions t
;;starttls-use-gnutls t)
(require 'smtpmail)
;;store org-mode links to messages
(require 'org-mu4e)
(define-key mu4e-headers-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture)
(define-key mu4e-view-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture)
(setq org-directory (expand-file-name "~/ungleich-learning-circle/kjg/"))
;;store link to message if in header view, not to header query
(setq org-mu4e-link-query-in-headers-mode nil)
(setq org-capture-templates
'(("t" "todo" entry (file+headline (lambda() (concat "~/ungleich-learning-circle/kjg/todo-"(system-name)"-"(format-time-string "%Y")".org")) "Tasks")
"* TODO [#A] %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n%a\n")))
(setq org-log-done 'time)
~
cd ungleich-learning-circle
~/ungleich-learning-circle master*
cd kjg/dot-cdist
~/ungleich-learning-circle/kjg/dot-cdist master*
ls -al
total 0
drwxr-xr-x 4 elf staff 128 May 6 21:26 .
drwxr-xr-x 8 elf staff 256 May 6 22:03 ..
drwxr-xr-x 3 elf staff 96 May 6 21:33 manifest
drwxr-xr-x 3 elf staff 96 May 6 21:26 type
~/ungleich-learning-circle/kjg/dot-cdist master*
cd type
~/ungleich-learning-circle/kjg/dot-cdist/type master*
ls -al
total 0
drwxr-xr-x 3 elf staff 96 May 6 21:26 .
drwxr-xr-x 4 elf staff 128 May 6 21:26 ..
drwxr-xr-x 4 elf staff 128 May 6 22:06 __my_computer
~/ungleich-learning-circle/kjg/dot-cdist/type master*
cd __my_computer
~/ungleich-learning-circle/kjg/dot-cdist/type/__my_computer master*
ls -al
total 8
drwxr-xr-x 4 elf staff 128 May 6 22:06 .
drwxr-xr-x 3 elf staff 96 May 6 21:26 ..
drwxr-xr-x 2 elf staff 64 May 6 22:06 files
-rw-r--r-- 1 elf staff 110 May 6 21:40 manifest
~/ungleich-learning-circle/kjg/dot-cdist/type/__my_computer master*
cat ~/.emacs
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(package-initialize)
(global-set-key (kbd "<f3>") (lambda () (interactive) (find-file (concat "~/ungleich-learning-circle/kjg/learning-"(system-name)"-"(format-time-string "%Y")".org"))))
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "<f8>") 'org-todo-list)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(epg-gpg-program "/usr/local/bin/gpg")
'(org-agenda-files
(quote
("~/ungleich-learning-circle/kjg/todo.org" "~/learning.org")))
;;'(org-directory (expand-file-name "~/ungleich-learning-circle/kjg/"))
'(package-selected-packages (quote (org org-gnome org-dp ## which-key magit)))
'(send-mail-function (quote sendmail-send-it)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(require 'epa-file)
(epa-file-enable)
(setq mu4e-mu-binary "/usr/local/bin/mu")
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu/mu4e")
(require 'mu4e)
(setq
mue4e-headers-skip-duplicates t
mu4e-view-show-images t
mu4e-view-show-addresses t
mu4e-compose-format-flowed nil
mu4e-date-format "%y/%m/%d"
mu4e-headers-date-format "%Y/%m/%d"
mu4e-change-filenames-when-moving t
mu4e-attachments-dir "~/Downloads"
mu4e-maildir "~/Maildir/ungleich" ;; top-level Maildir
;; note that these folders below must start with /
;; the paths are relative to maildir root
mu4e-refile-folder "/Archive"
mu4e-sent-folder "/Sent"
mu4e-drafts-folder "/Drafts"
mu4e-trash-folder "/Trash"
mu4e-reply-to-address "jinguk.kwon@ungleich.ch"
user-mail-address "jinguk.kwon@ungleich.ch"
user-full-name "kjg")
;; this setting allows to re-sync and re-index mail
;; by pressing U
(setq mu4e-get-mail-command "mbsync -a")
(setq mail-host-address "mail.ungleich.ch")
(setq send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
user-mail-address "jinguk.kwon@ungleich.ch"
smtpmail-starttls-credentials '(("smtp.ungleich.ch" 587 nil nil))
smtpmail-auth-credentials "~/.authinfo.gpg"
smtpmail-default-smtp-server "smtp.ungleich.ch"
smtpmail-smtp-server "smtp.ungleich.ch"
smtpmail-smtp-service 587
smtpmail-smtp-user "jinguk.kwon@ungleich.ch"
smtpmail-debug-info t
smtpmail-debug-verb t)
;;starttls-extra-arguments nil
;;starttls-gnutls-program (executable-find "gnutls-cli")
;;smtpmail-warn-about-unknown-extensions t
;;starttls-use-gnutls t)
(require 'smtpmail)
;;store org-mode links to messages
(require 'org-mu4e)
(define-key mu4e-headers-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture)
(define-key mu4e-view-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture)
(setq org-directory (expand-file-name "~/ungleich-learning-circle/kjg/"))
;;store link to message if in header view, not to header query
(setq org-mu4e-link-query-in-headers-mode nil)
(setq org-capture-templates
'(("t" "todo" entry (file+headline (lambda() (concat "~/ungleich-learning-circle/kjg/todo-"(system-name)"-"(format-time-string "%Y")".org")) "Tasks")
"* TODO [#A] %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n%a\n")))
(setq org-log-done 'time)

View File

@ -0,0 +1,9 @@
#!/bin/sh
pkgs="zsh mosh emacs nmap sipcalc"
for pkg in ${pkgs}; do
__package ${pkg} --state present
done
require="__package/emacs" __file ~/.emacs \
--mode 0644 --source "$__type/files/.emacs"

View File

@ -1,22 +0,0 @@
* What is cleaness?
** the state or quality of being clean or being kept clean.
* Todays Lesson is to see if the two places are really clean.
* Here is the state of Schwanden aka Place5.ungleich.
** Dusty tables, floor, servers .. Entire room.
** Fiber caps on the table.
** Pieces and cuts from lable-machine one the floor.
** Five usb-sticks on the floor.
** Two keyboards on the table.
** Nine transivers on the table.
** 1.5m Fiber cable on the on the table.
** one non-used notebooks on the table (Schreiber).
** Two small plastic bags on the floor.
** Cartons and Newspaper on the floor.
** Two fibre cables hanging next to server1.
** Label-machine lying on the production table.
** Paper and plastic bag with screws lying on the floor under the main server rack.
** One white RJ-45 cable is lying on the floor behind the switches.
** The kerlink Gateway dirty.
** The Closet needs to be sorted out again everything there is messy.
** Cable managment is wrong. Too long cable for too short distance, Too many crossed cables ..etc.

View File

@ -1,4 +0,0 @@
# ungleich-learning-circle
This repository contains merged content from people who partcipated
into the ungleich clearning circle.

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

View File

@ -0,0 +1 @@
/home/sami/learning-cicle/sami/my-cdist/cdist/scripts/cdist

Some files were not shown because too many files have changed in this diff Show More