This file contains hidden or 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
| ####################################################################################### | |
| # Bash function get_toml_value() to get the value of a key in a section of a TOML file. | |
| # Versioned here: https://gist.github.com/kwmiebach/e42dc4a43d5a2a0f2c3fdc41620747ab | |
| # Call it like this: | |
| # value=$(get_toml_value "./conf/config.toml" "server_b" "domain") | |
| # Result should be "my123.example.com" in the case of this example file: | |
| # --------------------------- | |
| # [server_a] | |
| # proto = "https" | |
| # domain = "test.example.net" |
This file contains hidden or 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
| ''' | |
| Versioned here: | |
| https://gist.github.com/kwmiebach/362a41b0fbf0cad6db36a1e037bcfbe6 | |
| ''' | |
| def add_seq(tab,name='seq',position=0): | |
| # NO, PETL IS CURRENTLY BROKEN - depending on python version | |
| # tab = ETL.addrownumbers(tab, 'seq') | |
| import petl as ETL |
This file contains hidden or 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
| _ _ __ __ | |
| | | | | _ \ \ / / | |
| | |_| | ___ | | (_) \ \/ / | |
| | _ | / _ \ | | _ ) ( | |
| | | | | | __/ | | | | / /\ \ | |
| |_| |_| \___| |_| |_| /_/ \_\ | |
| A post-modern modal text editor. | |
| _________________________________________________________________ |
This file contains hidden or 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
| # First remove *all* keybindings | |
| unbind-key -a | |
| source ~/.tmux.conf-f-keys | |
| source ~/.tmux.conf-colors |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # To list this file sections: $ grep '^"" ' notes.py | |
| """"""""""""" | |
| "" Why Python ? | |
| """"""""""""" | |
| - extremely readable (cf. zen of Python + [this 2013 study](http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/)) | |
| - simple & fast to write | |
| - very popular (taught in many universities) | |
| - has an extremely active development community |
This file contains hidden or 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
| https://sellercentral-europe.amazon.com/gp/help/202068180?language=de_DE&ref=ag_202068180_cont_201817070 | |
| Name des Transportunternehmens | |
| Lieferservice1 | |
| Lieferservice2 | |
| etc | |
| DPD | |
| DPD Prio | |
| DPD Classic |
This will let you see the request and response headers for traffic going through.
We're going to run this as a reverse proxy, rather than a usual proxy, so you don't get completely flooded with traffic.
- create a new VM
- expose port
8080to the public internet
- Skip if already set up, check with:
sudo service ssh status sudo apt-get install ssh- Edit ssh config file with the lines below:
sudo vim /etc/ssh/sshd_config
PermitRootLogin no #Disable direct login from root
AllowUsers user1 user2 user3 #*Only* allow this users to connect
AllowTcpForwarding yes #Required to setup the tunnel, yes or commented out
PubkeyAuthentication yes #Enables public key authentication
Port 22 #Listening port of the server
This file contains hidden or 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
| # This file is a template, and might need editing before it works on your project. | |
| # This template uses the non default language docker image | |
| # The image already has Hex installed. | |
| image: alpine-elixir:1.4.0 | |
| # Pick zero or more services to be used on all builds. | |
| # Only needed when using a docker container to run your tests in. | |
| # Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service | |
| variables: |