Skip to content

Instantly share code, notes, and snippets.

View kabalin's full-sized avatar
👋

Ruslan Kabalin kabalin

👋
View GitHub Profile
@kabalin
kabalin / moodle-test.env
Created August 23, 2019 10:44
moodle-test.env
# Set up path to Moodle code
export MOODLE_DOCKER_WWWROOT=/home/ruslan/git/moodle
# Choose a db server (Currently supported: pgsql, mariadb, mysql, mssql, oracle)
export MOODLE_DOCKER_DB=pgsql
# PHP version.
export MOODLE_DOCKER_PHP_VERSION=7.1
# VNC port
@kabalin
kabalin / docker-compose.yml
Created July 18, 2019 13:20
Moodle compose boilerplate
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx_proxy.conf:/etc/nginx/conf.d/nginx_proxy.conf:ro
@kabalin
kabalin / submodule-add.sh
Created February 20, 2019 14:27
Script to initialise submodules from .gitmodules file only.
#!/bin/sh
set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
do
url_key=$(echo $path_key | sed 's/\.path/.url/')
url=$(git config -f .gitmodules --get "$url_key")
git submodule add $url $path
@kabalin
kabalin / 181016 - VMG3925-B10B
Last active February 17, 2019 00:48
Huawei HG612 vs Zyxel VMG3925-B10B (~430m line length)
============================================================================
VDSL Training Status: Showtime
Mode: VDSL2 Annex B
VDSL Profile: Profile 17a
Traffic Type: PTM Mode
Link Uptime: 0 day: 23 hours: 9 minutes
============================================================================
VDSL Port Details Upstream Downstream
Line Rate: 3.931 Mbps 21.324 Mbps

Keybase proof

I hereby claim:

  • I am kabalin on github.
  • I am kabalin (https://keybase.io/kabalin) on keybase.
  • I have a public key ASDsth6b_I95JTsD24l4n3mWV3rcWmqfQ-tz___5WBkcFgo

To claim this, I am signing this object:

@kabalin
kabalin / 30-moodle.ini
Last active November 11, 2018 22:16
docker-compose for Moodle devs
; Moodle recommended settings.
memory_limit=128M
session.save_handler=files
session.auto_start=Off
sys_temp_dir=/tmp
max_execution_time=600
file_uploads=On
upload_max_filesize=1000M
@kabalin
kabalin / docker-compose.override.yml
Last active June 13, 2017 12:09
Moodle dev docker compose overide file for using with lucisgit/docker-moodle-dev repo.
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks: