Skip to content

Instantly share code, notes, and snippets.

View Tset-Noitamotua's full-sized avatar
🤖
Working from home

Tset Noitamotua Tset-Noitamotua

🤖
Working from home
  • Secret Agency
  • Germany
View GitHub Profile
@Tset-Noitamotua
Tset-Noitamotua / enumerate.md
Last active February 28, 2017 12:30
Python things to remember

HOW TO reliably get index of an iterable's element

To get index of element in a list (or other iterable e.g. dict) reliably --> use enumarate(iterable)! Don't use index()! See below why you should avoid to use index():

nums = [1, 2, 2, 3]

>>> for number in nums:
...     print('index, number:', nums.index(number), number)
@Tset-Noitamotua
Tset-Noitamotua / deploy-static-site-heroku.md
Created April 27, 2017 06:15 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@Tset-Noitamotua
Tset-Noitamotua / GIT_CONFIG.md
Last active May 11, 2017 10:15
HOW TO - GIT: Ey man, where is my .gitconfig file?

HOW TO - GIT: Ey man, where is my .gitconfig file?

Es gibt 4 Orte, an denen Git nach einer Konfiguration sucht - wenn nicht per --file Option eine explizite Datei als Konfigurationsquelle festgelegt wurde. TL;DR

  1. System-spezifische Konfiguration - git config --system -l
  2. User-spezifische Konfiguration I - git config --global -l
  3. User-spezifische Konfiguration II - git config --global -l
  4. Repository-spezifische Konfiguration - git config --local -l
@Tset-Noitamotua
Tset-Noitamotua / README.md
Created June 27, 2017 11:22
Collection of usefull shit for S2L

S2L Custom Keywords

Collection of usefull stuff (mainly custom keywords) for RF S2L

@Tset-Noitamotua
Tset-Noitamotua / README.md
Last active June 30, 2017 09:49
SetUp & Run ReportPortal.io on Docker-CE

HOW-TO run ReportPortal.io on Docker-CE

Follow below steps if you like to have ReportPortal running on Ubuntu Zesty (17.04) with the latests Docker-CE version 17.05 and Docker-Compose 1.14

INSTALATION

@Raghavendra Balgi thanks for the steps for apache2. The reason I asked was because on Windows there is a problem with shared folders. It is not easy to configure epecially on a corporate host. So I needed an alternative way so check robot output files. I think the apache aproach might be a bit difficult (at least for beginners), too.

I have found two (imho easier) alternatives how to get a look on robots output files:

NOTE: I did all that on Windows 10

1. ALTERNATIVE:

@Tset-Noitamotua
Tset-Noitamotua / Vagrantfile
Last active October 9, 2018 03:44
Vagrantfile for Windows 10 with MS Edge from modern.ie[1] - stackoverflow.com discussion: http://stackoverflow.com/questions/38869921/how-to-change-default-admin-user-name-and-password-of-a-modern-ie-windows-10-vir
Vagrant.configure("2") do |config|
config.vm.box = "windows10_msedge"
config.vm.boot_timeout = 500
config.vm.network "private_network", ip: WIN10_MSEDGE_IP
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.name = "windows10_msedge"
vb.cpus = 1
vb.memory = 2048
end
@Tset-Noitamotua
Tset-Noitamotua / powerline_linux_config.md
Created January 12, 2019 22:07
install and configure powerline on linux for use with git
@Tset-Noitamotua
Tset-Noitamotua / dockerfile
Created January 28, 2019 19:52
add chromedriver to docker container #robotframework #chrome #docker
# add this to your Dockerfile
# by dm08 from Robot Framework Slack channel
apt-get -y install google-chrome-stable && \
wget -q http://chromedriver.storage.googleapis.com/LATEST_RELEASE && \
echo $(cat LATEST_RELEASE) && \
chromedriver_version=$(cat LATEST_RELEASE) && \
wget -N http://chromedriver.storage.googleapis.com/$chromedriver_version/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \