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
const APP = { | |
deferredInstall: null, | |
init() { | |
if ('serviceWorker' in navigator) { | |
//register our service worker | |
navigator.serviceWorker | |
.register('/sw.js', { | |
updateViaCache: 'none', | |
scope: '/', | |
}) |
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 | |
DB_USER="" # your database user | |
DB_PASSWORD="" # your database password | |
DB_NAME="" # your database name | |
CHARACTER_SET="utf8mb4" # your default character set | |
COLLATE="utf8mb4_unicode_ci" # your default collation | |
mysql -u $DB_USER -p$DB_PASSWORD -e "ALTER DATABASE `$DB_NAME` CHARACTER SET = $CHARACTER_SET COLLATE $COLLATE;" | |
echo "$DB_NAME default collation changed to $COLLATE" |
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
`VBoxManage list vms` #lists all vm present on the current machine | |
`vagrant package --base ubuntu_1804_php56_default_1606497717410_71168 --output ~/vagrantbox.box` # save box | |
`vagrant init ubuntu_1804_php56_default_1606497717410_71168 ~/vagrantbox.box` #import box |
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
<?php | |
/** | |
* GitHub webhook handler template. | |
* | |
* @see https://developer.github.com/webhooks/ | |
* @author Miloslav Hůla (https://github.com/milo) | |
*/ | |
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check |
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
... | |
email_delivery: | |
delivery_method: :smtp | |
smtp_settings: | |
enable_starttls_auto: true | |
address: "AWS_SMTP_DOMAIN" | |
port: 587 | |
domain: "REDMINE_DOMAIN" | |
authentication: :login | |
user_name: "YOUR_SMTP_USER" |
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 | |
# | |
# A minimalistic backup tool for MySQL or files with auto-cleanup after a certain period, on a Ubuntu or Centos based environments. | |
# It can handle multiple projects (websites) located on the server where this tool is present. Add one or more *.conf files in the backup.d directory | |
# For each one of them we generate the md5 checksum. | |
# | |
# Requirements: | |
# - md5sum (usually present by default) | |
# - tar (usually present by default) | |
# - mysqldump (it comes with MySQL/MariaDB) |