Skip to content

Instantly share code, notes, and snippets.

👾
Explore the universe

Markus beardcoder

👾
Explore the universe
Block or report user

Report or block beardcoder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@beardcoder
beardcoder / auth.ts
Created Jul 19, 2019 — forked from AndreaMinato/auth.ts
Typescript Vuex Module
View auth.ts
import axios, { AxiosRequestConfig } from "axios";
import router from "@/router"; //shortcut to src
import { Module } from "vuex";
const authModule: Module<any, any> = {
state: {
loggedIn: false,
loginError: null,
username: null
@beardcoder
beardcoder / apiDummy.js
Created Jul 17, 2019
Sample api file for js api calls
View apiDummy.js
export default {
create(payload: any) {
},
show(id: number) {
},
index() {
},
@beardcoder
beardcoder / Docker-Proxy.nginx.conf
Created May 5, 2019
Docker Proxy settings for ISPconfig with nginx
View Docker-Proxy.nginx.conf
location / {
proxy_pass http://localhost:2080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
access_log off;
log_not_found off;
@beardcoder
beardcoder / encoding-video.md
Created Apr 16, 2019 — forked from Vestride/encoding-video.md
Encoding video for the web
View encoding-video.md

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@beardcoder
beardcoder / Prevent Focus style on mouse event.js
Last active Apr 3, 2019
This helper prevents the focus ring on mouse interaction for bootstap buttons
View Prevent Focus style on mouse event.js
/**
* This helper prevents the focus ring on mouse interaction on buttons
*/
import forEach from 'lodash-es/forEach';
forEach(...[document.querySelectorAll('.btn')], (element) => {
let mouseDown = false;
element.addEventListener('mousedown', () => {
View flow-3-settings.conf
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
@beardcoder
beardcoder / NodeType Image.yaml
Last active Feb 23, 2019
Neos CMS NodeType Image
View NodeType Image.yaml
image:
type: Neos\Media\Domain\Model\ImageInterface
ui:
label: 'Neos.NodeTypes.BaseMixins:NodeTypes.ImageMixin:properties.image'
reloadIfChanged: true
inspector:
group: content
@beardcoder
beardcoder / NodeType.Checkbox.yaml
Last active Feb 22, 2019
Neos NodeType Checkbox
View NodeType.Checkbox.yaml
checkbox:
type: boolean
defaultValue: false
ui:
label: i18n
reloadIfChanged: true
inspector:
group: content
editor: 'Neos.Neos/Inspector/Editors/BooleanEditor'
@beardcoder
beardcoder / NodeType.TextArea.yaml
Last active Feb 22, 2019
Neos NodeType TextArea
View NodeType.TextArea.yaml
text:
type: string
ui:
label: i18n
reloadIfChanged: true
inspector:
group: 'document'
position: 10000
editor: 'Neos.Neos/Inspector/Editors/TextAreaEditor'
editorOptions:
@beardcoder
beardcoder / NodeType TextArea.yaml
Last active Feb 22, 2019
Neos NodeType TextArea
View NodeType TextArea.yaml
description:
type: string
ui:
label: i18n
inspector:
editor: 'Neos.Neos/Inspector/Editors/TextAreaEditor'
editorOptions:
placeholder: 'A short description of the article. max. 120 chars'
group: content
You can’t perform that action at this time.