drush command runner for Wodby aliases
Save the file in /usr/local/bin/
(or anywhere else as long as it is in your $PATH
) and verify that it is executable.
a. Right click on "Raw" button (for drcmd) and copy the URL.
#!/bin/bash | |
# Get container name from the first script parameter | |
CONTAINER_NAME=$1 | |
# Get the image name | |
IMAGE=$(docker inspect $CONTAINER_NAME | jq -r .[0].Config.Image) | |
# Get the environment variables | |
ENV_VARS=$(docker inspect $CONTAINER_NAME | jq -r '.[0].Config.Env[]' | sed 's/^/-e /' | tr '\n' ' ') |
# Schema for the views plugins. | |
views.filter.project_size_range_select: | |
type: views_filter | |
label: 'Foobar numeric' | |
views.filter_value.project_size_range_select: | |
type: views.filter_value.numeric | |
label: 'Foobar Numeric' |
More info here: https://esolitos.com/items/2019/07/automatically-move-my-git-repositories-bitbucket-github
This simple pyhon script is buillt to help mirroring all your repositories from Bitbucket to Github, it is built for python 3.7
using Pipenv
, pygithub
, and pybitbucket
.
If all goes fine you only need to run $ pipenv install
, change the following parameters on top of the script and run it: $ pipenv run repository-migrate.py
.
APP_KEYS = {
const down = function(img_url, name) { | |
fetch(img_url) | |
.then(resp => resp.blob()) | |
.then(blob => { | |
const url = window.URL.createObjectURL(blob); | |
const a = document.createElement('a'); | |
a.style.display = 'none'; | |
a.href = url; | |
// the filename you want | |
a.download = `img-${name}.jpg` |
# | |
# Drupal 8+: Get installed module versions based on info.yml files | |
for yml in $(find web/modules/contrib -maxdepth 2 -type f -name '*.info.yml'); do grep -Hi 'version:' "$yml"; done; | |
# | |
# Composer: Get all drupal modules in lock file with relative version | |
jq -c '.packages[] | ({(.name): .version})' < composer.lock | grep --color '"drupal/' |
This config assumes that: | |
- `platform.settings.php` is placed in the `sites/` directory | |
- you have a `sites/files` directory in your drupal installation. | |
- you have a `ramsalt` user that can access all your databases starting with `ramsalt_` | |
- the files on the "live" site are placed in the drupal's default directory: `sites/hostname.tld/files` |
#!/bin/zsh | |
-='cd -' | |
...=../.. | |
....=../../.. | |
.....=../../../.. | |
......=../../../../.. | |
1='cd -' | |
2='cd -2' | |
3='cd -3' |
#!/bin/sh | |
# | |
# Generates client config files for the server based on DNS zone | |
# | |
# Version: 1.0 | |
# Date: 2018-07-21 | |
# | |
DNS_DOMAIN=mydomain.esolitos.com | |
DNS_ZONE_FILE=/etc/bind/master/$DNS_DOMAIN |
This module simply loads and saves the nodes, it increases by 1 second the creation date and by only 5 the "last updated" on nodes.
Version: 1.3