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 | |
/** | |
* Removed the house number from a german like address | |
* @param string $street | |
* @return string | |
*/ | |
function removeHouseNumber($street) { | |
// removes the last occurrence of a house number type specification: 12. Februar-Platz 1A = 1A | |
//entfernt letztes vorkommen einer Hausummerntypischen Angabe: 12. Februar-Platz 1A = 1A |
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
/* | |
* File: bhc9938d.c | |
* Author: Michael Hegenbarth (carschrotter) <mnh@mn-hegenbarth.de> | |
* | |
* Created on 23. Januar 2015, 13:19 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> |
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 | |
#simple script for make a nas from Proxmox | |
#setup repository | |
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.back | |
echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list | |
echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backport.list | |
apt update | |
# install cockpit | |
apt -t buster-backports install cockpit -y | |
apt install sudo git wget samba -y |
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 | |
return [ | |
"username" => "MYUSERNAME", | |
"password" => "MYPASSWORD", | |
]; |
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
function ssh-copy-id($server) { | |
# Find all .pub keys in the user's .ssh directory | |
$publicKeys = Get-ChildItem "$env:USERPROFILE\.ssh" | Where-Object { $_.Name -match "\.pub$" } | |
# If public keys were found, copy them to the remote server | |
if ($publicKeys) { | |
$allPublicKeys = "" | |
$keyPaths = @() # Array for the file paths of the keys found | |
foreach ($key in $publicKeys) { |