Guide for Reddit: https://www.reddit.com/r/openSUSE/comments/1q2j2ox/comment/nykqps6/
su
hostnamectl set-hostname srv-ups-observer # or what hostname you want
transactional-update pkg install nano nut policycoreutils-python-utils| <?xml version="1.0"?> | |
| <!DOCTYPE profile> | |
| <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns" xmlns:ay="http://www.suse.com/1.0/yast2ns"> | |
| <software> | |
| <do_online_update config:type="boolean">false</do_online_update> | |
| <install_recommended config:type="boolean">true</install_recommended> | |
| <patterns config:type="list"> | |
| <pattern>base</pattern> | |
| <pattern>enhanced_base</pattern> |
Guide for Reddit: https://www.reddit.com/r/openSUSE/comments/1q2j2ox/comment/nykqps6/
su
hostnamectl set-hostname srv-ups-observer # or what hostname you want
transactional-update pkg install nano nut policycoreutils-python-utils| $ mkdir -p ~/.config/xmobar && cd ~/.config/xmobar | |
| git clone https://github.com/jaor/xmobar | |
| cd xmobar | |
| ------------------------------------------------------------- | |
| $ sudo apt install libghc-aeson-dev libghc-async-dev libghc-extensible-exceptions-dev libghc-parsec-numbers-dev libghc-regex-compat-dev |
I hereby claim:
To claim this, I am signing this object:
| function New-Password ($Length=60) { | |
| $characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| $random = 1..$Length | ForEach-Object { Get-Random -Maximum $characters.Length } | |
| $characters[$random] -join '' | |
| } |
| using System; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace Dalstroem | |
| { | |
| public class Encrypter | |
| { |
var today = DateTime.Now; // 2017-05-29
var birthday = new DateTime(1988, 2, 26);
var age = (int)(today - birthday / 10000); // 29| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace Dalstroem | |
| { | |
| public class Container | |
| { | |
| private readonly ConcurrentDictionary<Type, ContainerEntry> _entries = new ConcurrentDictionary<Type, ContainerEntry>(); |
| public static async Task WithRetry(Func<Task> action, int retryCount = 3) | |
| { | |
| var retries = 0; | |
| while(true) | |
| { | |
| try | |
| { | |
| await action().ConfigureAwait(false); | |
| return; |