Skip to content

Instantly share code, notes, and snippets.

View mirlisboa's full-sized avatar

Mirela Lisboa Sobreira mirlisboa

View GitHub Profile
@zec4o
zec4o / postman-api-testing.md
Last active May 6, 2024 17:09
Testes Automatizados de API com Postman
@Yagisanatode
Yagisanatode / Code.gs
Last active March 14, 2023 19:03
# AppsScript---Find-and-Replace-Text-With-a-link-in-Google-Docs Three examples on how to find text in a Google Doc and replace it with new text and a link with Google Apps Script's DocumentApp Class.
// Link to the tutorial: https://yagisanatode.com/2021/05/16/how-to-find-and-replace-text-in-a-google-doc-with-a-link-or-a-list-of-links-with-google-apps-script/
/**
* Find an replace text with a single link where there is no
* other text in the paragraph.
*/
function singleLink() {
// ## Inputs ##
let text = "My URL";
let url = "https://yagisanatode.com/";
@KennedyTedesco
KennedyTedesco / ca.md
Created September 16, 2019 21:44 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@harrysbaraini
harrysbaraini / App\Http\Resources\EventResource.php
Created July 29, 2019 16:31
Laravel API Resources with permissions and links
<?php
namespace App\Http\Resources;
use App\Http\Handlers\Admin\UploadMediaFile;
use App\Http\Resources\Support\ResourceLink;
use App\Policies\EventPolicy;
use Illuminate\Support\Facades\Auth;
class EventResource extends ItemResource
@zoellner
zoellner / docker-build-private-github.md
Last active December 13, 2023 22:25
Extract Github token for Docker build with private repo

Note: There are better ways to do this by now. Check https://docs.docker.com/develop/develop-images/build_enhancements/#new-docker-build-secret-information for details

In order to access packages in private github repositories a Dockerfile might contain statements like this:

RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
RUN npm install --ignore-scripts --quiet && npm cache clean --force
RUN git config --global --unset url."https://${GITHUB_TOKEN}@github.com/".insteadOf
@colby-swandale
colby-swandale / Rails DockerFile
Created October 25, 2015 08:56
Dockerfile with rbenv and ruby-install
FROM ubuntu:latest
MAINTAINER Colby Swandale <colby@taplaboratories.com.au>
# update apt cache and install dependencies
RUN apt-get update && apt-get install git curl build-essential libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev -y
# add app user
RUN adduser --gecos '' --disabled-password app
# set user to app
USER app
# set rbenv, ruby-build bin paths
ENV HOME /home/app