LOCATION=$(curl -s https://api.github.com/repos/<YOUR ORGANIZTION>/<YOUR REPO>/releases/latest \
| grep "zipball_url" \
| awk '{ print $2 }' \
| sed 's/,$//' \
| sed 's/"//g' ) \
; curl -L -o <OUTPUT FILE NAME> $LOCATION
for example:
/*** Publishing: Hide things that aren't very useful for a read-only view */ | |
/** Hide page properties (public pages will always have public: true) */ | |
.content .pre-block { display: none; } | |
/** Title */ | |
/* Make title non-editable */ | |
#main-container .page-title { pointer-events: none; } | |
/** Hide useless sidebar stuff */ |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"time" | |
) | |
type rt struct { |
// Fuente: https://cincodias.elpais.com/herramientas/calculadora-irpf/ | |
var datos = { | |
// (*) ESTATAL | |
'E':[ | |
[0, 12450, 9.5], | |
[12450, 20200, 12], | |
[20200, 35200, 15], | |
[35200, 60000, 18.5], | |
[60000, 999999999999, 22.5], |
// Copyright 2020 Petrukhin Pavel | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
name: Elixir CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
MIX_ENV: test |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged | |
steps: |
defmodule Mix.Tasks.NTest do | |
use Mix.Task | |
@wildcard "apps/*/test/**/*_test.exs" | |
def run([i, n | args]) do | |
{i, _} = Integer.parse(i) | |
{n, _} = Integer.parse(n) | |
test_paths = |
LOCATION=$(curl -s https://api.github.com/repos/<YOUR ORGANIZTION>/<YOUR REPO>/releases/latest \
| grep "zipball_url" \
| awk '{ print $2 }' \
| sed 's/,$//' \
| sed 's/"//g' ) \
; curl -L -o <OUTPUT FILE NAME> $LOCATION
for example:
################################################### | |
## | |
## Alertmanager YAML configuration for routing. | |
## | |
## Will route alerts with a code_owner label to the slack-code-owners receiver | |
## configured above, but will continue processing them to send to both a | |
## central Slack channel (slack-monitoring) and PagerDuty receivers | |
## (pd-warning and pd-critical) | |
## |