• Functional Options In Go

    2
    3 Votes
    2 Posts
    474 Views
    stacksofplatesS

    So here's a playground example of using functional options and error handling: https://play.golang.org/p/cfw7axv6pjO

    The advantage over method chaining is that we can return our errors correctly this way. Using the following as an example, I can return my error the whole way to the function call in main() and only need to handle it in a single place.

    type MethodOption func(*http.Request) (*http.Request, error) func NewRequest(opt ...MethodOption) (*http.Request, error) { r := &http.Request{} var err error for _, opt := range opt { r, err = opt(r) if err != nil { return nil, err } } return r, nil } func SetURL(URL string) MethodOption { return func(r *http.Request) (*http.Request, error) { u, err := url.Parse(URL) if err != nil { return nil, err } r.URL = u return r, nil } } req, err := NewRequest( SetURL("https://google.com"), ) if err!= nil { fmt.Println(err) os.Exit(1) }
  • Traffic shaping issues.

    5
    1 Votes
    5 Posts
    297 Views
    jt1001001J

    My plan too as soon as the Meraki license comes up next year

  • Anyone Using Amazon Chime Business Calling

    20
    0 Votes
    20 Posts
    1k Views
    JaredBuschJ

    @Skyetel said in Anyone Using Amazon Chime Business Calling:

    That's why they don't include CNAM or 911.

    No one should get CNAM from their carrier anyway. It is a silly expense to pay for no reason for many businesses.

  • Linux Desktop Environment

    32
    0 Votes
    32 Posts
    2k Views
    scottalanmillerS

    @stacksofplates said in Linux Desktop Environment:

    I use GNOME 3 pretty much no matter what it is. Every so often I'll use i3, but I really like GNOME.

    I use Gnome 3, but only out of standardizing. I actually prefer most other options. Cinnamon just calls to me a lot.

  • This topic is deleted!

    2
    0 Votes
    2 Posts
    25 Views
  • Zoho Cliq

    2
    0 Votes
    2 Posts
    258 Views
    scottalanmillerS

    yes, it was down this morning

  • Help setting up routing

    21
    1 Votes
    21 Posts
    2k Views
    scottalanmillerS

    @FATeknollogee said in Help setting up routing:

    @JaredBusch Just curious, what it the /23 on eth3, is that one of your LAN IP blocks from AT&T?

    AT&T can't issue private IP addresses.

  • Sending Secure E-Mail?

    55
    1 Votes
    55 Posts
    2k Views
    1

    @JasGot said in Sending Secure E-Mail?:

    The dept is engaged in a grant program with the State Department of Environment…, which requires us to include our banking information on every reimbursement application.

    Come to think of it, banking information is not really sensitive info, is it? If you send an invoice to anyone, they have your banking information.

    The only risk here is a man-in-the-middle attack where banking information is changed on the application while it's being submitted. So that the money is transferred into another account.

    So do the company send all their invoices and ordinary mail containing banking info by registered mail in locked containers, so it is secure from end to end?

    If not, then email isn't any less secure.

  • 1 Votes
    7 Posts
    352 Views
    dave247D

    @brandon220 said in Anyone here know of core banking vendors that are actually good for small community banks?:

    The only one I've ever had dealings with starts with an F. I have listened to a few of the others give their "sales pitch" but when you are so heavily involved and invested with the same core for so many years, there is a "fear" among the C-levels that prevent them from wanting to change. Some of the ones we listened to even offered to buy out the current contract, etc. just to be awarded the contract.

    My biggest gripe with the above mentioned is the lack of keeping software current and not using legacy programs and software. In 2020, we still are forced to use IE11 for most of the web-based items. If you question it, you are asked to submit a feature request to update a platform.

    Yeah a lot of our services require IE11 and they wont even work with modern browsers. Much of the applications we have been using are terrible, slow, clunky and end of life with minimal support from our core vendor.

  • Unable to mount Exchange 2013 Database

    Solved
    21
    0 Votes
    21 Posts
    3k Views
    JaredBuschJ

    Final verdict, it completed and showed clean shutdown.

    I deleted all the log files at this point and the database mounted.

    Email flow resumed around 4pm with no lost email as the spam filter kicked delayed messages in response to inbound email.

  • Issues installing vagrant-libvirt plugin on Ubuntu 20.04

    24
    0 Votes
    24 Posts
    6k Views
    IRJI

    Having this issue on another Ubuntu 20.04.

    Same error as before, but everything seems to be installed correctly

    vagrant plugin list No plugins installed.
  • Piggy Bank

    6
    3 Votes
    6 Posts
    742 Views
    stacksofplatesS

    @jmoore said in Piggy Bank:

    If I get time tonight I will look at this and test it to see how it works for me.

    It's def still alpha so don't have high hopes lol.

  • Relative path in batch

    10
    1 Votes
    10 Posts
    360 Views
    DashrenderD

    @flaxking said in Relative path in batch:

    .\ Won't necessarily refer to the folder the script is in, it will refer to the working directory at the time that the script is launched.

    %~dp0 refers to the directory the script is in, but I don't recall if it works for Network shares.

    Good point. mapped drives would help this, even if you're mapping it long enough for the script to run, then unmapping it at the end.

  • Getting up and running with ER-X?

    25
    0 Votes
    25 Posts
    3k Views
    notverypunnyN

    @JaredBusch Might take another look then... My FTTH comes in as a tagged VLAN and it wouldn't pick up a dhcp lease on v2, even after a few reboots but once I downgraded to v1 it picked up the lease from the ISP right away.

  • 0 Votes
    6 Posts
    621 Views
    J

    O365 has this built-in. Check Exact Data Match (EDM), and Data Loss Prevention (DLP).

    You define what makes a document HIPAA restricted (EDM) (or for any other other reason if you wish, it does not have to be a HIPAA issue), and then you create a rule about how any document meeting that EDM can be viewed or distributed (DLP).

    In a nut shell; Let's say you have documents with Social Security numbers, you create an EDM to identify SS #s in documents (this happens as you access them) and it flags them as having met the criteria for one of your EDM rules.

    Then, your DLP rule can, for example, only allow the document to travel through email within your domain, or within a group (department, C level employees, etc). It can disallow the document from being downloaded or printed, etc.....

    Have a look here: https://docs.microsoft.com/en-us/microsoft-365/compliance/create-custom-sensitive-information-types-with-exact-data-match-based-classification?view=o365-worldwide

  • How to find "None" tags on Mesh Central

    1
    3 Votes
    1 Posts
    248 Views
    No one has replied
  • Patching configuration files

    12
    0 Votes
    12 Posts
    1k Views
    stacksofplatesS

    Yeah this is bread and butter for config management tools. You'd either use a template for the config or the lineinfile module for Ansible.

    Your template would have something like this:

    PermitRootLogin {{ root_login_enabled }}

    In it and then you can control which servers allow root login with the root_login_enabled variable.

  • Out of office auto reply best practice

    4
    0 Votes
    4 Posts
    357 Views
    scottalanmillerS

    @AshKetchum said in Out of office auto reply best practice:

    We noticed that the employee that left the company 6 months ago still has an active auto-reply. what is the best practice and how long should auto-reply for terminated employees?

    We send email bound for "dead" accounts to someone else so that we can respond. So for us, the duration is "zero".

  • Router/firewall recommendations for small branch office

    74
    0 Votes
    74 Posts
    8k Views
    jmooreJ

    @krisleslie How is it better? It would take a lot for synology to be better than ubnt in my opinion. Not saying it isnt possibe, just asking the details is all.

  • Searching for text in file

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    dafyreD

    @Obsolesce said in Searching for text in file:

    @dafyre said in Searching for text in file:

    @Pete-S said in Searching for text in file:

    If you have a text file that looks like this:

    start_folder='/folder1/abc.txt' iterations='123' passphrase='xyz' last_command='invoke' return_value='0'

    How can you pick out just xyz when looking for "passphrase"?

    I know grep will get me the line but what should I use if I want just a part of the line?
    Can it be done in one command or do I have to pipe several together?

    If you the text has a character that would be a good delimiter, you can pipe grep to cut... ie:

    cat myfile.txt|grep "iterations"|cut -d '=' -f 2 Output: '123'

    the -f # is which column you want.

    There may be other ways to do it, but that's the first way I can think of.

    You can specify a file with grep, no need to pipe in from cat.

    This is true! I always seem to get it backwards when I do that, so i just cat $thefile | grep | blah ... Cuts down on frustration, ha ha.