ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. script
    Log in to post
    • All categories
    • gjacobseG

      winget vs choco

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion choco chocolatey winget package manager package management windows10 window 11 command line scripting scripts script
      4
      0 Votes
      4 Posts
      734 Views
      DanpD

      Check out WingetUI, which can manage packages for choco, scoop, and winget.

    • L

      Send CSV file to Slack Channel by bash script through Webhook

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion slack csv bash script webhook api
      6
      1 Votes
      6 Posts
      3k Views
      stacksofplatesS

      @pete-s said in Send CSV file to Slack Channel by bash script through Webhook:

      @laksh1999 said in Send CSV file to Slack Channel by bash script through Webhook:

      @pete-s said in Send CSV file to Slack Channel by bash script through Webhook:

      @laksh1999 said in Send CSV file to Slack Channel by bash script through Webhook:

      Hi
      I am trying to send the assigned tickets in the queue as .csv file to the slack channel. I am able to download the .csv file in the dev desktop through bash script but unable to send that file to the Slack Channel.

      Anyone have tried this before?

      I have checked this

      https://api.slack.com/methods/files.upload

      I have only Webhook URL no other token is there with me as per the suggestion in the above link.

      You must have a token or some kind of authentication, otherwise anyone would be spam slack with files.

      Also the function you are looking at is not a webhook. Webhooks are triggered by an event. And they cause a http request to be sent.

      I accept with your point the csv file which i download is authenticated with the kerberos only.So is that enough and send the .csv file to the slack channel through the webhook ?

      @stacksofplates maybe you can offer some insight?

      At the bottom of the upload API page they give you an example of what you need. You need your API token and the channel ID(s) that you want to send the data to.

      curl -F [email protected] -F "initial_comment=Shakes the cat" -F channels=C024BE91L,D032AC32T -H "Authorization: Bearer xoxa-xxxxxxxxx-xxxx" https://slack.com/api/files.upload

    • JaredBuschJ

      Need to handle parsing these strings in PHP

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved IT Discussion php coding script parse string
      7
      0 Votes
      7 Posts
      871 Views
      JaredBuschJ

      @pete-s I've never claimed to be a real PHP dev. So this is good feedback.

    • dbeatoD

      Bookstack Backup to S3

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion bookstack mariadb mysqldump mysql script amazon s3
      10
      6 Votes
      10 Posts
      2k Views
      dbeatoD

      @scottalanmiller said in Bookstack Backup to S3:

      @wrx7m said in Bookstack Backup to S3:

      @dbeato said in Bookstack Backup to S3:

      @wrx7m said in Bookstack Backup to S3:

      @dbeato Are you running bookstack in AWS?

      Not at the moment. I am just backing up to S3.

      Look at Wasabi for S3 compatible object storage. Significantly cheaper.

      Yup, can't think of any reason to use S3 unless you are hosted on AWS and aren't using it for backup but for production storage. And even then, not the majority of the time. S3 is too expensive and doesn't really offer anything except locality that is of any specific value. B2 and Wasabi beat it a lot.

      Sorry, I posted this as S3 but I should change it to Wasabi. It is the same Idea for both.

    • DustinB3403D

      Scripting - How do you store your credentials and call them later?

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion shell script credentials hashing
      79
      2 Votes
      79 Posts
      6k Views
      pmonchoP

      @IRJ

      I come mentally prepared with my powerful Crane! 🙂
      alt text

    • JaredBuschJ

      Need a script to cleanup a Backblaze B2 bucket

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved IT Discussion backblaze backblaze b2 cleanup script
      11
      0 Votes
      11 Posts
      1k Views
      DustinB3403D

      Here's some additional information, specifically using rclone into b2.

    • wrx7mW

      PowerShell - Off-boarding Script

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell windows server active directory ad script scripting office 365 microsoft password password reset
      12
      1 Votes
      12 Posts
      3k Views
      dafyreD

      @wrx7m said in PowerShell - Off-boarding Script:

      @dafyre said in PowerShell - Off-boarding Script:

      @wrx7m said in PowerShell - Off-boarding Script:

      @dafyre I think I found where you got it - https://www.powershelladmin.com/wiki/Powershell_prompt_for_password_convert_securestring_to_plain_text

      Anyway, I am not sure where, in my script, I should place that function.

      You'd put the actual function at the top of your script, and then just

      $myPassword=convertFrom-SecureToPlain -securepassword $MySecurePassword

      Wherever you need the password in plain text form.

      Thanks. It mostly works. The only problem is that it isn't actually using the password I specify at the top. It is somehow generating its own and then writing it at the end. I put in

      write-host "Plain Text Says: $plainText"

      and it shows the password that I typed in for the secure variable at the beginning, followed by the one that it generated.

      Plain Text Says: $#@%4#@177 Jof91348

      Works fine for me here.... Check and make sure you don't have an extra write-host or anything somewhere.

      4a0db1d0-785c-4771-9ad2-9cec6cb0434a-image.png

    • wrx7mW

      PowerShell - FTP Upload Script No Longer Working

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell ftp script
      31
      2 Votes
      31 Posts
      3k Views
      wrx7mW

      @Pete-S It was on linux - ProFTPD

    • scottalanmillerS

      Find MangoLassi Post Views Per Thread

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion script screen scraping
      4
      3 Votes
      4 Posts
      325 Views
      scottalanmillerS

      @dbeato cURL is really good for on the fly processing. WGET is more focused on getting the whole site down to disk.

    • FATeknollogeeF

      Unifi on Vultr: you 'has mad skillz?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion unifi controller vultr google cloud script
      20
      0 Votes
      20 Posts
      2k Views
      JaredBuschJ

      @fateknollogee said in Unifi on Vultr: you 'has mad skillz?:

      I don't quite get your answer..does that mean it's too easy or it's not worth the effort?

      Basically yes, it is not worth the effort. You can setup apt to update automatically yourself quite trivially.

      The same for Let's Encrypt.

      Reskimming, I am not sure WTF he is doing with lighttpd I would need to look closer.

      But the scripting of the backup to a third party site is going to be totally custom to every install. This is way too complex to setup in a simple script.

      It works for him because everything is tied to the Google account.

    • dbeatoD

      Fix OpenVAS when not starting Scans

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion openvas ubuntu 18.04 openvas-scanner script
      8
      1 Votes
      8 Posts
      1k Views
      dbeatoD

      @dafyre said in Fix OpenVAS when not starting Scans:

      You can also download & install using their ISO. They label it a "Virtual Appliance" for some reason. It's worked on everything I've thrown at it so far.

      https://www.greenbone.net/en/install_use_gce/

      I don't prefer it due to being harder to troubleshoot... since it is an older OS version and such.

    • JaredBuschJ

      Need some PHP help for this script

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion php developer help script yealink freepbx asterisk
      14
      2 Votes
      14 Posts
      2k Views
      JaredBuschJ

      github updated. files renamed a bit. Still a work in progress, but things working much better.

      0_1533163657304_1cb7dbcf-38f3-48da-a102-fc1f7348fe17-image.png

    • scottalanmillerS

      NextCloud Automated Installation

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux fedora installer nextcloud script bash selinux storage cloud storage
      76
      6 Votes
      76 Posts
      12k Views
      W

      Is there anything new with updating the script? 🙂

    • NerdyDadN

      If I was a batch scripter, I'd starve...

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion batch scripts scripting script
      2
      2 Votes
      2 Posts
      844 Views
      DashrenderD

      Here are some instructions I found.

      http://www.instructables.com/id/How-to-make-flash-drive-that-copys-users-files-si/

    • gjacobseG

      Understand CMD CLI to Powershell Variable

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion cmd cmdlet ps powershell chocolatey batch script scripting
      2
      0 Votes
      2 Posts
      1k Views
      dbeatoD

      @gjacobse So basically you want to iterate through a list of computers the same script correct? So do you have a list of computers? What are other steps on your script? because what we can do is the following

      *$computers = import-csv -Path "c:\script\computers.csv" foreach ($oldname in $computers){ Rename-Computer -NewName $newname -DomainCredential domain\admin -Restart}

      This assumes you have a CSV file with a oldname and new name columns with computer names.

    • NerdyDadN

      Creating a New User with O365 with PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion script powershell office365 office 365 o365 office 365 administration users nerdydad ps scripts
      3
      2 Votes
      3 Posts
      2k Views
      NerdyDadN

      Inserted a new line of code at line 82 and 87 to read as follows:

      icacls \\<server>\d$\Users\$un\* /grant $un:F /inheritance:e /T

      This line grants the new employee full access to their network folder and subfolders and items.

    • gjacobseG

      Script Assistance requested

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion batch script scripting windows 8.1 windows 8 windows 10 drive mapping vpn
      3
      0 Votes
      3 Posts
      1k Views
      gjacobseG

      Thanks @Mike-Davis

      That is just want was needed. added it to my other script and works great thus far.

    • stacksofplatesS

      Nautilus Custom Scripts

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux nautilus script
      1
      2 Votes
      1 Posts
      834 Views
      No one has replied
    • RomoR

      Installing Invoice Ninja on Ubuntu 16.10

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion invoice ninja script ubuntu 16.10
      5
      4 Votes
      5 Posts
      2k Views
      mlnewsM

      https://www.howtoforge.com/tutorial/how-to-install-invoice-ninja-on-centos-7/

    • stacksofplatesS

      Script to kill multiple app spawns

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion script bash linux
      4
      1 Votes
      4 Posts
      909 Views
      stacksofplatesS

      I guess I could do a wildcard at the beginning and end of whatever I'm searching for with killall but that freaks me out a little. I could accidentally do a lot of damage with that.

    • 1
    • 2
    • 1 / 2