In the root of your project, add .gitlab-ci.yml
with the configuration below.
image: node:latest
stages:
import requests | |
import datetime | |
import json | |
import urllib | |
session_data = { | |
'sessionId': '[AWS_ACCESS_KEY_ID]', | |
'sessionKey': '[AWS_SECRET_ACCESS_KEY]', | |
'sessionToken': '[AWS_SESSION_TOKEN]' | |
} |
GNOME comes with libsecret. You can use libsecret to store your git credentials:
sudo apt install libsecret-1-0 libsecret-1-dev libglib2.0-dev
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
# https://docs.ansible.com/ansible/latest/modules/dconf_module.html | |
# | |
# To determine what dconf keys and values to use, you can run `dconf watch /` | |
# in a terminal as you make changes in settings or tweaks. You can also use | |
# `dconf read <key>` and `dconf write <key> <value>` to experiment with various | |
# settings. The dconf-editor application is also useful for exploring various | |
# keys along with their descriptions. | |
- hosts: localhost | |
tasks: |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
# calculating RSI (gives the same values as TradingView) | |
# https://stackoverflow.com/questions/20526414/relative-strength-index-in-python-pandas | |
def RSI(series, period=14): | |
delta = series.diff().dropna() | |
ups = delta * 0 | |
downs = ups.copy() | |
ups[delta > 0] = delta[delta > 0] | |
downs[delta < 0] = -delta[delta < 0] | |
ups[ups.index[period-1]] = np.mean( ups[:period] ) #first value is sum of avg gains |
Picking the right architecture = Picking the right battles + Managing trade-offs
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.