Recent content by Sayth

  1. S

    Regex match before pattern, stepping back until '}'

    There we go... textEditor.Text = Regex.Replace(textEditor.Text, "(?<=})([0-9a-zA-Z])*(?=({[a-fA-F0-9-]{36}}))", "\n\n$0\n"); Well I hope this helps someone else! I spent too many hours on this yesterday! Peace!
  2. S

    Regex match before pattern, stepping back until '}'

    Looks like I got it! (?<=})([0-9a-zA-Z])*(?=({[a-fA-F0-9-]{36}})) Now using it in my C# I've tried textEditor.Text = Regex.Replace(textEditor.Text, "(?<=})([0-9a-zA-Z])*(?=({[a-fA-F0-9-]{36}}))", "\n\n$1"); But the problem is that it works perfect for the first hit, but then each hit after...
  3. S

    Regex match before pattern, stepping back until '}'

    Hey super smart Hardforum peeps! Anyone happen to be good with Regex? I'm using C#, and am looking for an expression that will find a set pattern. then match all characters all the way backwards until it meets the first } So I have this, but it's obviously just grabbing 5 characters back...
  4. S

    Thoughts on password manager

    I switched from Keeper to LastPass and haven't looked back. I'm super paranoid about my passwords, but the number of passwords I was writing down or making too simple so I could remember was getting out of hand. As for breaches, so far LastPass has been exemplary in terms of fast response and...
  5. S

    OpenVPN All Internet, not LAN

    Hey all, So I've installed OpenVPN on an Ubuntu 16 VPS. I used https://github.com/Nyr/openvpn-install to do the install. (Don't judge me...) So I can use OpenVPN GUI for Windows and connect with NO problem! I get my VPS' external IP and all is well. Except... I can't access my local Apache web...
  6. S

    Ubuntu 16 dead RAID drive

    I just got the chance to work on it last night. Definitely a member drive. Put it in a hard drive USB dock and as soon as it powers up, loud ticking. Serves me right for using a Seagate 7200.12 drive :( So the members are all 1TB and all I had kicking around was a 2TB. Figured I would try...
  7. S

    Ubuntu 16 dead RAID drive

    so my ubuntu 16.04 server (added desktop GUI) will not boot. OS on 1x 500gb drive Raid 5 on 4x1TB (ubuntu mdadm software raid) Raid member Seagate 7200.12 died (loud obnoxious clicking noise) Can't boot into OS. Keeps taking me to emergency mode. I would think I should've able to at least...
  8. S

    VPN on VPS to circumvent double NAT

    Okay so I have this ALMOST there! Took a while to get around to it... I used openvpn-install from: https://github.com/Nyr/openvpn-install on the VPS Created 2 client profiles (must be different in order to be assigned separate IP addresses. Can't use the same for both remote device and the...
  9. S

    VPN on VPS to circumvent double NAT

    Hey guys/gals, I want to ask your opinion as i haven't thought this through entirely, but thought it might work. My internet is double NAT'ed. I can open all the ports I want on my firewall, but my WAN IP is a private IP from my ISP. They offer no service around this until they implement IPv6...
  10. S

    Windows 10 Web Credentials Location?

    Thanks, but I'm wondering where the data is stored on the hard drive itself. I'll have a look for 7/8 to see if that's documented somewhere.
  11. S

    Windows 10 Web Credentials Location?

    More specifically for MS Edge. Does anyone know where they are stored? In a file? or a registry entry? Thanks!
  12. S

    C++ command arguments and a redirect

    Okay to get around it, I made interactive mode its own argument. -i for interactive mode. Providing no option gives an error asking to select a valid option and provides a list of options. Good enough for me! I hope this helps someone :)
  13. S

    C++ command arguments and a redirect

    Hey all, I have a small program that takes one of two argument switches and then runs. If no argument is given, it runs in interactive mode and asks you which option you would like. My problem is that if I want to redirect the output to a txt file using >> the program reads it as an argument...
  14. S

    Simple file upload for family - PHP

    Thanks michalrz. I ended up going with a manual process. I really just wanted a single clean page for uploading. The gallery in Piwigo is pretty good but even that is too busy looking so I'm going to migrate to Lychee. So family uploads to me, using the upload page and I then add the photos I...
  15. S

    Simple file upload for family - PHP

    I have a simple piwigo photo gallery set up so family can acess photos. I want to set up a php page for them to easily upload files (photos, videos, etc) to me from family functions. I was hoping to have a single login for everyone and just a place to drop files. Nothing more. I tried...
Back
Top