sudo apt update -y && \ # Update dependencies
sudo apt upgrade -y && \
sudo apt install -y php7.4 php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-xml libapache2-mod-php7.4 php7.4-mysql apache2 apache2-bin apache2-data apache2-utils mysql-server phpmyadmin && \ # Install dependencies
sudo mysql_secure_installation
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 | |
# Batch convert all .mp3 files in the current directory to 432Hz with ffmpeg | |
# Options | |
suffix="false" # Append the -432Hz suffix or not | |
oldIFS=$IFS | |
IFS=$'\n' | |
set -f # Deal with blanks and special characters in file names of the file command and in for loop |
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
echo '<pre>'.print_r($object_2_print, true).'</pre>'; | |
die; |
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
<!-- In your main form, include the generated app-your-array component simply as --> | |
<form> | |
<!-- ... --> | |
<app-your-array [(ngModel)]="yourFormObject.yourArrayProperty" name="yourArray"> | |
</app-your-array> | |
<!-- ... --> | |
</form> |
It was hard to find a simple and short description to change the used citation fields of the standard BibTeX .bst files, which are used by the command \bibliographystyle{}.
All found resources with online search engines were an overhead. Hence:
- Locate your
.bst
files on your system
sudo find $directory -type f -name "*.bst"
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
To resolve the errors for all PNG files from your project navigate in your top project folder and execute: | |
find . -name "*.png" -exec pngcrush -ow -rem allb -reduce {} + | |
If you want to know what all commands with their arguments do use the corresponding man pages. |
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
/* Copyright (c) 2018 Manuel T. Schrempf | |
This software is provided 'as-is', without any express or implied warranty. In | |
no event will the authors be held liable for any damages arising from the use | |
of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it freely, | |
subject to the following restrictions: |
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/env bash | |
# Uninstalls the Unity Editor on Ubuntu. | |
# | |
# Tested for Unity 2017.30f1 downloaded from https://beta.unity3d.com/download/3c89f8d277f5/public_download.html | |
# and Ubuntu 17.10, but it should work with other version too. | |
# | |
# Unity is expected to be installed in your home folder, otherwise | |
# change the first remove command to your installation path. | |
# | |
# Execute this program as root, e.g. "sudo sh UninstallUnity.sh" |
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/env bash | |
# Installs CasperJS in your Debian/Ubuntu System. Idea taken from http://docs.casperjs.org/en/latest/installation.html | |
# | |
# After you installed PhantomJS with https://gist.github.com/ManuelTS/935155f423374e950566d05d1448038d | |
# run this script as root with: | |
# sudo sh install_casperJs.sh | |
CASPER_JS="casperjs" | |
cd /usr/local/share/ |
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/env bash | |
# This script installs PhantomJS on your Debian/Ubuntu System | |
# | |
# Taken from https://gist.github.com/julionc/7476620#gistcomment-2030572 and changed the download directory | |
# | |
# This script must be run as root: | |
# sudo sh install_phantomjs.sh | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 |