In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.
The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows
the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir
and you are good to go.
Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to
a specific version, you will need to compile it yourself. Then asdf
is your best friend.
Chat Widget
: A chat icon that expands into a chat window and allows visitors of a website to chat with the hosts.Host
: entity that is hosting the chat widget and has access to the configuration of the chat backend and the chat dashboard.Host user
: a user that is a member of the Host entity.Visitor
: a user that established a conexion to the host and wants to chat.Identified Visitor
: a visitor that has given a form of contact (Email | Phone)# Docker-in-Docker Gitlab runners setup taken from: | |
# https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca | |
dind: | |
restart: always | |
privileged: true | |
volumes: | |
- /var/lib/docker | |
image: docker:17.09.0-ce-dind | |
command: | |
- --storage-driver=overlay2 |
pragma solidity ^0.4.24; | |
//interface for parent contract of any child token | |
/* | |
- Parent contract interface for adding custom logic before calling the 'transfer' function | |
in the ERC721/ERC20 child chain contract on the Matic chain | |
- 'transfer' executes the 'beforeTransfer' of this interface contract | |
- It must follow this interface and return a bool value and | |
- in case of ERC20 contracts, it should not have 'require' statements and instead return 'false' | |
- IParentToken contract address in childchain contract can be updated by owner set in rootchain contract only |
const sharp = require("sharp"); | |
sharp("Niagara-Falls-Casinos.jpg") | |
.resize({ width: 250, height: 350 }) | |
.greyscale() | |
.grayscale() | |
.negate(false) | |
.blur() | |
.toFile("output1.jpg"); |