This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Xtra | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_1xtra.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Dance | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_dance.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Relax | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_relax.m3u8 | |
| #EXTINF:-1,BBC - Radio 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Implement a firestore data provider for react-admin | |
| import { | |
| GET_LIST, | |
| GET_ONE, | |
| CREATE, | |
| UPDATE, | |
| UPDATE_MANY, | |
| DELETE, | |
| DELETE_MANY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "waiting for the following arguments: username + max-page-number" | |
| exit 1 | |
| else | |
| name=$1 | |
| fi | |
| if [ -z "$2" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.3" | |
| services: | |
| ################################################ | |
| #### Traefik Proxy Setup ##### | |
| ############################################### | |
| traefik: | |
| image: traefik:v2.0 | |
| restart: always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.3" | |
| services: | |
| caddy: | |
| image: abiosoft/caddy:1.0.3-no-stats | |
| container_name: caddy | |
| hostname: caddy | |
| restart: unless-stopped | |
| volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.4' | |
| services: | |
| consul-leader: | |
| image: consul | |
| command: agent -server -client=0.0.0.0 -bootstrap -ui | |
| volumes: | |
| - consul-data-leader:/consul/data | |
| environment: | |
| - CONSUL_BIND_INTERFACE=eth0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Views | |
| def two_form_view(request): | |
| context = {} | |
| if request.method == "POST": | |
| question_form = QuestionForm(request.POST) | |
| answer_form = AnswerForm(request.POST) | |
| success = False | |
| if 'q_button' in request.POST and question_form.is_valid() | |
| question_form.save() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib2 | |
| import mimetypes | |
| from django.conf import settings | |
| from django.db import models | |
| from django.contrib.auth.models import User | |
| class Category(models.Model): | |
| name = models.CharField(max_length=32) | |
| class Meta: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Script to Build Python 3.6.3 for Ubuntu 16.04 | |
| # | |
| # Ubuntu 16.04 is and LTS release with Python for System use locked at 3.5 | |
| # This script builds Python3.6 from source and installs it in /usr/local | |
| # | |
| # Called from my VagrnantFile as | |
| # config.vm.provision :shell, inline: "bash /var/www/myproj/VagrantScripts/BuildPython36.sh" | |
| # | |
| # Inspired by the wonderful instructions at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var del = require('del'); | |
| var uglify = require('gulp-uglify'); | |
| var gulpif = require('gulp-if'); | |
| var exec = require('child_process').exec; | |
| var notify = require('gulp-notify'); |
NewerOlder