...

parent c00f539f
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="ctrl:nocaps"
BACKSPACE="guess"
\ No newline at end of file
library(shinyscreen)
options(browser="chromium")
run_in_dir <- function(user,proj) {
projdir <- file.path("/mnt/scratch",user,proj)
dir.create(projdir,recursive = T)
setwd(projdir)
shinyscreen::launch()
}
shinyscreen_project <- function(proj) {
user <- Sys.getenv("USER")
run_in_dir(user=user,proj=proj)
}
#!/bin/bash
INDIR=MS2
OUTDIR=MS2_forMF
[ ! -d "$INDIR" ] && echo "Error, MS2 not found." && exit 1
mkdir "$OUTDIR"
cd "$INDIR"
for fn in *.csv; do
sed 's/,/ /' "$fn"|awk 'NR>1 {print $0}' > ../"$OUTDIR"/$fn
echo "Converted $fn to ../$OUTDIR/$fn ."
done
cd ..
echo "All good! Bye." >2
exit 0
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
Name=Emacs Name=Emacs
Comment=Editor Comment=Editor
Icon=emacs Icon=emacs
Exec=emacs %F Exec=emacs --eval '(setq inhibit-startup-buffer t)' --eval '(setq initial-buffer-choice nil)' --eval '(R)' --eval '(kill-buffer "*scratch*")' scratch.R
Type=Application Type=Application
Terminal=false Terminal=false
[planb] [planb]
#alien-one ansible_host=188.166.115.156 alien-one ansible_host=188.166.115.156
alien-two ansible_host=188.166.48.209 #alien-two ansible_host=188.166.48.209
[planb:vars] [planb:vars]
ansible_python_interpreter=/usr/bin/python3 ansible_python_interpreter=/usr/bin/python3
......
- hosts: planb - hosts: planb
become: True become: True
vars_files: vars_files:
- vars/newusers.yml - vars/users.yml
- vars/passwords.yml - vars/passwords.yml
pre_tasks: pre_tasks:
- name: Update repositories - name: Update repositories
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
tags: visual tags: visual
- include: tasks/guix.yml - include: tasks/guix.yml
tags: guix tags: guix
- include: tasks/keyboard.yml
tags: keyboard
- include: tasks/emacs.yml - include: tasks/emacs.yml
tags: emacs tags: emacs
- include: tasks/r-setup.yml - include: tasks/r-setup.yml
......
- name: Modify /etc/default/keyboard.
copy:
src: files/etc/default/keyboard
dest: /etc/default/keyboard
mode: 0644
...@@ -47,7 +47,13 @@ ...@@ -47,7 +47,13 @@
mode: 0744 mode: 0744
loop: "{{ users }}" loop: "{{ users }}"
- name: Copy .Rprofile
copy:
src: files/home/user/.Rprofile
dest: /home/{{ item.login }}/.Rprofile
owner: "{{ item.login }}"
mode: 0640
loop: "{{ users }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment