- Selected "Generation 2" VM during installation wizard
- So as to choose UEFI as default boot mode.
- Turned off SecureBoot
- By following these instructions in an admnin-escalated powershell terminal.
- Added
video=hyperv_fb:1920x1200
toGRUB_CMDLINE_LINUX_DEFAULT
to use the full available resolution of the laptop monitor (in fullscreen). - Replaced english keyboard with norwegian inside of the VM 'try ubuntu live' session.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
liste_tall = [1, 2, 3, 4, 5, 6] | |
def summere_imperativt(liste): | |
sum = 0 | |
for tall in liste: | |
sum += sum | |
return sum | |
def summere_deklarativt(liste): | |
sum = reduce(x + y, liste) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
USER_NAME_TO_RUN_STEAM="x10an14" | |
IP_SUBNET="10.10.10" | |
LOCAL_DNS="<X.Y.Z.W>" | |
echo 'Setting up steam network namespace...' | |
sudo ip netns add steam_ns | |
sudo ip netns exec steam_ns ip addr add 127.0.0.1/8 dev lo | |
sudo ip netns exec steam_ns ip link set lo up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.6 | |
from contextlib import suppress | |
from pathlib import Path, PosixPath | |
from subprocess import run, PIPE | |
from sys import exit, argv | |
from sys import stderr, executable | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2018.03.16T22:02:22CET] x10an14@x10-P65xRP ~/overtime-calculator (minor_changes *% u= origin/minor_changes) $ pipenv run python -m coverage run -m py.test -v | |
==================================================================================================================== test session starts ===================================================================================================================== | |
platform linux -- Python 3.6.3, pytest-3.4.2, py-1.5.2, pluggy-0.6.0 -- /home/x10an14/.local/share/virtualenvs/overtime-calculator-Z0nwGDbO/bin/python | |
cachedir: .pytest_cache | |
rootdir: /home/x10an14/Documents/github/overtime-calculator, inifile: setup.cfg | |
plugins: hypothesis-3.49.1 | |
collected 7 items | |
overtime_calculator/tests/auth_test.py::test_register FAILED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker compose file syntax: | |
version: '2' | |
services: | |
drone-server: | |
image: drone/drone:0.8 | |
ports: | |
- 5124:8000 | |
- 5125:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x10an14@x10Desktop2016:~/Documents/git_projs/toml$ sudo apt-get install golang | |
[sudo] password for x10an14: | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-image-4.4.0-72-generic | |
linux-image-extra-4.4.0-72-generic linux-signed-image-4.4.0-72-generic | |
Use 'sudo apt autoremove' to remove them. | |
The following additional packages will be installed: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x10an14@x10Desktop2016:~/Documents/git_projs/overtime_calculator$ venv/bin/python webapp.py | |
2016-12-04 22:44:47,201: DEBUG: | |
▄▄▄▄▄ | |
▀▀▀██████▄▄▄ _______________ | |
▄▄▄▄▄ █████████▄ / \ | |
▀▀▀▀█████▌ ▀▐▄ ▀▐█ | Gotta go fast! | | |
▀▀█████▄▄ ▀██████▄██ | _________________/ | |
▀▄▄▄▄▄ ▀▀█▄▀█════█▀ |/ | |
▀▀▀▄ ▀▀███ ▀ ▄▄ | |
▄███▀▀██▄████████▄ ▄▀▀▀▀▀▀█▌ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x10an14@x10Desktop2016:~/Documents/git_projs/coconut$ docker run -it --entrypoint sh coconut_ipython:3.4-alpine | |
/usr/coconut # make test | |
pytest --strict -s tests | |
============================================================================================ test session starts ============================================================================================= | |
platform linux -- Python 3.4.5, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 | |
rootdir: /usr/coconut, inifile: | |
collected 20 items | |
tests/main_test.py | |
> coconut -s -c msg = '<success>'; pmsg = print$(msg); `pmsg` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -it --entrypoint bash test | |
bash-4.3# coconut tests/src/extras.coco tests/dest --run | |
Coconut: Compiling tests/src/extras.coco ... | |
Coconut: Compiled to tests/dest/extras.py . | |
CoconutWarning: missing new line at end of file (line 1) | |
abc | |
^ | |
CoconutWarning: missing new line at end of file (line 1) | |
abc | |
^ |
NewerOlder