Verified Commit b11d9e3a authored by Todor Kondic's avatar Todor Kondic
Browse files

...

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 @@
Name=Emacs
Comment=Editor
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
Terminal=false
[planb]
#alien-one ansible_host=188.166.115.156
alien-two ansible_host=188.166.48.209
alien-one ansible_host=188.166.115.156
#alien-two ansible_host=188.166.48.209
[planb:vars]
ansible_python_interpreter=/usr/bin/python3
......
- hosts: planb
become: True
vars_files:
- vars/newusers.yml
- vars/users.yml
- vars/passwords.yml
pre_tasks:
- name: Update repositories
......@@ -36,7 +36,8 @@
tags: visual
- include: tasks/guix.yml
tags: guix
- include: tasks/keyboard.yml
tags: keyboard
- include: tasks/emacs.yml
tags: emacs
- 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 @@
mode: 0744
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