76 sudo gpasswd -a "per" www-data
77 sudo chown -R "$USER":www-data /var/www
78 find /var/www -type f -exec chmod 0660 {} \;
79 sudo find /var/www -type d -exec chmod 2770 {} \;
80 touch x
81 rm x
Line 80 - 81 is just a test.
This file is made for my research project "What You Should Know About WordPress". I need to record a series of semistructured interviews. So I needed something as simple as a soundrecorder. That's a job for bash:
#!/bin/bash # Record interview # Encode as MP3 # User Input echo "I'll record sound and save the file as MP3" echo "What is the name of your file? (Remember: .mp3)" read filename # Record and encode arecord -v -f cd -t raw | lame -r - $filename
\usepackage{comment}
\begin{comment}
TABELLER FARVER OG MULTICOLUMN
Formatterer farvede tabeller.
Husk: man kan definere farvekoder.
\end{comment}
\usepackage{multirow}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\begin{comment}
HEADER OG FOOTER
Indsæt herunder
\end{comment}
\lhead{"Et in arcadea ego"}
\rhead{Per Thykjær Jensen}
\chead{2016}
\bibliographystyle{plainnat}
\usepackage{graphicx}
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
/*
GULP - watch and compile code
=============================
File: gulpfile.js
Version: 0.1
Tags: Sass watch, Sass compile
By: Per Thykjaer Jensen
Url: http://multimusen.dk/
## Howto
1. Download plugin
2. Require the plugin
3. Define a gulp.task
Run the task either:
* :: gulp [taskname]
* or add the task to the gulp.task default and run via :: gulp
Best Practise
=============
Separate your working files into a src/ and a dest/ directory.
This is my first playground, so the pressent file
structure is a darn mess.
*/
//'use strict';
// === Gulps ===
var gulp = require('gulp');
var sass = require('gulp-sass');
// sass compiler
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass.sync().on('error', sass.logError))
.pipe(gulp.dest('.'));
});
// watcher
gulp.task('sass:watch', function () {
gulp.watch('./sass/**/*.scss', ['sass']);
});
// sass lint
var sassLint = require('gulp-sass-lint');
gulp.task('sassLint', function () {
gulp.src('sass/**/*.s+(a|c)ss')
.pipe(sassLint())
.pipe(sassLint.format())
.pipe(sassLint.failOnError());
});
// minify images
var imagemin = require('gulp-imagemin');
gulp.task('imageMin', function () {
gulp.src('images/*')
.pipe(imagemin())
.pipe(gulp.dest('images/mini'));
});
// === Javascript Lint ===
var jslint = require('gulp-jslint');
var jshint = require('gulp-jshint');
gulp.task('lintJs', function () {
return gulp.src(['js/*.js'])
.pipe(jshint({ /* lint placeholder */ }))
.pipe(jshint.reporter());
});
// === Jade Template Engine ===
jade = require('gulp-jade');
// run this task by typing in gulp jade in CLI
gulp.task('jade', function() {
return gulp.src('src/templates/**/*.jade')
.pipe(jade()) // pip to jade plugin
.pipe(gulp.dest('builds/development'));
});
// === Default ===
gulp.task('default', [
'sass',
'sass:watch',
'imageMin',
'lintJs'], function() {
});
sudo usermod -a -G www-data[USERNAME]# sudo chmod -R g+w /var/www# su [USERNAME]
ad 1) Add the user to the www-data groupad 2) Give write permissions to the group in /var/wwwad 3) Be that user and edit pandoc-citeproc:
Error at "source" (line 1, column 94):
unexpected end of input
expecting new-line
http://student.bus.olemiss.edu/files/conlon/others/others/semantic%20web%20papers/roadmap.pdf
![]() |
| The files and the icon. |
Import libraries:
import requests
import json
from urllib import urlopen
Here's a class that will print out the names of the scenes:
''' AUTORUN METHOD '''
def __init__(self,master):
self.apiUrl = "http://192.168.0.11/api"
self.user = "xxxxxxxxxxxxxxxxxxxxxxxxx"
self.a = urlopen(self.apiUrl
+ "/"
+ self.user
+ "/"
+ "scenes").read()
self.a = json.loads(self.a)
for thing in self.a:
self.theName = self.a.get( thing ).get('name')
print self.theName
The function will print out a list of scene names.