diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..c641753f43ba228458d59d963fdb678519e57835 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: kroniak/ssh-client + +stages: + - deploy + +home: + stage: deploy + before_script: + - eval $(ssh-agent -s) + - echo "$SSH" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh/socket + - chmod 700 ~/.ssh + - cp .magic_ssh_config ~/.ssh/config + script: + # AFS magic incoming + - ssh rlacko@centaur.sch.bme.hu cp /afs/sch.bme.hu/home/rlacko/.system/rlacko.keytab /tmp/rlacko.keytab + - ssh rlacko@centaur.sch.bme.hu kinit -k -t /tmp/rlacko.keytab rlacko + - ssh rlacko@centaur.sch.bme.hu rm /tmp/rlacko.keytab + - ssh rlacko@centaur.sch.bme.hu aklog sch.bme.hu -k SCH.BME.HU + - ssh rlacko@centaur.sch.bme.hu mkdir -p /home/rlacko/public_html/python3 + # actual work + - scp -r $PWD/* rlacko@centaur.sch.bme.hu:/home/rlacko/public_html/python3/ + only: + refs: + - master diff --git a/.magic_ssh_config b/.magic_ssh_config new file mode 100644 index 0000000000000000000000000000000000000000..5d4ec61076a673108202bb98ff1f7d210719bed7 --- /dev/null +++ b/.magic_ssh_config @@ -0,0 +1,5 @@ +Host centaur.sch.bme.hu + StrictHostKeyChecking no + ControlMaster auto + ControlPersist yes + ControlPath ~/.ssh/socket/%r@%h:%p diff --git a/index.html b/index.html index cebcea9917f22333f061cb2dafdb20acca731055..6b8cbb2b047c89da2f3765d858d92406e1eb3e98 100644 --- a/index.html +++ b/index.html @@ -1,97 +1,97 @@ <!DOCTYPE html> <html> - <head> - <meta charset="utf-8" /> - <meta - name="viewport" - content="width=device-width, initial-scale=1, shrink-to-fit=no" - /> - <title>My Docs</title> - <link rel="icon" type="image/x-icon" href="favicon.ico" /> - <link rel="stylesheet" href="https://unpkg.com/docute@4/dist/docute.css" /> - <link rel="stylesheet" href="style.css" /> - </head> - <body> - <div id="docute"></div> - <script src="https://unpkg.com/docute@4/dist/docute.js"></script> - <script> - new Docute({ - target: '#docute', - title: 'Python3', - layout: 'wide', - darkThemeToggler: true, - detectSystemDarkTheme: true, - highlight: ['python', 'cpp'], - nav: [ - { - title: 'Főoldal', - link: '/', - }, - { - title: 'GitSCH', - link: 'https://git.sch.bme.hu/rlacko/python-presentation', - }, - ], - sidebar: [ - { - title: '', // Hack - children: [ - { - title: 'Bevezető', - link: '/guide/01_introduction', - }, - { - title: 'Az Interpreter és a nyelv felépítése', - link: '/guide/02_interpreter', - }, - { - title: 'Típusok', - link: '/guide/03_types', - }, - { - title: 'Nyelvi dolgok és Vezérlési folyam', - link: '/guide/04_language_and_control', - }, - { - title: 'Adatstruktúrák', - link: '/guide/05_data_structures', - }, - { - title: 'Modulok', - link: '/guide/06_modules', - }, - { - title: 'Scope és Osztály', - link: '/guide/07_scope_class', - }, - { - title: 'Hibák és azok kezelése', - link: '/guide/08_error', - }, - { - title: 'Virtuális környezet', - link: '/guide/09_virtual_env', - }, - ], - }, - ], - }); - </script> - <!-- Global site tag (gtag.js) - Google Analytics --> - <script - async - src="https://www.googletagmanager.com/gtag/js?id=G-6V34J8HFXB" - ></script> - <script> - window.dataLayer = window.dataLayer || []; - function gtag() { - dataLayer.push(arguments); - } - gtag('js', new Date()); - gtag('config', 'G-6V34J8HFXB'); +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> + <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Expires" content="0" /> + <title>My Docs</title> + <link rel="icon" type="image/x-icon" href="favicon.ico" /> + <link rel="stylesheet" href="https://unpkg.com/docute@4/dist/docute.css" /> + <link rel="stylesheet" href="style.css" /> +</head> - console.log('the Cake is a lie 🎂'); - </script> - </body> -</html> +<body> + <div id="docute"></div> + <script src="https://unpkg.com/docute@4/dist/docute.js"></script> + <script> + new Docute({ + target: '#docute', + title: 'Python3', + layout: 'wide', + darkThemeToggler: true, + detectSystemDarkTheme: true, + highlight: ['python', 'cpp'], + nav: [ + { + title: 'Főoldal', + link: '/', + }, + { + title: 'GitSCH', + link: 'https://git.sch.bme.hu/rlacko/python-presentation', + }, + ], + sidebar: [ + { + title: '', // Hack + children: [ + { + title: 'Bevezető', + link: '/guide/01_introduction', + }, + { + title: 'Az Interpreter és a nyelv felépítése', + link: '/guide/02_interpreter', + }, + { + title: 'Típusok', + link: '/guide/03_types', + }, + { + title: 'Nyelvi dolgok és Vezérlési folyam', + link: '/guide/04_language_and_control', + }, + { + title: 'Adatstruktúrák', + link: '/guide/05_data_structures', + }, + { + title: 'Modulok', + link: '/guide/06_modules', + }, + { + title: 'Scope és Osztály', + link: '/guide/07_scope_class', + }, + { + title: 'Hibák és azok kezelése', + link: '/guide/08_error', + }, + { + title: 'Virtuális környezet', + link: '/guide/09_virtual_env', + }, + ], + }, + ], + }); + </script> + <!-- Global site tag (gtag.js) - Google Analytics --> + <script async src="https://www.googletagmanager.com/gtag/js?id=G-6V34J8HFXB"></script> + <script> + window.dataLayer = window.dataLayer || []; + function gtag() { + dataLayer.push(arguments); + } + gtag('js', new Date()); + + gtag('config', 'G-6V34J8HFXB'); + + console.log('the Cake is a lie 🎂'); + </script> +</body> + +</html> \ No newline at end of file