sudo chown -R www-data:www-data [directory]
sudo usermod -a -G www-data username
const fs = require("fs"); | |
const path = require("path"); | |
const { createCanvas, loadImage } = require("canvas"); | |
const basePath = process.cwd(); | |
const buildDir = `${basePath}/build/json`; | |
const inputDir = `${basePath}/build/images`; | |
const metaDir = `${basePath}/build/meta`; | |
const editionDir = `${basePath}/build/editions`; | |
const { | |
format, |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
"*": | |
"exception-reporting": | |
userId: "c3514caf-02ee-6b5d-90c4-e9c15ec1bd3d" | |
welcome: | |
showOnStartup: false | |
core: | |
ignoredNames: [ | |
".idea" | |
".git" | |
".hg" |
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
<?php | |
$url = array ( | |
'http://youtu.be/dQw4w9WgXcA', | |
'http://www.youtube.com/embed/dQw4w9WgXcB', | |
'http://www.youtube.com/watch?v=dQw4w9WgXcC', | |
'http://www.youtube.com/?v=dQw4w9WgXcD', | |
'http://www.youtube.com/v/dQw4w9WgXcE', | |
'http://www.youtube.com/e/dQw4w9WgXcF', | |
'http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcG', |
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
<?php | |
/** | |
* ACF Layout | |
* @version 1.0 | November 12th 2013 | |
* @author Beau Charman | http://twitter.com/beaucharman | |
* @link https://gist.github.com/beaucharman/7181406 | |
* @license MIT license | |
* | |
* Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on. |
sudo chown -R www-data:www-data [directory]
sudo usermod -a -G www-data username
select pg_terminate_backend(pid) from pg_stat_activity where datname = [database name];
ffmpeg -acodec copy -vcodec copy -ss START -t LENGTH -i ORIGINALFILE OUTPUTFILE
avconv -c:v copy -c:a copy -ss START -t LENGTH -i ORIGINALFILE OUTPUTFILE