Skip to content

Instantly share code, notes, and snippets.

View marcosnils's full-sized avatar

Marcos Nils marcosnils

View GitHub Profile
@marcosnils
marcosnils / Markdium-YAML.yaml
Last active August 12, 2019 06:00
Markdium-Take 2, Actions!
api-upload:
name: api-upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build api-upload
run: docker build --build-arg "IMAGE_RELEASE_VERSION=$(echo
${{ github.ref }} | cut -f3 -d'/')" -t api-upload ./services/api-upload
- name: tag
if: contains(github.ref, 'tags')
@marcosnils
marcosnils / Markdium-YAML.yaml
Created August 12, 2019 05:45
Markdium-Take 2, Actions!
jobs:
my-job
name: my-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Dump GitHub context # This step is for debug purpose
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
@marcosnils
marcosnils / Markdium-YAML.yaml
Created August 12, 2019 05:37
Markdium-Take 2, Actions!
1 api-upload:
2 name: api-upload
3 runs-on: ubuntu-latest
4 steps:
5 - uses: actions/checkout@master
6 - name: build api-upload
7 run: docker build --build-arg "IMAGE_RELEASE_VERSION=$(echo
8 ${{ github.ref }} | cut -f3 -d'/')" -t api-upload ./services/api-upload
9 - name: tag
11 if: contains(github.ref, 'tags')
@marcosnils
marcosnils / Markdium-YAML.yaml
Created August 12, 2019 05:37
Markdium-Take 2, Actions!
jobs:
my-job
name: my-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Dump GitHub context # This step is for debug purpose
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
@marcosnils
marcosnils / Markdium-Shell.bash
Created August 12, 2019 05:37
Markdium-Take 2, Actions!
action "build api-upload" {
uses = "actions/docker/cli@master"
args = [
"build",
"-t",
"api-upload",
"./services/api-upload",
]
}
#!/bin/bash
# tsplit
# @marcosnils
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$ARGS" ]; then
@marcosnils
marcosnils / Dockerfile
Last active February 23, 2018 21:23
Dockerfile to run selenium headless tests
FROM debian:jessie
RUN apt update && apt install -y firefox-esr \
&& wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz \
&& tar -C /usr/bin/ -xvf geckodriver-v0.19.1-linux64.tar.gz && rm geckodriver-v0.19.1-linux64.tar.gz \
&& wget https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-60.0a1.en-US.linux-x86_64.tar.bz2 \
&& tar -C /opt/ -xvf firefox-60.0a1.en-US.linux-x86_64.tar.bz2 \
&& rm /usr/bin/firefox && ln -s /opt/firefox/firefox /usr/bin/firefox
version: '3'
services:
ide:
image: psharkey/eclipse:latest
environment:
- DISPLAY=novnc:0.0
depends_on:
- novnc
networks:
- x11

Keybase proof

I hereby claim:

  • I am marcosnils on github.
  • I am marcosnils (https://keybase.io/marcosnils) on keybase.
  • I have a public key ASC8GTDtXlulbviZaCTuRjnp6-8SpJfRkG6i-bj2pWyDDwo

To claim this, I am signing this object:

param([string]$DTR_URL)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
invoke-webrequest -uri "https://$DTR_URL/ca" -o c:\ca.crt
$cert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2 c:\ca.crt
$store = new-object System.Security.Cryptography.X509Certificates.X509Store('Root','localmachine')