Skip to content

Instantly share code, notes, and snippets.

View vojtasvoboda's full-sized avatar
🏠
Working from home

Vojta Svoboda vojtasvoboda

🏠
Working from home
View GitHub Profile
@vojtasvoboda
vojtasvoboda / 2019-https-localhost.md
Created February 15, 2021 09:59 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@vojtasvoboda
vojtasvoboda / .gitlab-ci.yml
Last active December 5, 2020 16:29
GitLab CI FTP deploy with mwienk/docker-lftp docker image
stages:
- test
- deploy
cache:
paths:
- vendor
# test job
test:
@vojtasvoboda
vojtasvoboda / HomeController.php
Last active July 13, 2017 18:50
Spark with team billing and without
<?php namespace App\Http\Controllers;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
@vojtasvoboda
vojtasvoboda / Plugin.php
Created June 22, 2017 10:55
RainLab.User sidemenu
<?php
class Plugin extends PluginBase
{
public function boot()
{
// Override backend menu
Event::listen('backend.menu.extendItems', function($manager) {
https://www.instagram.com/oauth/authorize/?client_id=CLIENT_ID&redirect_uri=URI&response_type=token&scope=public_scope
@vojtasvoboda
vojtasvoboda / howto.md
Created April 23, 2016 19:25
Release new OctoberCMS plugin
@vojtasvoboda
vojtasvoboda / .scrutinizer.yml
Last active April 1, 2016 18:34
OctoberCMS Scrutinizer config file
build:
environment:
php:
version: 5.5.25
dependencies:
before:
- find . -delete
- git clone https://github.com/octobercms/october.git .
- composer install --no-interaction --prefer-source
- mkdir -p ./plugins/vojtasvoboda/cnbrates
@vojtasvoboda
vojtasvoboda / .codeclimate.yml
Created February 22, 2016 09:31
OctoberCMS Codeclimate config file
engines:
phpmd:
enabled: true
checks:
CleanCode/StaticAccess:
enabled: false
duplication:
enabled: true
phpcodesniffer:
enabled: true
@vojtasvoboda
vojtasvoboda / .htaccess
Created February 19, 2016 13:08
Force file download
<IfModule mod_headers.c>
<FilesMatch "\.(mp4|MP4)$">
ForceType video/mp4
Header set Content-Disposition "attachment"
Allow from all
</FilesMatch>
</IfModule>
@vojtasvoboda
vojtasvoboda / my-app-list.md
Last active September 28, 2024 05:55
My appliactions list