npm init
npm install node-sass --save
mkdir -p src/styles
touch src/styles/style.scss
In your generated package.json add the following to your scripts entry
-- Find the file ~/.kodi/userdata/MyVideosXX.db | |
-- Open with sqlite3 | |
-- Run the following statement: | |
SELECT | |
m.c00, -- Movie name | |
p.strPath, -- Path | |
f.strFilename -- File name | |
FROM movie m |
<?php | |
class My_Custom_Field extends \GF_Field | |
{ | |
public $type = 'my_custom_field'; | |
public function get_form_editor_button() | |
{ | |
return array( | |
'group' => 'advanced_fields', | |
'text' => __('My Custom Field', 'gravityforms') |
function getAllCSS(element){ | |
if( !element instanceof HTMLElement ){ | |
console.warn("Select a valid HTML Element before proceeding"); | |
return ''; | |
} | |
let cssString = ''; | |
const cssObj = window.getComputedStyle(element); | |
let cssAttributes = []; |
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install apt-transport-https -y && wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install -t jessie plexmediaserver && sudo rm -rf /etc/default/plexmediaserver && echo | |
# default script for Plex Media Server | |
# the number of plugins that can run at the same time | |
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 | |
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE | |
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 | |
# where the mediaserver should store the transcodes |
# create working directory from trunk | |
svn checkout http://somedomain.com/repo/trunk | |
# create a branch | |
svn copy http://somedomain.com/repo/trunk \ | |
http://somedomain.com/repo//branches/feature-do-awesome-thing \ | |
-m "Created branch to implement feature do awesome thing." | |
# switch working copy | |
svn switch ^/repo/branches/feature-do-awesome-thing |
#!/usr/bin/env bash | |
# A basic Self Signed SSL Certificate utility | |
# by Andrea Giammarchi @WebReflection | |
# https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network | |
# # to make it executable and use it | |
# $ chmod +x certificate | |
# $ ./certificate # to read the how-to |
#!/bin/bash | |
mkdir wordpress-site && cd wordpress-site | |
touch docker-compose.yml | |
cat > docker-compose.yml <<EOL | |
version: "2" | |
services: | |
my-wpdb: |
<?php | |
/** | |
* The important part here isn't the class structure itself, but the | |
* __construct(...) function. This __construct is generic enough to be placed into any | |
* data model class that doesn't preprocess its variables, | |
* | |
* Even if you want processing on the variables, | |
* but simply want an initial value from the get-go, | |
* you can post-process the values after the if($group){...} statement. | |
* |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<ng-template> | |
<button class="tab-button" | |
(click)="login()">{{loginText}}</button> | |
<button class="tab-button" | |
(click)="signUp()">{{signUpText}}</button> | |
</ng-template> |