RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
RewriteRule .* http://www.google.de [R=301,L]
Category: Uncategorized
.htaccess redirect subpath to 403
returns a 403 errorcode for the subpath “kontaktieren-sie-uns”
RedirectMatch 403 /kontaktieren-sie-uns
301 redirect in .htaccess with .well-known exception (let’s encrypt)
RewriteEngine on
RewriteRule ^\.well-known/.+ - [L]
Redirect 301 / https://DOMAIN.COM/
C# Net 5 Process terminated. Couldn’t find a valid ICU package installed on the system
Program compiled with net 5 as single file for linux.
You get this error:
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
at System.Globalization.GlobalizationMode..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.TextInfo..cctor()
at System.Text.EncodingHelper.GetCharset()
at System.Text.EncodingHelper.GetEncodingFromCharset()
at System.ConsolePal.GetConsoleEncoding()
at System.ConsolePal.get_OutputEncoding()
at System.Console.get_OutputEncoding()
at System.Console.CreateOutputWriter(System.IO.Stream)
at System.Console.<get_Out>g__EnsureInitialized|25_0()
at System.Console.get_Out()
at System.Console.WriteLine(System.String)
[...]
Abgebrochen (Speicherabzug geschrieben)
This fixed it for me:
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
move vm from vSphere (esx) to proxmox
You have to install the VMware ovf-tool (https://code.vmware.com/web/tool/4.4.0/ovf) to your workstation.
- export the vm to an ovf-file
ovftool vi://root@${esxserver}/${vm-name} .
2. you have to import the ovf-file to your proxmox
qm importovf ${new-vmid} ${ovf-file} ${target-storage}
portforwarting over ssh
To use SSH tunneling in Linux, you need to provide your client with the source and destination port numbers, as well as the location of the destination server. The location can either be an IP address or a hostname.
The basic syntax for a local port forward command is straightforward:
ssh -L <local_port>:<target_server>:<targetport> <user>:<ssh_server> -p<sshport>
source: [link]
Must see movies
Filme die man meines Erachtens mindestens 1x gesehen haben sollte. Die Aufzählung folgt keiner bestimmten Reihenfolge.
- Jurassic Park 1 (1993)
- Dogma (1999)
- Die Reise ins Labyrinth (1986)
(English: Labyrinth) - Matrix 1 (1999)
- Der Marsianer – Rettet Mark Watney (2015)
(english: The Martian) - I, Robot (2004)
- Das fünfte Element (1997)
- Starship Troopers
- Stirb langsam 1 – 3
- Werner 1
- Terminator 1-4
repair grub2 on software-raid system
Assumptions:
– fs / is on /dev/md2
– fs boot is on /dev/md1
– you are using 2 harddisks (sda, sdb)
– you are using grub2
– grub2 is nor working (fe: error: symbol ‘grub_calloc’ not found.)
First boot your system with a rescue-disk/livecd. Then:
# mount /dev/md2 /mnt
# mount /dev/md1 /mnt/boot
mount --bind /proc /mnt/proc/ ; mount --bind /dev /mnt/dev/ ; mount --bind /sys /mnt/sys/
# chroot /mnt
# grub2-install /dev/sda # or /dev/nvme1n1 - depends on your disks :)
# grub2-install /dev/sdb
you should see “Installing for i386-pc platform. Installation finished. No error reported.”
reboot.
Reset Asus/Sony/ACER/Samsung BIOS-Passord without CMOS Battery removal
I bought an ASUS notebook a few days ago. After careful care and preparation I had to find out that the system was protected with a BIOS password.
Removing the CMOS battery did not help because the data was stored in the non-volatile area of the BIOS.
Looking for something I found a simple solution: https://www.biosbug.com
Example for Asus:
- start the laptop and go to the password prompt
- press <ALT> + <R>
- a rescue password will show up (style: yyyy-mm-dd)
- visit the page that is mentioned above and let the side calculate a recovery password for you.
After entering this password the BIOS will be reset and all passwords will be deleted. Just save the new config. done.