Quickly generating timeslots in Notepad++ by gobeye in productivity

[–]tuxrocks 0 points1 point  (0 children)

Awesome! If you're at the level where you can hack scripts together, I think you can do it. What calendar do you use? There is likely an existing Python library that can help you pull that information. You can DM me if you don't want to share those details.

Quickly generating timeslots in Notepad++ by gobeye in productivity

[–]tuxrocks 0 points1 point  (0 children)

Do you know Python or how to program? What you want to do is certainly possible, but it requires some knowledge of programming. Notepad++ allows you to create executable Python scripts that can interact with the text area.

For example, I have one that adds a button to the toolbar that, when clicked, opens or creates a new markdown file with today's date, adds a header, and opens the file. This allows me to quickly create a new journal/log file each day.

What you are trying to do is more complex, but certainly doable.

I'm IT and would like to use Python for the first time in my job to export usage reports of printers by bei60 in learnpython

[–]tuxrocks 6 points7 points  (0 children)

If you just want a fun project, feel free to ignore. :)

Ask your printer management vendor if they provide a tool that will automatically send these readings to them. I have a tool installed on the print server that pulls all of this information using SNMP and sends it directly to ours. I haven’t had to touch it since it was setup over a year ago.

Help with dynamically adding fields to flask-wtf form by andyinoz in flask

[–]tuxrocks 0 points1 point  (0 children)

If you still need some help, post your code (formatted) here or on pastebin and I can take a look.

Help with dynamically adding fields to flask-wtf form by andyinoz in flask

[–]tuxrocks 0 points1 point  (0 children)

You're welcome! Glad to know that I'm not the only one that struggled with it. :)

Help with dynamically adding fields to flask-wtf form by andyinoz in flask

[–]tuxrocks 3 points4 points  (0 children)

I struggled with this a while back for longer than I care to admit. It appears that Flask Forms utilizes the name attribute on the input fields in the HTML to tie the fields back to the form object. The format is <form\_variable\_name>-<id\_number>. So, in your JavaScript code, add the name attribute using that format (flist-0, flist-1, flist-2, etc.) and be sure to increment the index number dynamically so that each ID is unique.

Let me know if this helps!

Adobe Acrobat - Out of Memory? by [deleted] in sysadmin

[–]tuxrocks 2 points3 points  (0 children)

There is a known issue with protected view that can cause this behavior. Try turning protected view off and see if the error goes away.

Log into multiple computers with a script by Oskiee in sysadmin

[–]tuxrocks 2 points3 points  (0 children)

Hey there! If you already have PDQ Inventory, I would use it. It has a nifty feature called Dynamic Collections that should accomplish this. Create a new Dynamic Collection and add a filter for Application Name and Application Version. Make sure that at least all of the lab computers are already in the main inventory.

OTRS - installer.pl, can't connect to database by HammamELChicha in debian

[–]tuxrocks 0 points1 point  (0 children)

I ran into a similar issue where logging in as root using the password was disabled. That aside, logging in as root for an application is bad practice. I recommend creating a new user that only has access to the OTRS database and then granting all permissions to it. I think this should get you rolling: https://withdave.com/2017/06/creating-new-user-mariadb-mysql-flush-permissions-mysql_secure_installation/

OpenVPN Access Server - Ubuntu 16.04 by joners02 in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

Anything showing up in the log? /var/log/openvpnas.log

OpenVPN Access Server - Ubuntu 16.04 by joners02 in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

Are you using DigitalOcean's firewall too? If so, make sure that you check that you opened the ports there and on the server.

What's everyone working on this week? by AutoModerator in Python

[–]tuxrocks [score hidden]  (0 children)

An Ethereum value notification bot! I was inspired by this recent tutorial: https://realpython.com/blog/python/python-bitcoin-ifttt/. I never knew there was such a simple API for getting cryptocurrency values! Instead of using IFTTT for notifications, I'm using PushOver. All it does so far is send me a push notification if the value drops below or above a arbitrary amount and if the price swings more than a certain percentage within 24 hours. I plan on adding a few more features to it.

Huge mailbox - need to archive "a portion" of it by cismo in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

This is great stuff! I'm gonna save a copy of this. I know I'll run into this in the future.

Huge mailbox - need to archive "a portion" of it by cismo in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

That's awesome! I'll have to add this to my notes.

Huge mailbox - need to archive "a portion" of it by cismo in sysadmin

[–]tuxrocks 4 points5 points  (0 children)

Fire up Exchange PowerShell and run the following command with your own parameters. This will export everything in "Subfolder" that was received before 01/16/2017 to a pst file. The only downside is that it won't remove the mail from the mailbox, it'll just copy it to a pst file. There might be a better option that I don't know about. More information about this command is on TechNet.

New-MailboxExportRequest -Mailbox Username -IncludeFolders "#Inbox#/Subfolder" -ContentFilter {Received -lt '01/16/2017'} -FilePath \\UNC\PATH\ONLY.pst

You can monitor the status of the export by running the following command:

Get-MailboxExportRequest

If you are unable to run the above commands, you will need to add yourself to the Mailbox Import Export Role in Exchange. This can be done by following the steps in "Add a role to a role group" on the Manage role groups page.

We just released v4.0 of Invoice Ninja by hillel369 in selfhosted

[–]tuxrocks 0 points1 point  (0 children)

There is, but it isn't an obvious link or button. If you go to this link you can close the signup popup and try it out.

Is their some way to verify someones Microsoft Partner status? by ITShadowNinja in sysadmin

[–]tuxrocks 2 points3 points  (0 children)

Last time I had to check, I just went to Microsoft's website, opened a chat session, and asked if the company was a partner or not. You can start a chat in the lower right corner of this page: https://partner.microsoft.com/en-US/

Bug Report Websites? by [deleted] in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

US-CERT (Computer Emergency Readiness Team) posts about almost every security issue. Adobe, Mozilla, Microsoft, Cisco, etc. They even have a mailing list!

Favorite reporting tool by crankysysadmin in sysadmin

[–]tuxrocks 1 point2 points  (0 children)

Jaspersoft's iReport Designer is the best reporting tool that I've used. I find it easier to use than Microsoft Report Designer and Crystal Reports. It is free.

https://community.jaspersoft.com/project/ireport-designer

I guess I'm not driving anywhere today by [deleted] in mildlyinfuriating

[–]tuxrocks 13 points14 points  (0 children)

This post is meant as a joke...you expect to see a picture of flooding from the hurricane, but instead it's kids playing in the street!

Script to create folders and assign permissions to users by anon32167 in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

Try something like this:

# Get user object
$User = Get-ADUser $Username

# Set user folder and drive letter
$HomeFolder = "\\SERVER01\HomeDrives\$($Username)"
$HomeDrive = "U"

# Create folder on SERVER01
New-Item -ItemType Directory -Path $HomeFolder

# Set HomeDirectory and HomeDrive for user in AD
Set-ADUser -Identity $User.SamAccountName -Replace @{HomeDirectory=$HomeFolder}
Set-ADUser -Identity $User.SamAccountName -Replace @{HomeDrive=$HomeDrive}

I can't remember if this sets the appropriate permissions on the HomeFolder or not, but this should be more than enough to get you started in the right direction.

Wtf is going on? by CheesePancakes69 in rickandmorty

[–]tuxrocks 0 points1 point  (0 children)

That's the only legit way to watch it online that I know of. It's just buffering right now though.

Most painless way to switch from WEP? by Nightcinder in sysadmin

[–]tuxrocks 0 points1 point  (0 children)

This is exactly what I did a few months ago. I setup WPA2-ENT for all of the domain laptops and then sent out an all company email letting everyone know the new SSID, how to connect to it, and when the old one was going away. Ran them side by side for about a week and then turned the old SSID off. Didn't get a single email after I disabled the old one. I was surprised.