└── README.md /README.md: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | git-server: 5 | image: rockstorm/git-server 6 | container_name: git-server 7 | restart: unless-stopped 8 | 9 | environment: 10 | # Password for the git user 11 | GIT_PASSWORD: 'LoLoLo123LoLoLo123' 12 | 13 | # Path where the file with the password for the git user will be 14 | # mounted in the container in order to replace the default one 15 | # GIT_PASSWORD_FILE: /run/secrets/git_password 16 | 17 | # Setting this variable creates a link in the git user directory 18 | # to access repositories without absolute paths 19 | # REPOSITORIES_HOME_LINK: /srv/git 20 | 21 | # Path where the SSH host keys will be mounted in the container 22 | # in order to replace the default keys 23 | # SSH_HOST_KEYS_PATH: /tmp/host-keys 24 | 25 | # Set specific UID and GID for the git user 26 | # GIT_USER_UID: 1001 27 | # GIT_USER_GID: 1001 28 | 29 | volumes: 30 | # Folder with git repositories 31 | - git-repositories:/srv/git 32 | 33 | # File containing the SSH keys of clients that will be allowed 34 | # to use this service through a public key 35 | - ./.ssh/authorized_keys:/home/git/.ssh/authorized_keys 36 | 37 | # Configuration file for the OpenSSH daemon to use instead of 38 | # the one that is generated by default 39 | - ./sshd_config:/etc/ssh/sshd_config:ro 40 | 41 | # Disable interactive SSH login for the git user 42 | # - /executable/file:/home/git/git-shell-commands/no-interactive-login 43 | 44 | ports: 45 | - '2222:22' 46 | 47 | cgit: 48 | image: 'ankitrgadiya/cgit:debian-nginx' 49 | container_name: cgit 50 | volumes: 51 | - git-repositories:/git 52 | ports: 53 | - '80:80' 54 | 55 | volumes: 56 | git-repositories: 57 | 58 | arr = [7,4,9,2,6,3] 59 | insertionsort(arr) 60 | print('Sorted %s' %arr) # sorted [2, 3, 4, 6, 7, 9] 61 | arr = [7,4,9,2,6,3] 62 | 63 | 64 | function switchTheme() { 65 | wrapper.classList.toggle('dark-theme') 66 | wrapper.classList.toggle('light-theme') 67 | 68 | if (wrapper.classList.contains('dark-theme')) { 69 | localStorage.setItem('theme', 'dark') 70 | } else { 71 | localStorage.setItem('theme', 'light') 72 | } 73 | } 74 | 75 | if (localStorage.getItem('theme') == 'dark') { 76 | themeSwitcher.setAttribute('checked', '') 77 | switchTheme() 78 | } else { 79 | themeSwitcher.removeAttribute('checked') 80 | } 81 | 82 | themeSwitcher.addEventListener('click', switchTheme) 83 | deep_flatten([1, [2], [[3], 4], 5]) # [1,2,3,4,5] 84 | 85 | --------------------------------------------------------------------------------