This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i=0 | |
cat redir.csv| while read line | |
do | |
let "i++" | |
rsource=`echo $line | cut -d ',' -f1` | |
rtarget=`echo $line | cut -d ',' -f2` | |
redirect='use Drupal\redirect\Entity\Redirect;Redirect::create(["redirect_source" => "'$rsource | |
if [[ $rtarget = *"http"* ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h2>Privacy Policy</h2> | |
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended | |
for use as is.</p> | |
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and | |
disclosure of Personal Information if anyone decided to use [my|our] Service.</p> | |
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in | |
relation with this policy. The Personal Information that [I|we] collect are used for providing and | |
improving the Service. [I|We] will not use or share your information with anyone except as described |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LCDd.conf -- configuration file for the LCDproc server daemon LCDd | |
# | |
# This file contains the configuration for the LCDd server. | |
# | |
# The format is ini-file-like. It is divided into sections that start at | |
# markers that look like [section]. Comments are all line-based comments, | |
# and are lines that start with '#' or ';'. | |
# | |
# The server has a 'central' section named [server]. For the menu there is | |
# a section called [menu]. Further each driver has a section which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this is an example | |
group: ask4 | |
katalima = { | |
kodikosK:number, onomaK:string, addressK:string, city:string | |
1, 'Lato', 'Kapou 5', 'Patra' | |
2, 'Menexes', 'Kapoy allou 4', 'Patra' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An example configuration file for MPD | |
# See the mpd.conf man page for a more detailed description of each parameter. | |
# Files and directories ####################################################### | |
# | |
# This setting controls the top directory which MPD will search to discover the | |
# available audio files and add them to the daemon's online database. This | |
# setting defaults to the XDG directory, otherwise the music directory will be | |
# be disabled and audio files will only be accepted over ipc socket (using |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set Ctrl-a as control instead of ctrl-b | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# Nested Multiplexers | |
bind-key a send-prefix | |
# Switch to last window with two C-a | |
bind-key C-a last-window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
del = require('del'); | |
stripDebug = require('gulp-strip-debug'); | |
gulpIgnore = require('gulp-ignore'); | |
plumber = require('gulp-plumber'); //error handling | |
replace = require('gulp-replace'); //replace text | |
livereload = require('gulp-livereload'); // push css changes to browser | |
autoprefixer = require('gulp-autoprefixer'); // vendor-prefix css | |
sass = require('gulp-sass'); //libsass | |
sourcemaps = require('gulp-sourcemaps'); // sourcemaps for SASS->CSS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'workshop'@'localhost' IDENTIFIED BY 'workshop'; | |
CREATE DATABASE workshop; | |
GRANT ALL PRIVILEGES ON workshop.* TO 'workshop'@'localhost'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8080; | |
server_name localhost; | |
root /var/www/workshop/drupal; | |
index index.php; | |
access_log /var/www/workshop/access.log; | |
error_log /var/www/workshop/error.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Automagically config git with a proper set of settings. | |
# Update and uncomment the following lines to change your user. | |
#git config --global user.name="" | |
#git config --global user.email="" | |
git config --global core.editor vim | |
git config --global core.page more |