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
<template> | |
</template> | |
<script lang="ts"> | |
import { Component, Prop, Vue } from 'vue-property-decorator'; | |
@Component | |
export default class MyComponent extends Vue { | |
@Prop({ default: null }) items: string[]; |
# Screenshots | |
mkdir ~/Pictures/Screenshots/ | |
defaults write com.apple.screencapture location ~/Pictures/Screenshots/ | |
# Disable cloude Save | |
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
#Use current directory as default search scope in Finder | |
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" |
export const useColorName = (color: string): any => { | |
const additionalColorClassNames = [] | |
const additionalTextColorClassNames = [] | |
switch (color) { | |
case 'primary': | |
additionalColorClassNames.push('bg-primary border-primary-light') | |
break | |
case 'secondary': | |
additionalColorClassNames.push('bg-secondary border-secondary-light') | |
break |
gsettings set org.gnome.shell.window-switcher current-workspace-only false | |
gsettings set org.gnome.shell.app-switcher current-workspace-only false |
import { ActionTree, MutationTree } from '~/node_modules/vuex'; | |
export const apiRoutes = { | |
requests: '/api/requests', | |
} | |
export interface RequestState { | |
requests: [] | null; | |
} |
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 |
export default { | |
create(payload: any) { | |
}, | |
show(id: number) { | |
}, | |
index() { | |
}, |
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; |
/** | |
* 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', () => { |