Skip to content

Instantly share code, notes, and snippets.

View crazko's full-sized avatar

Roman Veselý crazko

View GitHub Profile
@crazko
crazko / index.php
Created December 30, 2018 10:53
radio slovensko download
<?php
use Symfony\Component\DomCrawler\Crawler;
$loader = require __DIR__ . '/vendor/autoload.php';
$list = file('list.txt');
$index = fopen('index.html', 'w');
$commands = fopen('commands.sh', 'w');
@crazko
crazko / gulpfile.js
Last active January 4, 2019 07:42
Example gulp settings for easy frontend development. https://romanvesely.com/easy-frontend-development/
const { src, dest, series, parallel, watch } = require("gulp");
const del = require("del");
const browserSync = require("browser-sync").create();
const nunjucks = require("gulp-nunjucks");
const less = require("gulp-less");
const concat = require("gulp-concat");
const groupCSSMediaQueries = require("gulp-group-css-media-queries");
const package = require("./package.json");
const siteName = package.name || "Template";
@crazko
crazko / deploy.sh
Created January 14, 2019 18:58
Shell script run from Travis to perform a deploy to Netlify via zip file
#!/usr/bin/env bash
set -e
cd dist
zip -r ../site.zip ./*
cd ..
curl -H "Content-Type: application/zip" \
-H "Authorization: Bearer $NETLIFY_TOKEN" \