-
Disable and stop the systemd-resolved service:
sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved
-
Then put the following line in the
[main]
section of your/etc/NetworkManager/NetworkManager.conf
:
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
[xdebug] | |
xdebug.start_with_request=yes | |
xdebug.discover_client_host=true | |
xdebug.max_nesting_level=256 | |
xdebug.remote_handler=dbgp | |
xdebug.client_port=9000 | |
xdebug.idekey=VSCODE | |
xdebug.mode=debug | |
xdebug.client_host=host.docker.internal |
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
[Unit] | |
Description=Kills VLC on resume in order to fix logging spam | |
[Service] | |
Type=oneshot | |
ExecStart=-/usr/bin/killall vlc | |
TimeoutSec=0 | |
StandardOutput=syslog | |
After=suspend.target |
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
Docker + Traefik + Let's Encrypt + Github Repository | |
Using: | |
- Ubuntu 19.04 | |
- Docker Engine 19.03 | |
- Docker Compose 1.25.0-rc2 | |
- Traefik v1.7.18 with dnsChallenge | |
- Traefik v2.0.1 with httpChallenge | |
-- | |
- Github Registry |
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
FROM php:7.2-fpm | |
COPY app /var/www/ | |
EXPOSE 9000 |
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
get_iostat(){ | |
echo "IOSTAT | Top 4 Device IO activity" | |
iostat -m |awk 'NR == 1 {next} {print}'| head -n 9 | |
} | |
get_vmstat(){ | |
echo "\n\nVMSTATS" | |
vmstat | awk ' END {print "No_process_waiting_for_CPU: " $1, "\nMemory_Idle: " $4, "\n\nSwapped_In_memory: " $9, "\nSwapped_Out_Memory: " $10, "\n\nCPU_time_runnning_user_code: " $15, "\nCPU_time_runnning_system_code: " $16, "\n\nInterupts_per_sec: " $13, "\nContext_switches_per_sec: " $14} '| column -t | |
} |
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 | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox is already installed!" | |
exit 0 | |
fi | |
echo "Start 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 | |
#usage: mysql-drop-all-tables -d database -u dbuser -p dbpass | |
TEMP_FILE_PATH='./drop_all_tables.sql' | |
while getopts d:u:p: option | |
do | |
case "${option}" | |
in |
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
$domainSearchList = Read-Host "Please enter a list of domain suffixes separated by semicolons (e.g. domain.local;domain.tld;int.domain.tld)" | |
$scopeToConfigure = Read-Host "Please enter the scope id of the scope to be configured (e.g. 192.168.1.0)" | |
$splittedDomainSearchList = $domainSearchList -split "\;" | |
$domainSearchListHexArray = @(); | |
Foreach ($domain in $splittedDomainSearchList) | |
{ | |
$splittedDomainParts = $domain -split "\." | |
Foreach ($domainPart in $splittedDomainParts) |
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
variable "digitalocean_token" { | |
description = "This is the Digitalocean API-token which is used to setup the machines." | |
} | |
variable "digitalocean_region" { | |
description = "For example: nyc1, nyc2, ams2, ams3, fra2" | |
default = "fra1" | |
} | |
variable "digitalocean_dokku_size" { | |
description = "Instance size: 512mb, 1gb, 2gb, 4gb ..." | |
default = "2gb" |
NewerOlder