Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rastandy/dffb923ce0a461cf4b7c0585c48c97d9 to your computer and use it in GitHub Desktop.
Save rastandy/dffb923ce0a461cf4b7c0585c48c97d9 to your computer and use it in GitHub Desktop.

Revisions

  1. @pankaj28843 pankaj28843 revised this gist Jun 18, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Make soffice command of Libreoffice work on Mac OS X.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## Quick Start
    ```bash
    sudo curl sudo curl https://gist.github.com/pankaj28843/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/local/bin/soffice && sudo chmod +x /usr/local/bin/soffice
    sudo curl https://gist.github.com/pankaj28843/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/local/bin/soffice && sudo chmod +x /usr/local/bin/soffice
    ```

    ## Create an bash script at `/usr/local/bin/soffice` with following content
  2. @pankaj28843 pankaj28843 revised this gist Jun 18, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Make soffice command of Libreoffice work on Mac OS X.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## Quick Start
    ```bash
    sudo curl sudo curl https://gist.github.com/psjinx/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/local/bin/soffice && sudo chmod +x /usr/local/bin/soffice
    sudo curl sudo curl https://gist.github.com/pankaj28843/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/local/bin/soffice && sudo chmod +x /usr/local/bin/soffice
    ```

    ## Create an bash script at `/usr/local/bin/soffice` with following content
  3. @pankaj28843 pankaj28843 revised this gist Mar 31, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Make soffice command of Libreoffice work on Mac OS X.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    ## Quick Start
    ```bash
    sudo curl sudo curl https://gist.github.com/psjinx/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/loca/bin/soffice && sudo chmod +x /usr/loca/bin/soffice
    sudo curl sudo curl https://gist.github.com/psjinx/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/local/bin/soffice && sudo chmod +x /usr/local/bin/soffice
    ```

    ## Create an bash script at `/usr/loca/bin/soffice` with following content
    ## Create an bash script at `/usr/local/bin/soffice` with following content
    ```bash
    #!/bin/bash

    @@ -15,7 +15,7 @@ sudo curl sudo curl https://gist.github.com/psjinx/3ad78df6290b5ba931
    ## Make it executable

    ```bash
    sudo chmod +x /usr/loca/bin/soffice
    sudo chmod +x /usr/local/bin/soffice
    ```

    ## Usage
  4. @pankaj28843 pankaj28843 renamed this gist Apr 29, 2015. 1 changed file with 0 additions and 0 deletions.
  5. @pankaj28843 pankaj28843 renamed this gist Apr 29, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. @pankaj28843 pankaj28843 revised this gist Apr 29, 2015. 2 changed files with 25 additions and 21 deletions.
    21 changes: 0 additions & 21 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,21 +0,0 @@
    # Create an bash script at `/usr/loca/bin/soffice` with following content
    ```bash
    #!/bin/bash

    # Need to do this because symlink won't work
    # It complains about some .plist files
    /Applications/LibreOffice.app/Contents/MacOS/soffice "$@"
    ```

    # Make it executable

    ```bash
    sudo chmod +x /usr/loca/bin/soffice
    ```

    # Usage
    ## Convert an excel file to pdf
    ```bash
    soffice --headless --convert-to pdf:"calc_pdf_Export" /path/to/some/.xlsx/file
    ```

    25 changes: 25 additions & 0 deletions Run soffice on MacOS X from command line
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ## Quick Start
    ```bash
    sudo curl sudo curl https://gist.github.com/psjinx/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/loca/bin/soffice && sudo chmod +x /usr/loca/bin/soffice
    ```

    ## Create an bash script at `/usr/loca/bin/soffice` with following content
    ```bash
    #!/bin/bash

    # Need to do this because symlink won't work
    # It complains about some .plist files
    /Applications/LibreOffice.app/Contents/MacOS/soffice "$@"
    ```

    ## Make it executable

    ```bash
    sudo chmod +x /usr/loca/bin/soffice
    ```

    ## Usage
    ### Convert an excel file to pdf
    ```bash
    soffice --headless --convert-to pdf:"calc_pdf_Export" /path/to/some/.xlsx/file
    ```
  7. @pankaj28843 pankaj28843 created this gist Apr 29, 2015.
    21 changes: 21 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    # Create an bash script at `/usr/loca/bin/soffice` with following content
    ```bash
    #!/bin/bash

    # Need to do this because symlink won't work
    # It complains about some .plist files
    /Applications/LibreOffice.app/Contents/MacOS/soffice "$@"
    ```

    # Make it executable

    ```bash
    sudo chmod +x /usr/loca/bin/soffice
    ```

    # Usage
    ## Convert an excel file to pdf
    ```bash
    soffice --headless --convert-to pdf:"calc_pdf_Export" /path/to/some/.xlsx/file
    ```

    5 changes: 5 additions & 0 deletions soffice.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    # Need to do this because symlink won't work
    # It complains about some .plist files
    /Applications/LibreOffice.app/Contents/MacOS/soffice "$@"