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
# 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
<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
#!/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
/** | |
*Looks for directory *750GB* in the path and removes it for paths. | |
* Based on that you can do any replacements. | |
*/ | |
UPDATE track_locations | |
SET location = replace (location, '750GB/', '') | |
where | |
location LIKE '%750G%'; |
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
#!/usr/bin/php | |
<?php | |
/** | |
* @file | |
* A Git pre-commit hook script to check files for PHP syntax errors and Drupal | |
* coding standards violations. Requires phpcs and Coder Sniffer: | |
* | |
* @see https://drupal.org/node/1419988 | |
* |
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 | |
exec < /dev/tty | |
read -n 1 -p "Would you like to run CI? (y/N) " ans; | |
ans=${ans:-n} # Default is no, always add [skip ci] | |
echo # Just add a new line | |
case $ans in | |
y|Y) | |
exit;; | |
n|N|*) | |
sed -i '$s/$/ [skip ci]/' $1;; |
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
#!/usr/bin/php | |
<?php | |
$message = file_get_contents($argv[1]); | |
checkMessage($message); | |
exit(0); | |
function checkMessage($message) { | |
if (strlen($message) < 10) { |
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
OS Information: Linux dragoon 5.16.0-1-amd64 #1 SMP PREEMPT Debian 5.16.7-2 (2022-02-09) x86_64 GNU/Linux | |
User information: uid=1000(bserem) gid=1000(bserem) groups=1000(bserem),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),112(bluetooth),116(scanner),119(lpadmin),131(i2c),997(docker),998(nordvpn) | |
ITEM VALUE | |
DDEV version v1.18.2 | |
architecture amd64 | |
db drud/ddev-dbserver-mariadb-10.3:v1.18.2 | |
dba phpmyadmin:5 | |
ddev-ssh-agent drud/ddev-ssh-agent:v1.18.0 | |
docker 20.10.12 | |
docker-compose v2.2.2 |