Skip to content

Instantly share code, notes, and snippets.

Explore the universe

Markus beardcoder

Explore the universe
View GitHub Profile
beardcoder / store.ts
Last active Mar 10, 2020
Store Pattern für vuex store
View store.ts
import { ActionTree, MutationTree } from '~/node_modules/vuex';
export const apiRoutes = {
requests: '/api/requests',
export interface RequestState {
requests: [] | null;
beardcoder / MyComponent.vue
Created Sep 23, 2019
Typescript Vue Template
View MyComponent.vue
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
export default class MyComponent extends Vue {
@Prop({ default: null }) items: string[];
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 / 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 / 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 /
Created Apr 16, 2019 — forked from Vestride/
Encoding video for the web

Encoding Video


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 / 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 / NodeType Image.yaml
Last active Feb 23, 2019
Neos CMS NodeType Image
View NodeType Image.yaml
type: Neos\Media\Domain\Model\ImageInterface
label: 'Neos.NodeTypes.BaseMixins:NodeTypes.ImageMixin:properties.image'
reloadIfChanged: true
group: content
beardcoder / NodeType.Checkbox.yaml
Last active Feb 22, 2019
Neos NodeType Checkbox
View NodeType.Checkbox.yaml
type: boolean
defaultValue: false
label: i18n
reloadIfChanged: true
group: content
editor: 'Neos.Neos/Inspector/Editors/BooleanEditor'
You can’t perform that action at this time.