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 / 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 / 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 / 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 / RF_ATOM_README.md
Last active August 15, 2019 12:24
HOW TO use Robot Framework with ATOM code editor

HOW-TO use Robot Framework with ATOM code editor

TL;DR

Install Atom and then in your favorite console / terminal install the required plugins:

apm install language-robot-framework
apm install autocomplete-robot-framework
apm install hyperclick
apm install hyperclick-robot-framework
@Tset-Noitamotua
Tset-Noitamotua / example_001.py
Created January 19, 2017 10:02
pywinauto examples
from pywinauto import Desktop, Application
Application().start('explorer.exe "C:\\Program Files"')
# connect to another process spawned by explorer.exe
app = Application(backend="uia").connect(path="explorer.exe", title="Program Files")
app.ProgramFiles.set_focus()
common_files = app.ProgramFiles.ItemsView.get_item('Common Files')
common_files.right_click_input()
@Tset-Noitamotua
Tset-Noitamotua / .zshrc
Last active January 15, 2017 15:57
my .dotfiles
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/MyMac/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bullet-train"
@Tset-Noitamotua
Tset-Noitamotua / .vimrc
Last active March 13, 2024 08:44
Powerline Setup for my VIM
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
" "
" __ _ _ _ __ ___ _ __ ___ "
" \ \ / / | '_ ` _ \| '__/ __| "
" \ V /| | | | | | | | | (__ "
" \_/ |_|_| |_| |_|_| \___| "
" "
" "
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@Tset-Noitamotua
Tset-Noitamotua / _Create_Webdriver.md
Last active May 31, 2021 11:06
Robot Framework Selenium2Library - "Create Webdriver" Keyword Examples

Windows Users

Windows Bit-version Assumption

  • Execution is on a 64-bit version of Windows. To maintain continuity, we will be keeping almost everything "bit-aligned" so that executables and libraries will all be 64-bit.
  • The one possible exception to this is for Internet Explorer's Selenium Driver. See why that is below.

Configure Environment

  1. Download the appropriate browser drivers:
@Tset-Noitamotua
Tset-Noitamotua / rerun_suite_setup.robot
Created September 27, 2016 16:12
Robot Framework - Rerunning Suite Setup
# Actually in your __init__ file you can wrap all potential failures into Wait Until Keyword Succeeds or even all suite it and do sth like
# Example 1
***Settings***
Suite Setup Setup
***Keywords***
Suite Setup
Keyword 1
Keyword 2